[issue9183] Intern UTC timezone

2010-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85485. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue9183] Intern UTC timezone

2010-07-28 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9183] Intern UTC timezone

2010-07-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Updated issue9183a.diff patch combines C and Python code changes since datetime.py is now in stdlib. Does anyone want to review before it goes in? -- components: +Library (Lib) resolution: -> accepted Added file: http://bugs.python.org/file182

[issue9183] Intern UTC timezone

2010-07-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Python implementation of UTC interning can be done better than the one in issue9051. See attached issue9183-proto.diff. -- Added file: http://bugs.python.org/file17889/issue9183-proto.diff ___ Python tracker

[issue9183] Intern UTC timezone

2010-07-06 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Attached patch makes timezone(timedelta(0)) always return the same instance as timezone.utc. See issue9051 for pure python implementation. With this patch, manipulation of aware datetime objects will be as efficient as that of naive datetime objects.