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

2012-03-22 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528 ___ ___ Python-bugs-list

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

2011-08-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alan: the Versions field is used to mark versions that will get a patch, not all versions affected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528

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

2011-08-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @alanjds: Why do you add Python 2.7 version to this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528 ___

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

2011-08-10 Thread Brett Cannon
Brett Cannon br...@python.org 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 Alan Justino
Alan Justino alan.just...@yahoo.com.br 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

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

2011-08-10 Thread Alan Justino
Alan Justino alan.just...@yahoo.com.br added the comment: (noticed a typo at the start of my last msg: @Victor should be @brett.cannon) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528

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

2011-08-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com 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

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

2011-08-09 Thread Alan Justino
Changes by Alan Justino alan.just...@yahoo.com.br: -- nosy: +alanjds versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528 ___

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

2010-12-01 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: BDFL and python-dev were opposed to this idea. -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

2010-10-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Aug 12, 2010 at 10:26 PM, STINNER Victor rep...@bugs.python.org wrote: .. 1. Datetime.py time source (time.time()) represents time as a floating point number which leads to system dependent behavior and

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

2010-08-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2010-08-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com 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

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

2010-08-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: These changes are very aggressive and may be doing more harm than good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528

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

2010-08-06 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Fri, Aug 6, 2010 at 3:44 AM, Marc-Andre Lemburg rep...@bugs.python.org 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

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

2010-08-05 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: 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