Use python3 notation for keyword-only arguments.

Sure, python2 users can understand that form.

The current version doesn't points the fact that args are keyword-only at all.
I read it as: you can use it like
  .set_session(isolation_level)
  or
  .set_session(readonly)
which is definitelly wrong.
This commit is contained in:
Andrew Svetlov 2014-04-04 23:06:41 +03:00
parent 9036299d54
commit e22c8a17fa

View File

@ -348,7 +348,7 @@ The ``connection`` class
pair: Transaction; Autocommit pair: Transaction; Autocommit
pair: Transaction; Isolation level pair: Transaction; Isolation level
.. method:: set_session([isolation_level,] [readonly,] [deferrable,] [autocommit]) .. method:: set_session(*, isolation_level, readonly, deferrable, autocommit)
Set one or more parameters for the next transactions or statements in Set one or more parameters for the next transactions or statements in
the current session. See |SET TRANSACTION|_ for further details. the current session. See |SET TRANSACTION|_ for further details.