Skip to content

Commit 15a9cf3

Browse files
author
James William Pye
committed
Remove reference to compose.
1 parent 847dc6c commit 15a9cf3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

postgresql/documentation/driver.txt

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

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

1155-
>>> from postgresql.python.functools import Composition as compose
1156-
>>> strip_and_int = compose((stripxx, int))
1155+
>>> strip_and_int = lambda x: int(stripxx(x))
11571156
>>> row.transform(strip_and_int)
11581157
(9301423, 2, Decimal("4.92"))
11591158

0 commit comments

Comments
 (0)