[issue8292] Incorrect condition test in platform.py

2010-07-31 Thread Georg Brandl
Georg Brandl added the comment: Thanks, committed patch as r83371. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue8292] Incorrect condition test in platform.py

2010-04-07 Thread Ray.Allen
Ray.Allen added the comment: It seems that the "Lib/lib2to3/fixes/fix_filter.py" should have fixed all the "filter" problem in py3k, by adding a "list()" call to "filter()". It's werid this one still exists in standar library. Also I found other two problems with "filter" in standar library.

[issue8292] Incorrect condition test in platform.py

2010-04-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: A.M. Kuchling wrote: > > New submission from A.M. Kuchling : > > 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))

[issue8292] Incorrect condition test in platform.py

2010-04-02 Thread A.M. Kuchling
New submission from A.M. Kuchling : 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 alw