Package: python2.4
Version: 2.4.2-1
Severity: normal
$ python2.4
Python 2.4.2 (#2, Sep 29 2005, 00:23:59)
[GCC 4.0.2 (Debian 4.0.1-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> day = (2005, 11, 1)
>>> time.strftime('%d-%b-%Y', day + (0,)*6)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: day of year out of range
>>>
This appears to be because of the 0 in the second last field of the
tuple. If that value is set to any number between 1 and 366, inclusive,
it works fine. This also works for Python 2.3.
Mailman uses the above code in Mailman/Bouncer.py.
$ python
Python 2.3.5 (#2, Aug 30 2005, 15:50:26)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> day = (2005, 11, 1)
>>> time.strftime('%d-%b-%Y', day + (0,)*6)
'01-Nov-2005'
>>>
(but 2.3 has other problems with time.strftime. See #335878)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages python2.4 depends on:
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libdb4.3 4.3.28-3 Berkeley v4.3 Database Libraries [
ii libncurses5 5.4-9 Shared libraries for terminal hand
ii libreadline5 5.0-11 GNU readline and history libraries
ii libssl0.9.7 0.9.7g-3 SSL shared libraries
ii python2.4-minimal 2.4.2-1 A minimal subset of the Python lan
python2.4 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]