Skip to content

Commit fd67462

Browse files
author
James William Pye
committed
Remove reference to compose.
1 parent a2df891 commit fd67462

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

postgresql/documentation/driver.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,11 +1107,10 @@ Of course, more than one column can be transformed::
11071107
>>> row.transform(None, str, str)
11081108
('XX9301423', '2', '4.92')
11091109

1110-
More advanced usage can make use of `postgresql.python.functools.Composition`
1111-
or lambdas for compound transformations in a single pass of the row::
1110+
More advanced usage can make use of lambdas for compound transformations in a
1111+
single pass of the row::
11121112

1113-
>>> from postgresql.python.functools import Composition as compose
1114-
>>> strip_and_int = compose((stripxx, int))
1113+
>>> strip_and_int = lambda x: int(stripxx(x))
11151114
>>> row.transform(strip_and_int)
11161115
(9301423, 2, Decimal("4.92"))
11171116

0 commit comments

Comments
 (0)