Navigation Menu

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

Add more standard baud rate constants to "termios" #72553

Closed
AndreySmirnov mannequin opened this issue Oct 5, 2016 · 3 comments
Closed

Add more standard baud rate constants to "termios" #72553

AndreySmirnov mannequin opened this issue Oct 5, 2016 · 3 comments
Labels
3.9 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@AndreySmirnov
Copy link
Mannequin

AndreySmirnov mannequin commented Oct 5, 2016

BPO 28367
Nosy @Yhg1s, @tonybaloney
PRs
  • bpo-28367: Add additional baud rates for termios #13142
  • Files
  • add-more-termios-baudrates.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-01-04.12:57:13.438>
    created_at = <Date 2016-10-05.19:22:47.128>
    labels = ['type-feature', 'library', '3.9']
    title = 'Add more standard baud rate constants to "termios"'
    updated_at = <Date 2020-01-04.12:57:13.431>
    user = 'https://bugs.python.org/AndreySmirnov'

    bugs.python.org fields:

    activity = <Date 2020-01-04.12:57:13.431>
    actor = 'twouters'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-01-04.12:57:13.438>
    closer = 'twouters'
    components = ['Library (Lib)']
    creation = <Date 2016-10-05.19:22:47.128>
    creator = 'Andrey Smirnov'
    dependencies = []
    files = ['44977']
    hgrepos = []
    issue_num = 28367
    keywords = ['patch']
    message_count = 3.0
    messages = ['278145', '341655', '359284']
    nosy_count = 3.0
    nosy_names = ['twouters', 'Andrey Smirnov', 'anthonypjshaw']
    pr_nums = ['13142']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue28367'
    versions = ['Python 3.9']

    @AndreySmirnov
    Copy link
    Mannequin Author

    AndreySmirnov mannequin commented Oct 5, 2016

    Termios magic constants for the following baud rates:

    • B500000
    • B576000
    • B921600
    • B1000000
    • B1152000
    • B1500000
    • B2000000
    • B2500000
    • B3000000
    • B3500000
    • B4000000

    in Linux are different between various architectures (i. e. PowerPC and Alpha are different from the rest of them). And because they are defined as per-processor symbols the only way to access them is if they are built-in as a part of CPython during its compilation.

    Attached is the patch implementing that

    @AndreySmirnov AndreySmirnov mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Oct 5, 2016
    @terryjreedy terryjreedy added the 3.7 (EOL) end of life label Oct 7, 2016
    @tonybaloney
    Copy link
    Mannequin

    tonybaloney mannequin commented May 6, 2019

    Converted the original patch as a PR #57351 this seems like a good idea and an easy change

    @Yhg1s
    Copy link
    Member

    Yhg1s commented Jan 4, 2020

    New changeset 7dc72b8 by T. Wouters (Anthony Shaw) in branch 'master':
    bpo-28367: Add additional baud rates for termios (GH-13142)
    7dc72b8

    @Yhg1s Yhg1s added 3.9 only security fixes and removed 3.7 (EOL) end of life labels Jan 4, 2020
    @Yhg1s Yhg1s closed this as completed Jan 4, 2020
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants