Re: [Datetime-SIG] Another round on error-checking
Aug. 31, 2015
6:43 p.m.
On 08/31/2015 11:58 AM, Tim Peters wrote:
I think I'd rather acknowledge that problem cases exist in a direct and straightforward way, by adding a new tzinfo (say).classify() method. For example, .classify() could return a
(kind, detail)
2-tuple.
FWIW, regardless of the question of `utcoffset()` raising exceptions, the addition of this `classify()` method alone would resolve every use case I've ever had for pytz's `is_dst=None` strict ambiguity handling. Carl
3723
Age (days ago)
3723
Last active (days ago)
0 comments
1 participants
participants (1)
-
Carl Meyer