[issue5434] datetime.monthdelta

2010-06-01 Thread Jess Austin
Changes by Jess Austin : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bugs-list mailing list Unsubscri

[issue5434] datetime.monthdelta

2010-06-01 Thread Jess Austin
Jess Austin added the comment: Yeah, the masses have spoken, and their silence is deafening. I was going to downplay the "health" of the package based on the number of downloads, but then I looked at the "futures" page. b^) Seriously, getting this in would require a co

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2010-05-25 Thread Jess Austin
Jess Austin added the comment: Could you provide some reasoning for such a resolution? I had thought that "won't fix" indicated that the issue wasn't actually an error in behavior. I grant that most people will never see this particular error,

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2010-04-21 Thread Jess Austin
Jess Austin added the comment: To be systematic, without the patch: >>> D(1900, 1, 1) > DT(1900, 1, 1) False >>> D(1900, 1, 1) < DT(1900, 1, 1) False >>> DT(1900, 1, 1) > D(1900, 1, 1) Traceback (most recent call last): File "", line 1, in Type

[issue7116] str.join() should be documented as taking an iterable

2009-10-12 Thread Jess Austin
Changes by Jess Austin : -- keywords: +patch Added file: http://bugs.python.org/file15111/jointakesiterables.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7116] str.join() should be documented as taking an iterable

2009-10-12 Thread Jess Austin
New submission from Jess Austin : In its __doc__ string and in the documentation, str.join() is described as taking a sequence. This is not general enough; it actually takes any iterable of strings: >>> ','.join(str(x) for x in range(5)) '0,1,2,3,4' Mayb

[issue5434] datetime.monthdelta

2009-04-22 Thread Jess Austin
Changes by Jess Austin : Removed file: http://bugs.python.org/file13696/monthdelta2.diff ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bugs-list m

[issue5434] datetime.monthdelta

2009-04-22 Thread Jess Austin
Changes by Jess Austin : Added file: http://bugs.python.org/file13743/monthdelta3.diff ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bugs-list m

[issue5434] datetime.monthdelta

2009-04-22 Thread Jess Austin
Jess Austin added the comment: The backport through python 2.3 is up at PyPI: http://pypi.python.org/pypi?name=MonthDelta&:action=display Download source and install, or just easy_install. Documentation is also linked at PyPI. -- ___ Py

[issue5434] datetime.monthdelta

2009-04-15 Thread Jess Austin
Changes by Jess Austin : Removed file: http://bugs.python.org/file13309/monthdelta.diff ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bugs-list m

[issue5434] datetime.monthdelta

2009-04-15 Thread Jess Austin
Changes by Jess Austin : Added file: http://bugs.python.org/file13696/monthdelta2.diff ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bugs-list m

[issue2706] datetime: define division timedelta/timedelta

2009-03-24 Thread Jess Austin
Jess Austin added the comment: A comment on the two most recent patches... For both of these, we can do the following: >>> from datetime import timedelta >>> td = timedelta(12) >>> td datetime.timedelta(12) >>> td //= 3 >>> td datetime.

[issue5434] datetime.monthdelta

2009-03-24 Thread Jess Austin
Jess Austin added the comment: With the rejection of Issue 5530, it seems best for the name of this class to remain lowercase. Mixing casing schemes within the same module would be perverse. -- title: datetime.MonthDelta -> datetime.monthde

[issue5520] refactor test_datetime.py

2009-03-24 Thread Jess Austin
Jess Austin added the comment: I don't see a point to this one since Issue 5530 was rejected. If someone else wants this they can reopen it. -- status: open -> closed ___ Python tracker <http://bugs.python.or

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2009-03-23 Thread Jess Austin
Jess Austin added the comment: The attached patch fixes this issue, and updates the tests. Contrary to my initial impression, it seems that a previous developer knew of this behavior and thought it correct; see the comment of the test I deleted. I left memcmp() in. -- keywords

[issue5530] datetime class names should obey PEP 8 CapWords convention

2009-03-20 Thread Jess Austin
New submission from Jess Austin : 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-

[issue5520] refactor test_datetime.py

2009-03-20 Thread Jess Austin
Changes by Jess Austin : Removed file: http://bugs.python.org/file13376/test_datetime.diff ___ Python tracker <http://bugs.python.org/issue5520> ___ ___ Python-bugs-list m

[issue5520] refactor test_datetime.py

2009-03-20 Thread Jess Austin
Changes by Jess Austin : Added file: http://bugs.python.org/file13385/test_datetime.diff ___ Python tracker <http://bugs.python.org/issue5520> ___ ___ Python-bugs-list m

[issue5520] refactor test_datetime.py

2009-03-19 Thread Jess Austin
New submission from Jess Austin : I've broken out this refactoring from some of the other datetime stuff I'm doing. The patch needn't be applied until the other issues that depend on it are. -- components: Library (Lib) files: test_datetime.diff keywords: patch messa

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2009-03-18 Thread Jess Austin
Changes by Jess Austin : -- title: equality not reflexive for subclasses of datetime.date and datetime.datetime -> equality not symmetric for subclasses of datetime.date and datetime.datetime ___ Python tracker <http://bugs.python.org/iss

[issue5516] equality not reflexive for subclasses of datetime.date and datetime.datetime

2009-03-18 Thread Jess Austin
Changes by Jess Austin : -- title: equality not reflixive for subclasses of datetime.date and datetime.datetime -> equality not reflexive for subclasses of datetime.date and datetime.datetime ___ Python tracker <http://bugs.python.org/iss

[issue5516] equality not reflixive for subclasses of datetime.date and datetime.datetime

2009-03-18 Thread Jess Austin
New submission from Jess Austin : While the datetime.date and datetime.datetime classes consistently handle mixed-type comparison, their subclasses do not: >>> from datetime import date, datetime, time >>> d = date.today() >>> dt = datetime.combine(d, time()) >>

[issue5434] datetime.MonthDelta

2009-03-12 Thread Jess Austin
Changes by Jess Austin : Removed file: http://bugs.python.org/file13258/datetimemodule.diff ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bug

[issue5434] datetime.MonthDelta

2009-03-12 Thread Jess Austin
Changes by Jess Austin : Added file: http://bugs.python.org/file13309/monthdelta.diff ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bugs-list mailin

[issue5434] datetime.MonthDelta

2009-03-11 Thread Jess Austin
Jess Austin added the comment: This prototype python implementation passes the same tests that the C implementation in the patch does (modulo import differences). I'll probably backport this for 2.x versions. -- Added file: http://bugs.python.org/file13307/monthdel

[issue5434] datetime.MonthDelta

2009-03-06 Thread Jess Austin
Jess Austin added the comment: Rietveld link: http://codereview.appspot.com/25079 ___ Python tracker <http://bugs.python.org/issue5434> ___ ___ Python-bugs-list mailin

[issue5434] datetime.MonthDelta

2009-03-06 Thread Jess Austin
Jess Austin added the comment: This is my first try at a patch. All functionality, tests, and documentation are included, but I won't be surprised if I need to make some changes! Please let me know. -- keywords: +patch Added file: http://bugs.python.org/file13258/datetimemodule

[issue5434] datetime.MonthDelta

2009-03-06 Thread Jess Austin
New submission from Jess Austin : datetime is a wonderful module. Perhaps the only inconvenient aspect of using it is dealing with month calculations and comparisons. This patch adds a simple class, monthdelta, which represents date offsets in terms of months. It supports basic integer-like