Python DB API - commit() v. execute("commit transaction")?

Pavol Lisy pavol.lisy at gmail.com
Wed May 31 15:14:03 EDT 2017


On 5/31/17, Jon Ribbens <jon+usenet at unequivocal.eu> wrote:
> On 2017-05-31, Pavol Lisy <pavol.lisy at gmail.com> wrote:
>> But althoug return from execute is undefined (
>> https://www.python.org/dev/peps/pep-0249/#id16 ), you could iterate
>> over cursor ( https://www.python.org/dev/peps/pep-0249/#iter )
>
> ... which is also optional.

Thanks, I missed that.

BTW these optional extensions were added to PEP 15 years ago (
https://github.com/python/peps/commit/cdb77a562cccd2da35bc1e795cf54a8c1916a08d
).

Aren't they de facto standard now?



More information about the Python-list mailing list