This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010年07月06日 21:55 by belopolsky, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue9183.diff | belopolsky, 2010年07月06日 21:55 | Patch for the C code | review | |
| issue9183-proto.diff | belopolsky, 2010年07月07日 00:06 | Patch for the Python code | ||
| issue9183a.diff | belopolsky, 2010年07月28日 17:59 | Patch for both C and Python implementations | review | |
| Messages (4) | |||
|---|---|---|---|
| msg109432 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2010年07月06日 21:55 | |
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. Note that having timezone.utc is not enough to assure that the same tzinfo object is used because aware objects can be produced by datetime.strptime(). With this patch, >>> datetime.strptime('2010-07-06 21:39:55 +0000', "%Y-%m-%d %H:%M:%S %z").tzinfo is timezone.utc True |
|||
| msg109444 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2010年07月07日 00:06 | |
Python implementation of UTC interning can be done better than the one in issue9051. See attached issue9183-proto.diff. |
|||
| msg111834 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2010年07月28日 17:59 | |
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? |
|||
| msg118693 - (view) | Author: Alexander Belopolsky (belopolsky) * (Python committer) | Date: 2010年10月14日 17:07 | |
Committed in r85485. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:03 | admin | set | github: 53429 |
| 2010年10月14日 17:07:22 | belopolsky | set | status: open -> closed messages: + msg118693 |
| 2010年07月28日 18:01:38 | belopolsky | link | issue9051 dependencies |
| 2010年07月28日 18:01:25 | belopolsky | set | nosy:
+ fdrake |
| 2010年07月28日 17:59:26 | belopolsky | set | files:
+ issue9183a.diff messages: + msg111834 resolution: accepted components: + Library (Lib) |
| 2010年07月07日 00:06:05 | belopolsky | set | files:
+ issue9183-proto.diff messages: + msg109444 |
| 2010年07月06日 21:55:52 | belopolsky | create | |