This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akuchling
Recipients akuchling, lemburg
Date 2010-04-02.16:48:35
SpamBayes Score 0.00031429972
Marked as misclassified No
Message-id <1270226918.36.0.398729222231.issue8292@psf.upfronthosting.co.za>
In-reply-to
Content
While looking at #4440, I grepped for similar problems and found one in
platform.py in the following line:

if no_os_uname or not filter(None, (system, node, release, version, machine))

In 3.x, filter() returns an object, not a list, so 'not filter()' will always be false.  

One fix is to either convert filter's output by adding list() or tuple(). Another fix could be 'not any ((system, node, release, version, machine))', but I don't know if platform.py is trying to stay compatible with versions of Python that lack any().
History
Date User Action Args
2010-04-02 16:48:38akuchlingsetrecipients: + akuchling, lemburg
2010-04-02 16:48:38akuchlingsetmessageid: <1270226918.36.0.398729222231.issue8292@psf.upfronthosting.co.za>
2010-04-02 16:48:36akuchlinglinkissue8292 messages
2010-04-02 16:48:35akuchlingcreate