[issue9528] Add pure Python implementation of time module to CPython

2012-03-22 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9528] Add pure Python implementation of time module to CPython

2011-08-11 Thread Éric Araujo
Éric Araujo added the comment: Alan: the Versions field is used to mark versions that will get a patch, not all versions affected. -- ___ Python tracker ___

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alan Justino wrote: > > I am getting a hard time trying to do some BDD with c-based datetime because > I cannot mock it easily to force datetime.datetime.now() to return a desired > value, making almost impossible to test time-based code, like the account

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Alan Justino
Alan Justino added the comment: (noticed a typo at the start of my last msg: @Victor should be @brett.cannon) -- ___ Python tracker ___ __

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Alan Justino
Alan Justino added the comment: @haypo: Because it affects version 2.7 too. @Victor: Even since we will not backport any modules to Python 2.7, is not worth to sign that this affects it too? Even wontfix or rejected, it affects, does not? Have I made something wrong? Sorry to be so newbie ab

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Brett Cannon
Brett Cannon added the comment: @Victor it doesn't really matter why since it is an incorrect classification. This issue in no way involves Python 2.7 since we will not backport any modules to Python 2.7. -- versions: +Python 3.3 -Python 2.7, Python 3.2 __

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread STINNER Victor
STINNER Victor added the comment: @alanjds: Why do you add Python 2.7 version to this issue? -- ___ Python tracker ___ ___ Python-bugs

[issue9528] Add pure Python implementation of time module to CPython

2011-08-09 Thread Alan Justino
Changes by Alan Justino : -- nosy: +alanjds versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9528] Add pure Python implementation of time module to CPython

2010-12-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: BDFL and python-dev were opposed to this idea. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9528] Add pure Python implementation of time module to CPython

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Aug 12, 2010 at 10:26 PM, STINNER Victor wrote: .. >> 1. Datetime.py time source (time.time()) represents time as >> a floating point number which leads to system dependent behavior >> and introduces floating point operations where they are not ne

[issue9528] Add pure Python implementation of time module to CPython

2010-08-12 Thread STINNER Victor
STINNER Victor added the comment: > 1. Datetime.py time source (time.time()) represents time as > a floating point number which leads to system dependent behavior > and introduces floating point operations where they are not needed. Why not introducing a new function in time module? Other peop

[issue9528] Add pure Python implementation of time module to CPython

2010-08-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Aug 6, 2010 at 3:44 AM, Marc-Andre Lemburg wrote: .. > Why are you calling the ticket "*Add* pure Python implementation of time > module to CPython" when you appear to be after *replacing* the C > implementation of the time module with a Python ve

[issue9528] Add pure Python implementation of time module to CPython

2010-08-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: These changes are very aggressive and may be doing more harm than good. -- ___ Python tracker ___ ___

[issue9528] Add pure Python implementation of time module to CPython

2010-08-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: > I believe _time module should become the home of the gettimeofday() method > and pure python implementation of time.time() will be > > def time() >s, us = _time.gettimeofday() >return s + 1e-6 * us > > > Similarly time.sleep() can be implemente

[issue9528] Add pure Python implementation of time module to CPython

2010-08-05 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The original RFE at issue 7989 was: """ After discussion on numerous issues, python-dev, and here at the PyCon sprints, it seems to be a good idea to move timemodule.c to _timemodule.c and convert as much as possible into pure Python. The same change