Skip to content

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

Description

@eightycc

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.

Activity

  1. added theissue type on Mar 20, 2025
  2. added this to the 10.0.0 milestone on Mar 20, 2025
  3. dhalbert commented on Mar 20, 2025

    @dhalbert
    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)
  4. self-assigned this
    on May 19, 2025
  5. modified the milestones: 10.0.0, 10.x.x on Jul 24, 2025
  6. modified the milestones: 10.x.x, 10.3.0 on May 19, 2026
  7. dhalbert commented on Jun 1, 2026

    @dhalbert
    Collaborator

    Moving this to 11.0.0 since it's a breaking change in what's expected.

  8. modified the milestones: 10.3.0, 11.0.0 on Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions