-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Consider promoting platform.system over sys.platform and os.name #5622
Comments
I disagree. Different methods have different purposes. As stated in the linked post, if you only care whether you're on posix or not, |
Why not do |
This misses Android, iOS, and potentially FreeBSD. It's just a different check. If I want to know how to interpret the |
Got it, thanks. Does |
A use case where you want to use |
How would you check that? Wouldn't |
I'd use
|
Okay. I'm not sure if it's possible, but I think it would be good to come up with canonical ways of accomplishing various tasks and have Ruff nudge users towards these ways. If |
See this explanation.
The text was updated successfully, but these errors were encountered: