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

Deprecate UUIDLegacy class

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.11
    • BSON
    • None

    Description

      In PYTHON-2152 we will add the following method to bson.binary.Binary:

      @classmethod
      def from_uuid(uuid, representation=STANDARD):pass
      

      This can replace the UUIDLegacy class because:

      UUIDLegacy(my_uuid)
      

      will be equivalent to:

      Binary.from_uuid(my_uuid, PYTHON_LEGACY)
      

      Therefore we should consider deprecating the UUIDLegacy class.

      Attachments

        Issue Links

          Activity

            People

              prashant.mital Prashant Mital (Inactive)
              shane.harvey@mongodb.com Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: