[Datetime-SIG] Another round on error-checking
carl at oddbird.net
Mon Aug 31 20:43:24 CEST 2015
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)
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: OpenPGP digital signature
More information about the Datetime-SIG