mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 02:43:43 +03:00
20d3d0f66d
TypeError is the standard Python error raised in this case: $ python -c "(lambda a: None)(b=10)" TypeError: <lambda>() got an unexpected keyword argument 'b' We only used to raise InterfaceError when connect was used without any parameter at all, so it's hard to think a program depending on that design. Furthermore the function has always raised (and still does) OperationalError too, if the bad argument is detected by the libpq, and that cannot be changed because we can't tell the difference from a normal connection error. |
||
---|---|---|
.. | ||
__init__.py | ||
dbapi20_tpc.py | ||
dbapi20.py | ||
test_async.py | ||
test_bug_gc.py | ||
test_bugX000.py | ||
test_cancel.py | ||
test_connection.py | ||
test_copy.py | ||
test_cursor.py | ||
test_dates.py | ||
test_extras_dictcursor.py | ||
test_green.py | ||
test_lobject.py | ||
test_module.py | ||
test_notify.py | ||
test_psycopg2_dbapi20.py | ||
test_quote.py | ||
test_transaction.py | ||
test_types_basic.py | ||
test_types_extras.py | ||
testconfig.py | ||
testutils.py |