Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54790f4

Browse files
committed
Doc: Python's control flow construct is try/except not try/catch.
Very ancient thinko, dating evidently to2269071.Spotted by gweatherby.Discussion:https://postgr.es/m/170423637139.1288848.11840082988774620003@wrigleys.postgresql.org
1 parent69d7edb commit54790f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎doc/src/sgml/plpython.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ plan = plpy.prepare("INSERT INTO operations (result) VALUES ($1)", ["text"])
13231323
plpy.execute(plan, [result])
13241324
$$ LANGUAGE plpythonu;
13251325
</programlisting>
1326-
Note that the use of <literal>try/catch</literal> is still
1326+
Note that the use of <literal>try</literal>/<literal>except</literal> is still
13271327
required. Otherwise the exception would propagate to the top of
13281328
the Python stack and would cause the whole function to abort with
13291329
a <productname>PostgreSQL</productname> error, so that the

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp