python2.4 requires "any" from python2.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
In Progress
|
Medium
|
Unassigned |
Bug Description
Binary package hint: python2.4
From an application that uses excepthook on Python2.4, I get this error:
Traceback (most recent call last):
File "testvtrace.py", line 46, in ?
excepthook(
File "/var/lib/
pr.
File "/var/lib/
self.
File "/var/lib/
if not any([fnmatch.
Any is only 2.5, not a __builtin__ in 2.4.4:
matt@faramir:~$ python2.4
Python 2.4.4 (#2, Apr 5 2007, 19:56:05)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> any
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'any' is not defined
>>>
matt@faramir:~$ python
Python 2.5.1c1 (release25-maint, Apr 6 2007, 22:02:36)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> any
<built-in function any>
Will change to 'current' in Feisty+1.