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

Use of deprecated command options/parameters MUST raise a DeprecationWarning

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • None

      Several options have been deprecated without the addition of a DeprecationWarning to the code-path, in the event that they are actually used (e.g. snapshot and max_scan options to Collection.find) . Instead, their deprecation is merely reflected by a change to the documentation/docstring. While this was sufficient when these deprecations were first introduced, we must now ensure that the use of any such deprecated parameters/options raises a user-visible warning. These warnings will be essential in helping users migrate off of the last 3.x PyMongo release to 4.0 which will remove all deprecated APIs.

            Assignee:
            Unassigned Unassigned
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: