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

Fix find_one documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Done
    • 3.0, 3.1, 3.2
    • 3.3
    • None

    Description

      According to the code the signature differs:

      def find_one(self, filter=None, *args, **kwargs)
      

      But in the documentation, find_one signature is:

      find_one(filter_or_id=None, *args, **kwargs)
      

      I check the error in version 3.0 and 3.2.2 (I assume then the error is for pymongo>=3.0)

      Attachments

        Activity

          People

            bernie@mongodb.com Bernie Hackett
            touilleMan Emmanuel Leblond [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: