[Python-Dev] Re: How to (best) organize platform dependent blocks of Python code

2019-06-17 Thread Guido van Rossum
I have one data point, perhaps relevant. In the static type checking world we only care about coarse distinctions. PEP 484 states that type checkers should understand sys.platform. It does not require anything else. In practice, this is used almost exclusively to check for 'win32', since lots of A

[Python-Dev] Re: How to (best) organize platform dependent blocks of Python code

2019-06-17 Thread Steve Dower
On 16Jun2019 2354, Michael wrote: CONCERN: How to organize platform dependent blocks of code POLICY/RECOMMENDATION: (today) seems to be: arbitrary, although sys.platform, seems to be the favorite. * I, as 'python-consumer' was very surprised when I learned that sys.platform is "set" when Python