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

Remove platform.popen(), deprecated since Python 3.3 #79526

Closed
vstinner opened this issue Nov 28, 2018 · 2 comments
Closed

Remove platform.popen(), deprecated since Python 3.3 #79526

vstinner opened this issue Nov 28, 2018 · 2 comments
Labels
3.8 only security fixes stdlib Python modules in the Lib dir

Comments

@vstinner
Copy link
Member

BPO 35345
Nosy @vstinner
PRs
  • bpo-35345: Remove platform.popen() #10781
  • 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 2018-11-29.08:59:20.991>
    created_at = <Date 2018-11-28.23:54:11.383>
    labels = ['3.8', 'library']
    title = 'Remove platform.popen(), deprecated since Python 3.3'
    updated_at = <Date 2018-11-29.08:59:20.990>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-11-29.08:59:20.990>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-11-29.08:59:20.991>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2018-11-28.23:54:11.383>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35345
    keywords = ['patch']
    message_count = 2.0
    messages = ['330639', '330669']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = ['10781']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue35345'
    versions = ['Python 3.8']

    @vstinner
    Copy link
    Member Author

    platform.popen() is deprecated since Python 3.3: bpo-11377. Calling the function emits a DeprecationWarning and the function is documented as being deprecated.

    The function is documented in the "Win95/98 specific":
    https://docs.python.org/dev/library/platform.html#win95-98-specific

    Python 3.5 dropped Windows XP support. I don't think that Python 2.7 still support Windows 98. So it's time to remove support for this old OS.

    Python 3 now has a os.popen() function:
    https://docs.python.org/dev/library/os.html#os.popen

    @vstinner vstinner added 3.8 only security fixes stdlib Python modules in the Lib dir labels Nov 28, 2018
    @vstinner
    Copy link
    Member Author

    New changeset 73104fa by Victor Stinner in branch 'master':
    bpo-35345: Remove platform.popen() (GH-10781)
    73104fa

    @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.8 only security fixes stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant