[PyQt] Missing/incorrect overload for `QSqlQuery.exec()`?
Florian Bruhin
me at the-compiler.org
Thu Mar 15 14:13:08 GMT 2018
On Thu, Mar 15, 2018 at 02:56:31PM +0100, Hans-Peter Jansen wrote:
> On Donnerstag, 15. März 2018 10:14:10 J Barchan wrote:
> > Docs:
> >
> > http://doc.qt.io/qt-5/qsqlquery.html#exec
> > http://doc.qt.io/qt-5/qsqlquery.html#exec-1
> >
> > Python 3 PyQt5 QtSql.py:
> >
> > def exec(self, p_str): # real signature unknown; restored from __doc__
> > """ exec(self, str) -> bool """
> > return False
>
> Don't know, where you grabbed this signature from, but since exec is a reserved keyword
> in Python, you need to translate any occurrence of exec in C++ literature to exec_.
Only in Python 2.
Florian
--
https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180315/8bf4fc34/attachment.sig>
More information about the PyQt
mailing list