[issue45821] Many method parameters in the datetime module are positional-only in the C implementation but positional-or-keyword in the Python implementation

2021-11-21 Thread Alex Waygood
Alex Waygood added the comment: Ref to discussion on typeshed: https://github.com/python/typeshed/pull/6343 -- ___ Python tracker ___

[issue45821] Many method parameters in the datetime module are positional-only in the C implementation but positional-or-keyword in the Python implementation

2021-11-19 Thread Alex Waygood
Alex Waygood added the comment: It seems to me that there are two ways of resolving this: (1) Change the Python implementation to match the C implementation (make these parameters positional-only in the Python implementation). (2) Change the C implementation to match the Python

[issue45821] Many method parameters in the datetime module are positional-only in the C implementation but positional-or-keyword in the Python implementation

2021-11-16 Thread Alex Waygood
New submission from Alex Waygood : 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