[Python-Dev] PEP 431 Updates (original) (raw)

Lennart Regebro regebro at gmail.com
Mon Jan 28 13:06:56 CET 2013


On Sat, Jan 26, 2013 at 10:38 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:

2. Under "New class DstTzInfo"

This will be a subclass of "tzinfo" rather than "zoneinfo" (which is not a class). Given that this is a concrete subclass, you may want to consider the name "DstTimezone", which would be slightly more consistent with the existing "timezone" fixed offset subclass. (Incidentally, grumble at all the existing classes in that module without capitalized names...)

Which probably mean it actually rather should be called tztimezone or something.

6. Under "New collections"

Why both lists and sets?

Because pytz did it. But yes, you are right, an ordered set is a better solution. Baseing it on OrderedDict seems like a hack, though. I could implement a custom orderedset, of course.

//Lennart



More information about the Python-Dev mailing list