summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 4f3e297ef..e4ebbcb80 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -1707,14 +1707,16 @@ class UUID(sqltypes.TypeEngine):
__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