A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-April/088797.html below:

[Python-Dev] Issue5434: datetime.monthdelta

[Python-Dev] Issue5434: datetime.monthdelta [Python-Dev] Issue5434: datetime.monthdeltaskip at pobox.com skip at pobox.com
Thu Apr 16 10:45:24 CEST 2009
    >>> date(2008, 1, 30) + monthdelta(1)
    datetime.date(2008, 2, 29)

What would this loop would print?

    for d in range(1, 32):
        print date(2008, 1, d) + monthdelta(1)

I have this funny feeling that arithmetic using monthdelta wouldn't always
be intuitive.

Skip
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4