Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-380

_dict_to_bson interface differs between Python and C implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.3
    • Component/s: None
    • Labels:
    • Environment:
      ubuntu

      Description

      Pure Python bson._dict_to_bson includes a `top_level` parameter that defaults to True. _cbson._dict_to_bson is missing this parameter.

      Make the two functions agree.

        Attachments

        1. _dict_to_bson_api_fix.patch
          2 kB
          Wolfgang Scherer
        2. _dict_to_bson_api_fix.patch
          1 kB
          Wolfgang Scherer

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: