[PyQt] Moving PyQt programs to Python 3

Algis Kabaila akabaila at pcug.org.au
Fri Jul 15 02:42:59 BST 2011


On Thu, 14 Jul 2011 08:25:42 PM Arfrever Frehtes Taifersar Arahesis wrote:
> 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?
Thank you all for answering the related question - which version of Python am 
I running.  Particular thanks, of course, to Phil, who amazingly finds time not 
only to built PyQt, but also to answer fool questions.

Actually, I already know what Python I am running.  Whenever Python is 
started, it shows the detailed version information about its version. Though 
not as detailed as sys.version_info, but detailed enough for the purposes of 
identifying which Python is running on a system.

If I get binaries for PyQt I can ascertain the version of PyQt and Qt itself, 
but AFAIK there is no way of ascertaining which breed of python, 2.x or 3.x, 
PyQt is bound to.  IMHO it would be useful to have PYTHON_VERSION_STR, just 
like the PYQT_VERSION_STR for identification purposes. Without it there will 
occasionally be confusion of matching Python version with the right PyQt 
version, whilst we are in a 2 to 3 transition state.

Thank you all again,

OldAl


More information about the PyQt mailing list