[PyQt] Moving PyQt programs to Python 3
Arfrever Frehtes Taifersar Arahesis
arfrever.fta at gmail.com
Thu Jul 14 11:25:42 BST 2011
2011-07-14 11:35:55 Phil Thompson napisał(a):
> On Thu, 14 Jul 2011 19:28:46 +1000, Algis Kabaila <akabaila at pcug.org.au>
> wrote:
> > On Thu, 14 Jul 2011 06:28:48 PM Phil Thompson wrote:
> >> On Thu, 14 Jul 2011 14:26:40 +1000, Algis Kabaila
> <akabaila at pcug.org.au>
> >>
> >> wrote:
> >> > 1. How to tell which Python version a given PyQt is bound to?
> >>
> >> sys.hexversion?
> >
> > I don't think that answers the (reformatted) question. From idle the
> > sys.hexversion does show some magic number
> >>>> import sys
> >>>> sys.hexversion
> > 50462960
>
> The docs tell you how to interpret it, try hex(sys.hexversion).
I suggest to use sys.version_info.
--
Arfrever Frehtes Taifersar Arahesis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110714/42fdce4b/attachment-0001.pgp>
More information about the PyQt
mailing list