By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 906 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.


P: n/a
Hi Everyone,

I've been wondering about platform.python_version_tuple API, which is a
bit misleading.
The fact is that this returns under both python2.4 and 2.5 a list, and
not a tuple.

This introduces strange semantics, due to __cmp__ on lists and tuples.

platform.python_version_tuple() >= ('2', '5') # returns False under
python 2.5
platform.python_version_tuple() >= ['2', '5'] # returns True under
python 2.5

I believe this should be changed, especially since the word 'tuple'
appears in the function name...

What do you think?

Nov 21 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.