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 the reason I'm suggesting this is for another suggestion I'll submit a 
later date (once I feel this one has ran it's course, or the contributors 
decide about it).
The goal of this attribute (as mentioned above) is to provide developers quick 
and simple information about the Python runtime like whether or not it's 
running on CPython or PyPy and other details.

Key information this attribute provides is implementation's name (ex: CPython), 
implementation's version (may be independent of Python's) and Python's version 
(ex: 3.10)
Optional information can include the platform's name/architecture, whether or 
not it's a JIT/Interpreter/BOTH environment.
This attribute is also flexible so implementators can also provide attributes 
to show information like whether or not it mimics another implementation, or 
information unique (or mimic'd) about it.

Another TL/DR: I suck at communicating ideas across, but I hope you get the 
idea behind it.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/NF354OUXTXHXP3TF4LB65VDDEFKSASJN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to