[PyKDE] PyQt4 and Python2.3
Torsten Marek
shlomme at gmx.net
Thu Jul 6 09:37:11 BST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andreas Pakulat wrote:
> Hi,
>
> PyQt4 entered Debian/Sid today and I had to try wether my apps also work
> under the "system python" now. Unfortunately they don't and I'd just
> like a confirmation that this is "intentional". Debian/Sid still uses
> python2.3 as standard system python and that one doesn't know decorators
> yet, as it seems. So if decorators only work with Python 2.4, this
> should be stated in the docs regarding auto-connection and also I think
> a note should appear in the README.
>
> If decorators should work with python2.3, I'd like to why this doesn't
> work:
>
> andreas at morpheus:~/projects/xpathevaluator>PYTHONPATH=$PWD /usr/bin/python2.3 xpathevaluator/xpathevaluator.py
> Traceback (most recent call last):
> File "xpathevaluator/xpathevaluator.py", line 57, in ?
> sys.exit(run())
> File "xpathevaluator/xpathevaluator.py", line 35, in run
> from xpathwidget import XPathWidget
> File "/home/andreas/projects/xpathevaluator/xpathevaluator/xpathwidget.py", line 198
> @pyqtSignature("on_fileButton_clicked()")
> ^
> SyntaxError: invalid syntax
>
> Andreas
>
Hi,
decorators don't work with Python 2.3, they are a Python 2.4 feature.
Debian won't use Python 2.3 for long, nearly all packages are migrated to the
new packaging scheme now.
With Python 2.3, you need to use the decorators the old way, like staticmethod
was used etc.
best,
Torsten
- --
Torsten Marek <shlomme at gmx.net>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858
Keyserver: subkeys.pgp.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFErMu3fMVFHqJEyFgRAvrrAJ4zOCEYFNyklh8joAUkdSSab2zcmwCeOHIu
ixFeeo5Ka/RTMInfI6x1udM=
=yoMV
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list