[issue11930] Remove time.accept2dyear

2011-05-02 Thread STINNER Victor
STINNER Victor added the comment: > New changeset e6f6ac8c2502 by Alexander Belopolsky in branch 'default': > Issue #11930: Remove deprecated time.accept2dyear. Great! -- ___ Python tracker __

[issue11930] Remove time.accept2dyear

2011-05-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset bfd741162741 by Alexander Belopolsky in branch 'default': Issue #11930: Added Misc/NEWS and versionchanged entries. http://hg.python.org/cpython/rev/bfd741162741 -- ___ Python tracker

[issue11930] Remove time.accept2dyear

2011-05-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Extension Modules, Library (Lib) resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue11930] Remove time.accept2dyear

2011-05-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset db2ac3dc6cc2 by Alexander Belopolsky in branch 'default': Issue #11930: Remove year >= 1000 limitation from datetime.strftime. http://hg.python.org/cpython/rev/db2ac3dc6cc2 -- ___ Python tracker

[issue11930] Remove time.accept2dyear

2011-05-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset e6f6ac8c2502 by Alexander Belopolsky in branch 'default': Issue #11930: Remove deprecated time.accept2dyear. http://hg.python.org/cpython/rev/e6f6ac8c2502 -- nosy: +python-dev ___ Python tracker

[issue11930] Remove time.accept2dyear

2011-05-01 Thread STINNER Victor
STINNER Victor added the comment: Le mardi 26 avril 2011 à 22:20 +, Alexander Belopolsky a écrit : > Alexander Belopolsky added the comment: > > On Tue, Apr 26, 2011 at 6:09 PM, STINNER Victor > wrote: > .. > > > > timemodule.c: > > > > PyDoc_STRVAR(module_doc, > > "... > > The tuple ite

[issue11930] Remove time.accept2dyear

2011-04-26 Thread STINNER Victor
STINNER Victor added the comment: The next step is to update the datetime module: something like the attached patch (datetime_y2k.patch). -- Added file: http://bugs.python.org/file21788/datetime_y2k.patch ___ Python tracker

[issue11930] Remove time.accept2dyear

2011-04-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Apr 26, 2011 at 6:09 PM, STINNER Victor wrote: .. > .. class:: struct_time (...) A year value will be handled as described under > :ref:`Year 2000 (Y2K) issues ` above. This one needs to be removed. Thanks. --

[issue11930] Remove time.accept2dyear

2011-04-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Apr 26, 2011 at 6:30 PM, STINNER Victor wrote: > > STINNER Victor added the comment: > > "What makes you say so? > > 1970" > > Don't write ">>> " using the email interface :-) > Sorry. That was the output of time.strptime('70', '%y')[0]. -

[issue11930] Remove time.accept2dyear

2011-04-26 Thread STINNER Victor
STINNER Victor added the comment: "What makes you say so? 1970" Don't write ">>> " using the email interface :-) -- >>> t time.struct_time(tm_year=70, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0) >>> time.mktime(t) -59958144561.0 >>> time.localtime(

[issue11930] Remove time.accept2dyear

2011-04-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Apr 26, 2011 at 6:09 PM, STINNER Victor wrote: .. > > timemodule.c: > > PyDoc_STRVAR(module_doc, > "... > The tuple items are:\n\ >  year (four digits, e.g. 1998)\n\ > ...") > > => That's wrong. Example: time.gmtime(-5558220).tm_year gives 208

[issue11930] Remove time.accept2dyear

2011-04-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Apr 26, 2011 at 6:09 PM, STINNER Victor wrote: > It looks like struct_time note is wrong: the year 70 is now 70 and not > interpreted as 1970 anymore. What makes you say so? 1970 -- ___ Python track

[issue11930] Remove time.accept2dyear

2011-04-26 Thread STINNER Victor
STINNER Victor added the comment: time.rst: * **Year 2000 (Y2K) issues**: Python depends on the platform's C library, which generally doesn't have year 2000 issues, since all dates and times are represented internally as seconds since the epoch. Function :func:`strptime` can parse 2-digi

[issue11930] Remove time.accept2dyear

2011-04-26 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : As implemented in issue 10827, use of 2-digits years in timetuples to mean 4-digit years straddling year 2000 is deprecated in 3.3. There is no mechanism for issuing deprecation warning for access to a module variable, but a deprecation note was adde