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

Deprecate UUIDLegacy class

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11
    • Component/s: BSON
    • Labels:
      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

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

                Dates

                Created:
                Updated:
                Resolved: