[Python-ideas] Re: Introduce "__python__" built-in attribute

2020-11-20 Thread Hedy Li
There's `platform.python_implementation()` (https://docs.python.org/3.8/library/platform.html). Although __implementation__ might be a better name if it was to be implemented. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send a

[Python-ideas] Re: Introduce "__python__" built-in attribute

2020-11-19 Thread Steven D'Aprano
On Thu, Nov 19, 2020 at 08:21:26PM -, William Pickard wrote: > TL/DR: A new built-in attribute who's purpose is to provide a simple > way for developers to detect the Python implementation like CPython, > JPython, IronPython and PyPy among other information. >>> import sys >>> sys.i

[Python-ideas] Re: Introduce "__python__" built-in attribute

2020-11-19 Thread Batuhan Taskaya
Also there is sys.implementation On Thu, Nov 19, 2020, 11:25 PM David Mertz wrote: > This is called sys.version, right? > > On Thu, Nov 19, 2020, 3:21 PM William Pickard > wrote: > >> TL/DR: A new built-in attribute who's purpose is to provide a simple way >> for developers to detect the Python

[Python-ideas] Re: Introduce "__python__" built-in attribute

2020-11-19 Thread David Mertz
This is called sys.version, right? On Thu, Nov 19, 2020, 3:21 PM William Pickard wrote: > TL/DR: A new built-in attribute who's purpose is to provide a simple way > for developers to detect the Python implementation like CPython, JPython, > IronPython and PyPy among other information. > > Ok, so