Author belopolsky
Recipients belopolsky,, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-09-28.16:26:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I would like to take the #1 approach, and also implement an itermonthdays3() generator that would be like  itermonthdates(), but return 3-tuples (year, month, day) instead of objects.

The name "itermonthdays3" is subject to discussion, but it fits with the existing "itermonthdays" and "itermonthdays2" that yield integers and 2-tuples respectively.  An alternative, but slightly longer name would be "itermonthdatetuples".

itermonthdates() can then be reimplemented as

def itermonthdates(self, year, month):
    for y, m, d in self.itermonthdays3(year, month):
        yield, m, d)

with the obvious out of bounds behavior.
Date User Action Args
2016-09-28 16:26:28belopolskysetrecipients: + belopolsky, rhettinger, serhiy.storchaka, xiang.zhang,
2016-09-28 16:26:28belopolskysetmessageid: <>
2016-09-28 16:26:28belopolskylinkissue28292 messages
2016-09-28 16:26:27belopolskycreate