This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AlexWaygood
Recipients AlexWaygood, belopolsky, p-ganssle
Date 2021-11-16.19:21:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637090468.13.0.603790423029.issue45821@roundup.psfhosted.org>
In-reply-to
Content
The following methods have parameters that are positional-only in the C implementation of the `datetime` module, but positional-or-keyword in the pure-Python implementation:

* tzinfo.tzname
* tzinfo.utcoffset
* tzinfo.dst
* tzinfo.fromutc
* date.fromordinal
* date.fromisoformat
* date.__format__
* date.__le__
* date.__lt__
* date.__ge__
* date.__gt__
* date.__add__
* date.__radd__
* date.__sub__
* date.__reduce_ex__
* time.__le__
* time.__lt__
* time.__ge__
* time.__gt__
* time.fromisoformat
* time.__format__
* timedelta.__add__
* timedelta.__radd__
* timedelta.__sub__
* timedelta.__rsub__
* timedelta.__mul__
* timedelta.__rmul__
* timedelta.__floordiv__
* timedelta.__truediv__
* timedelta.__mod__
* timedelta.__divmod__
* timedelta.__le__
* timedelta.__lt__
* timedelta.__ge__
* timedelta.__gt__
* datetime.utcfromtimestamp
* datetime.fromisoformat
* datetime.strptime
* datetime.__le__
* datetime.__lt__
* datetime.__ge__
* datetime.__gt__

These inconsistencies make it extremely difficult to provide an accurate stub for these methods in typeshed.
History
Date User Action Args
2021-11-16 19:21:08AlexWaygoodsetrecipients: + AlexWaygood, belopolsky, p-ganssle
2021-11-16 19:21:08AlexWaygoodsetmessageid: <1637090468.13.0.603790423029.issue45821@roundup.psfhosted.org>
2021-11-16 19:21:08AlexWaygoodlinkissue45821 messages
2021-11-16 19:21:07AlexWaygoodcreate