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

FAQ about goto lacks answer #87365

Closed
Mikael-Lovqvist mannequin opened this issue Feb 11, 2021 · 4 comments
Closed

FAQ about goto lacks answer #87365

Mikael-Lovqvist mannequin opened this issue Feb 11, 2021 · 4 comments
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@Mikael-Lovqvist
Copy link
Mannequin

Mikael-Lovqvist mannequin commented Feb 11, 2021

BPO 43199
Nosy @terryjreedy, @miss-islington, @Mikael-Lovqvist
PRs
  • bpo-43199: Briefly explain why no goto #24852
  • [3.9] bpo-43199: Briefly explain why no goto (GH-24852) #24862
  • [3.8] bpo-43199: Briefly explain why no goto (GH-24852) #24863
  • 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 2021-03-15.04:22:31.679>
    created_at = <Date 2021-02-11.09:44:52.995>
    labels = ['type-feature', '3.8', '3.9', '3.10', 'docs']
    title = 'FAQ about goto lacks answer'
    updated_at = <Date 2021-03-15.04:22:31.678>
    user = 'https://github.com/Mikael-Lovqvist'

    bugs.python.org fields:

    activity = <Date 2021-03-15.04:22:31.678>
    actor = 'terry.reedy'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-03-15.04:22:31.679>
    closer = 'terry.reedy'
    components = ['Documentation']
    creation = <Date 2021-02-11.09:44:52.995>
    creator = 'mlovqvist'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43199
    keywords = ['patch']
    message_count = 4.0
    messages = ['386825', '388691', '388706', '388707']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'docs@python', 'miss-islington', 'mlovqvist']
    pr_nums = ['24852', '24862', '24863']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue43199'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @Mikael-Lovqvist
    Copy link
    Mannequin Author

    Mikael-Lovqvist mannequin commented Feb 11, 2021

    In the FAQ there is a question "Why is there no goto?" but the answer addresses how to use exceptions to do something akin to goto. I think the documentation could benefit from the reasons why there is no goto or that the question is changed, perhaps "How to approximate goto?".

    Reference: https://docs.python.org/3/faq/design.html#why-is-there-no-goto

    @Mikael-Lovqvist Mikael-Lovqvist mannequin added 3.7 (EOL) end of life 3.10 only security fixes 3.8 only security fixes 3.9 only security fixes labels Feb 11, 2021
    @Mikael-Lovqvist Mikael-Lovqvist mannequin added 3.7 (EOL) end of life docs Documentation in the Doc dir type-feature A feature request or enhancement 3.10 only security fixes 3.8 only security fixes 3.9 only security fixes labels Feb 11, 2021
    @Mikael-Lovqvist Mikael-Lovqvist mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Feb 11, 2021
    @terryjreedy
    Copy link
    Member

    New changeset 5e29021 by Terry Jan Reedy in branch 'master':
    bpo-43199: Briefly explain why no goto (GH-24852)
    5e29021

    @miss-islington
    Copy link
    Contributor

    New changeset c3f0333 by Miss Islington (bot) in branch '3.9':
    bpo-43199: Briefly explain why no goto (GH-24852)
    c3f0333

    @miss-islington
    Copy link
    Contributor

    New changeset 59f2741 by Miss Islington (bot) in branch '3.8':
    bpo-43199: Briefly explain why no goto (GH-24852)
    59f2741

    @terryjreedy terryjreedy removed the 3.7 (EOL) end of life label Mar 15, 2021
    @terryjreedy terryjreedy removed the 3.7 (EOL) end of life label Mar 15, 2021
    @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 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants