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.

Author jess.austin
Recipients jess.austin
Date 2009-03-21.05:02:22
SpamBayes Score 7.616385e-11
Marked as misclassified No
Message-id <1237611761.05.0.556904304127.issue5530@psf.upfronthosting.co.za>
In-reply-to
Content
Class names that comply with the CapWords naming convention described in
PEP 8 (http://www.python.org/dev/peps/pep-0008/) are preferred. See the
recent discussion that included the BDFL's recommendations at
http://mail.python.org/pipermail/python-dev/2009-March/086684.html.

Per those recommendations, the attached patch updates every class to
expose a CapWords name to python:

datetime.timedelta  -->  datetime.TimeDelta
datetime.date       -->  datetime.Date
datetime.tzinfo     -->  datetime.TZInfo
datetime.time       -->  datetime.Time
datetime.datetime   -->  datetime.DateTime

In addition, the old lowercase names are reproduced as derived classes,
the methods of which throw PendingDeprecationWarning, and the docstrings
of which advise using the new CapWords class names. The test_datetime.py
unit test is updated to check for proper functionality and for the
presence of the pending deprecation warnings. (This patch relies on the
previously-submitted refactoring patch attached to Issue 5520,
http://bugs.python.org/issue5520.) Various other tests and support files
are updated to use the new CapWords class names.

The current patch still fails one test in test_datetime.py, due to
previously-existing Issue 5516, http://bugs.python.org/issue5516.

This patch includes no documentation updates.
History
Date User Action Args
2009-03-21 05:02:41jess.austinsetrecipients: + jess.austin
2009-03-21 05:02:41jess.austinsetmessageid: <1237611761.05.0.556904304127.issue5530@psf.upfronthosting.co.za>
2009-03-21 05:02:37jess.austinlinkissue5530 messages
2009-03-21 05:02:35jess.austincreate