_dict_to_bson interface differs between Python and C implementation

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • 2.3
    • Affects Version/s: 2.2.1
    • Component/s: None
    • Environment:
      ubuntu
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

            Assignee:
            Bernie Hackett
            Reporter:
            Wolfgang Scherer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: