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

Doc for -X dev option should mention PYTHONDEVMODE #83893

Closed
pitrou opened this issue Feb 21, 2020 · 11 comments
Closed

Doc for -X dev option should mention PYTHONDEVMODE #83893

pitrou opened this issue Feb 21, 2020 · 11 comments
Assignees
Labels
3.11 only security fixes 3.12 bugs and security fixes docs Documentation in the Doc dir easy

Comments

@pitrou
Copy link
Member

pitrou commented Feb 21, 2020

BPO 39712
Nosy @pitrou, @vstinner, @ezio-melotti, @merwok, @willingc, @JulienPalard, @tirkarthi, @erlend-aasland, @rahul-kumi
PRs
  • bpo-39712: Cross reference env. vars and -X command line options #18685
  • Files
  • 0001-bpo-39712.patch
  • 0001-3.8-bpo-39712.patch
  • 0001-3.7-bpo-39712.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 = None
    created_at = <Date 2020-02-21.16:57:39.490>
    labels = ['easy', '3.7', '3.8', '3.9', 'type-feature', 'docs']
    title = 'Doc for `-X dev` option should mention PYTHONDEVMODE'
    updated_at = <Date 2020-02-29.23:00:44.564>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2020-02-29.23:00:44.564>
    actor = 'erlendaasland'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2020-02-21.16:57:39.490>
    creator = 'pitrou'
    dependencies = []
    files = ['48926', '48927', '48928']
    hgrepos = []
    issue_num = 39712
    keywords = ['patch', 'easy', 'newcomer friendly']
    message_count = 4.0
    messages = ['362414', '362525', '363025', '363030']
    nosy_count = 10.0
    nosy_names = ['pitrou', 'vstinner', 'ezio.melotti', 'eric.araujo', 'docs@python', 'willingc', 'mdk', 'xtreak', 'erlendaasland', 'rahul-kumi']
    pr_nums = ['18685']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue39712'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Linked PRs

    @pitrou
    Copy link
    Member Author

    pitrou commented Feb 21, 2020

    In the doc for -X options (https://docs.python.org/3/using/cmdline.html#id5), when an option can be triggered through an equivalent environment variable, that variable is mentioned.

    An exception to that is -X dev, which can also be triggered by the PYTHONDEVMODE variable, but that isn't mentioned in the CLI doc.

    Other missing environment variables in the CLI doc are PYTHONFAULTHANDLER and PYTHONTRACEMALLOC.

    @pitrou pitrou added 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes labels Feb 21, 2020
    @pitrou pitrou added docs Documentation in the Doc dir 3.7 (EOL) end of life easy 3.8 only security fixes 3.9 only security fixes type-feature A feature request or enhancement labels Feb 21, 2020
    @pitrou pitrou added docs Documentation in the Doc dir easy type-feature A feature request or enhancement labels Feb 21, 2020
    @rahul-kumi
    Copy link
    Mannequin

    rahul-kumi mannequin commented Feb 23, 2020

    I would like to work on this issue.
    Can you please suggest me specifics that I should be considering before I update the doc with the suggested inclusions.

    @vstinner
    Copy link
    Member

    An exception to that is -X dev, which can also be triggered by the PYTHONDEVMODE variable, but that isn't mentioned in the CLI doc.

    I wrote a whole new page for -X dev: https://docs.python.org/dev/library/devmode.html#devmode

    This page starts with:

    "It can be enabled using the -X dev command line option or by setting the PYTHONDEVMODE environment variable to 1."

    @erlend-aasland
    Copy link
    Contributor

    I wrote a whole new page for -X dev: https://docs.python.org/dev/library/devmode.html#devmode

    That's nice, but references for PYTHONFAULTHANDLER and PYTHONTRACEMALLOC are still missing. If you think the cross refs for -X dev and PYTHONDEVMODE clutters cmdline.html, I'll remove them from the PR.

    Is it worth it adding https://docs.python.org/dev/library/devmode.html to 3.8 and possibly 3.7 as well?

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    furkanonder added a commit to furkanonder/cpython that referenced this issue Apr 10, 2023
    miss-islington pushed a commit that referenced this issue Apr 12, 2023
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Apr 12, 2023
    …pythonGH-103414)
    
    (cherry picked from commit d65ed69)
    
    Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
    Co-authored-by: Erlend E. Aasland
    @furkanonder
    Copy link
    Contributor

    @erlend-aasland I think we can close that issue.

    miss-islington added a commit that referenced this issue Apr 16, 2023
    …03414)
    
    (cherry picked from commit d65ed69)
    
    Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
    Co-authored-by: Erlend E. Aasland
    @erlend-aasland
    Copy link
    Contributor

    erlend-aasland commented Apr 16, 2023

    @erlend-aasland I think we can close that issue.

    The issue mentioned by Antoine in the OP is not resolved yet :)

    @furkanonder
    Copy link
    Contributor

    @erlend-aasland I think we can close that issue.

    The issue mentioned by Antoine in the OP is not resolved yet :)

    What does OP mean?

    @erlend-aasland
    Copy link
    Contributor

    Sorry; Opening Post.

    @merwok merwok added 3.11 only security fixes 3.12 bugs and security fixes and removed 3.9 only security fixes 3.8 only security fixes 3.7 (EOL) end of life type-feature A feature request or enhancement labels Apr 17, 2023
    @merwok merwok self-assigned this Apr 17, 2023
    @merwok
    Copy link
    Member

    merwok commented Apr 17, 2023

    I improved help texts and cross-references in #100627 and #93219 but did not see this issue!
    Will make a patch, or review one.

    aisk pushed a commit to aisk/cpython that referenced this issue Apr 18, 2023
    @vstinner
    Copy link
    Member

    vstinner commented May 4, 2023

    I'm not sure which references are missing:

    • -X faulthandler doc links to PYTHONFAULTHANDLER
    • -X dev doc links to Python Development Mode which links to PYTHONDEVMODE
    • -X tracemalloc doc links to PYTHONTRACEMALLOC
    • PYTHONDEVMODE doc links to -X dev
    • PYTHONTRACEMALLOC doc links to -X tracemalloc
    • PYTHONFAULTHANDLER doc links to -X faulthandler

    @vstinner
    Copy link
    Member

    vstinner commented May 4, 2023

    I close the issue, please reopen it if something was missing.

    @vstinner vstinner closed this as completed May 4, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 only security fixes 3.12 bugs and security fixes docs Documentation in the Doc dir easy
    Projects
    None yet
    Development

    No branches or pull requests

    5 participants