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

Error in changelog guidance for Python 3 (find timeout parameter)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: None
    • Labels:
      None

      Description

      In the changelog (http://api.mongodb.org/python/current/changelog.html), it states:

      The following find/find_one options have been renamed:

      These renames only affect your code if you passed these as keyword arguments, like find(fields=[‘fieldname’]). If you passed only positional parameters these changes are not significant for your application.

      timeout -> no_cursor_timeout

      However, the meaning of timeout and no_cursor_timeout are not the same. They're in fact the opposite. Therefore, passing the same parameter in the same position would have the opposite of the intended effect. It should be made more clear that the meaning has changed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              behackett Bernie Hackett
              Reporter:
              jason.coombs@yougov.com Jason R. Coombs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: