Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change sys.platform to match CPython #395

Closed
slozier opened this issue Aug 2, 2018 · 0 comments
Closed

Change sys.platform to match CPython #395

slozier opened this issue Aug 2, 2018 · 0 comments

Comments

@slozier
Copy link
Contributor

slozier commented Aug 2, 2018

Having sys.platform == "cli" is one of those things which just causes a bunch of compatibility issues in IronPython 2.7. For IronPython 3 we should consider changing it to a standard value. There are other mechanisms such as platform.python_implementation() == "IronPython" which can be used to figure out if we're running on IronPython or not.

Note that there's also sys.implementation since Python 3.3 which we could use so we don't have to import platform to do checks in the std lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant