Skip to content

Commit b0359ff

Browse files
author
James William Pye
committed
Comment about what's happening when builtin() doesn't return a tuple.
1 parent 148d5f5 commit b0359ff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

postgresql/driver/pq3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ def resolve(self,
242242
else:
243243
typio = builtins(typid)
244244
if typio is not None:
245+
# If typio is a tuple, it's a constant pair: (pack, unpack)
246+
# otherwise, it's an I/O pair constructor.
245247
if typio.__class__ is not tuple:
246248
typio = typio(typid, self)
247249
self._cache[typid] = typio

0 commit comments

Comments
 (0)