[XML-SIG] module iso8601 and python 1.5

Alexandre Fayolle Alexandre.Fayolle@logilab.fr
Thu, 28 Jun 2001 10:23:39 +0200 (CEST)


On Wed, 27 Jun 2001, Fred L. Drake, Jr. wrote:

> Alexandre Fayolle writes:
>  > Just a side note, in case some people are not aware of this, the
>  > xml.utils.iso8601 module from CVS won't work with python 1.5: line 102,
>  > there is the following statement:
>  > year = int(m.group("year"), 10)
>  > which causes a TypeError on python 1.5. 
> 
>   I think this is acceptable; it works under Python 1.5.2.  Are there
> any compelling reasons that system can't be upgraded, at least to
> Python 1.5.2?

I was meaning 1.5.2, indeed (just being lazy on that one). I cound not
find an int() function with an arity of 2 (i.e. with an optional  radix
argument) in python 1.5.2 :

[alf@leo alf]$ python
Python 1.5.2 (#1, Dec 21 2000, 15:29:08)  [GCC egcs-2.91.66 19990314/Linux 
(egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> int("10",10)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: int requires exactly 1 argument; 2 given

Alexandre Fayolle
-- 
http://www.logilab.com 
Narval is the first software agent available as free software (GPL).
LOGILAB, Paris (France).