8000 Return hostname for os.uname().nodename and OS name for os.sysname() · Issue #10153 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

Return hostname for os.uname().nodename and OS name for os.sysname() #10153

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

Open
eightycc opened this issue Mar 20, 2025 · 1 comment
Open

Return hostname for os.uname().nodename and OS name for os.sysname() #10153

eightycc opened this issue Mar 20, 2025 · 1 comment
Assignees
Labels
cpython api modules from cpython enhancement
Milestone

Comments

@eightycc
Copy link
Collaborator

Presently CP returns the CPU type for os.uname().sysname and os.uname().nodename. For cpython compatibility os.uname().nodename should return the board's hostname and os.uname().sysname should return circuitpython or something similar.

@dhalbert dhalbert added this to the 10.0.0 milestone Mar 20, 2025
@dhalbert
Copy link
Collaborator

These choices were from a time when there was no network support. This kind of identifying information is spread around among:

  • os.uname()
  • sys.platform
  • sys.version
  • sys.version_info
  • platform (top-level module not turned on in CircuitPython but available in MicroPython)

@tannewt tannewt added the cpython api modules from cpython label Mar 20, 2025
@eightycc eightycc self-assigned this May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Assignees

@eightycc eightycc

Labels
cpython api modules from cpython enhancement
Projects
None yet
Development

No branches or pull requests

3 participants
0