New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datetime.monthdelta #49684
Comments
datetime is a wonderful module. Perhaps the only inconvenient aspect of Note: I have named the class "monthdelta", but in light of recent |
This is my first try at a patch. All functionality, tests, and |
Rietveld link: http://codereview.appspot.com/25079 |
This prototype python implementation passes the same tests that the C |
With the rejection of bpo-5530, it seems best for the name of this |
The backport through python 2.3 is up at PyPI: Download source and install, or just easy_install. Documentation is |
MonthDelta has been published on PyPI and there was no activity on this issue since then. I conclude that there is little support for including this in stdlib. I am marking this as "rejected" and setting the status to pending. I will close this issue in a few weeks unless I hear objections. Jess, I see that your package is healthy on PyPI with over 700 downloads for the latest version. Note that some additional operations have been added recently to timedelta object and more are in the works. You may want to consider adding them to the next version of your package. (See bpo-1289118 and bpo-2706.) |
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 core developer wanting it in, and at this point it seems none do. On the subject of float operations, while there may be some question about the integerness or floatness of timedelta, monthdelta is definitely an integer. As monthdelta already supports multiplication by integers and floor division by integers or monthdeltas, I don't see anything missing. To use monthdeltas with floats is to miss the point entirely. |
Rejecting this for stdlib. A 3rd party package is available at http://pypi.python.org/pypi?name=MonthDelta&:action=display . |
For future reference, python-dateutil seems like the maintained way to deal with "human" dates outside of the stdlib. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: