--- /dev/null
+.. change::
+ :tags: postgresql, change
+ :tickets: 7225
+
+ The parameter :paramref:`_postgresql.UUID.as_uuid` of
+ :class:`_postgresql.UUID` now defaults to ``True``.
__visit_name__ = "UUID"
- def __init__(self, as_uuid=False):
+ def __init__(self, as_uuid=True):
"""Construct a UUID type.
- :param as_uuid=False: if True, values will be interpreted
+ :param as_uuid=True: if True, values will be interpreted
as Python uuid objects, converting to/from string via the
DBAPI.
+ .. versionchanged: 2 ``as_uuid`` now defaults to ``True``.
+
"""
self.as_uuid = as_uuid