diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2014-09-28 19:11:56 -0400 |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2014-09-28 19:11:56 -0400 |
commit | d37a96204d0515336c0259cad401e0b55a0a24ab (patch) | |
tree | 84fbca81a1e5196793a7070197bbdcfdb05f6b7b /Python/errors.c | |
parent | 64ebf9f82cc286802ca9b661d8341be4bbef10f9 (diff) | |
download | cpython-d37a96204d0515336c0259cad401e0b55a0a24ab.tar.gz |
Closes issue #20858: Enhancements/fixes to pure-python datetime module
This patch brings the pure-python datetime more in-line with the C
module. Patch contributed by Brian Kearns, a PyPy developer. PyPy
project has been running these modifications in PyPy2 stdlib.
This commit includes:
- General PEP8/cleanups;
- Better testing of argument types passed to constructors;
- Removal of duplicate operations;
- Optimization of timedelta creation;
- Caching the result of __hash__ like the C accelerator;
- Enhancements/bug fixes in tests.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions