Supporting sys.platform.startswith in type checkers
4 May
2021
4 May
'21
12:01 p.m.
Hello, I've been directed here from the typeshed community. Currently none of the type checkers and pyi linters support startswith with regards to sys.platform. It is however necessary for some more precise definitions for platform dependent constants - the sys.platform value for openbsd is openbsd{version} so comparison alone is not enough. Note that this is the recommended way to check for these other operating systems in the docs. Examples for such constants: mmap.ADV_* time.CLOCK_PROF time.CLOCK_UPTIME While obviously not a high priority issue, I'd still like to hear opinions. Thanks, Tal.
1078
Age (days ago)
1080
Last active (days ago)
3 comments
3 participants
participants (3)
-
Guido van Rossum
-
Sebastian Rittau
-
talhayon1@gmail.com