Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
Migrate_zoneinfo.c to argument clinic.
It is proposed by@vstinner and@pganssle
Link:#19909 (comment)
Pitch
This will improve several things:
help()onZoneInfomethods. Here's how it looks now:
>>> help(zoneinfo.ZoneInfo.clear_cache)Help on built-in function clear_cache:clear_cache(...) method of builtins.type instance Clear the ZoneInfo cache.- Add
__text_signature__property to methods, it is very useful: for example,python/typesheduses it to be sure that stubs and implementation match - Move all argument parsing to clinic, which is more convenient
Previous discussion
- PEP 615: Add zoneinfo module #84683
- bpo-40503: Add tests and implementation for ZoneInfo #19909
- bpo-40503: Add tests and implementation for ZoneInfo #19909 (comment)
I will send a PR for this today :)