-
It seems that psycopg uses |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Never mind I had it showing up in a pytest diff highlighting it as a reason for assertions failing but I guess it does that just based on the repr or something, the issue was another field. |
Beta Was this translation helpful? Give feedback.
-
They are two different python objects but they have the same semantic as timezone info objects: >>> datetime.datetime(2000, 1, 1, tzinfo=datetime.timezone.utc) \
... == datetime.datetime(2000, 1, 1, 0, 0, tzinfo=zoneinfo.ZoneInfo(key='UTC'))
True I wouldn't want to ensure the identity of the object we return. (I see you got to the same conclusion of semantic equivalence). |
Beta Was this translation helpful? Give feedback.
They are two different python objects but they have the same semantic as timezone info objects:
I wouldn't want to ensure the identity of the object we return.
(I see you got to the same conclusion of semantic equivalence).