Menu

#2 execute method too restrictive re params

closed
nobody
None
3
2002-04-08
2002-04-03
No

The Cursor.execute method *demands* a tuple as its
parameter sequence. It seems to me that any sequence
should be accepted; that would be more Pythonic.

Discussion

  • David S. Rushby

    David S. Rushby - 2002-04-08
    • status: open --> closed
     
  • David S. Rushby

    David S. Rushby - 2002-04-08

    Logged In: YES
    user_id=414645

    Fixed in CVS; now accepts any sequence that implements
    __len__ and __getitem__ (except a string).

     

Log in to post a comment.

Auth0 Logo