-----Original Message----- From: Alexander Belopolsky [mailto:email@example.com] Sent: Wednesday, October 25, 2017 12:07 PM To: Alex Walters firstname.lastname@example.org Cc: Chris Barker email@example.com; Python-Dev <python- firstname.lastname@example.org> Subject: Re: [Python-Dev] iso8601 parsing
On Oct 25, 2017, at 11:45 AM, Alex Walters email@example.com
it means the type of the first argument changes the semantic meaning of
arguments, and that just adds a level of confusion to any api.
No, it does not. Passing a string a the first of three arguments will
still be a
And that is a confusing api. The problem has already been solved by classmethod alternate constructors - they are already used widely in the datetime api. NOT using classmethod constructors is new and confusing for the SINGLE use case of parsing iso formatted dates and times. Why is that special? Why isn't ordinal time special to get into __init__?