Skip to content

Document exec symbol for codeop.compile_command #83053

Closed

Description

@csabella
BPO 38872
Nosy @Carreau, @csabella, @miss-islington, @nanjekyejoannah, @ananthan-123
PRs
  • bpo-38872: Document exec symbol for codeop.compile_command #20047
  • [3.8] bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) #20098
  • [3.7] bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) #20099
  • 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-05-15.01:11:17.638>
    created_at = <Date 2019-11-21.01:14:06.217>
    labels = ['3.8', 'type-feature', '3.7', '3.9', 'docs']
    title = 'Document exec symbol for codeop.compile_command'
    updated_at = <Date 2020-05-15.01:38:24.870>
    user = 'https://github.com/csabella'

    bugs.python.org fields:

    activity = <Date 2020-05-15.01:38:24.870>
    actor = 'nanjekyejoannah'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2020-05-15.01:11:17.638>
    closer = 'nanjekyejoannah'
    components = ['Documentation']
    creation = <Date 2019-11-21.01:14:06.217>
    creator = 'cheryl.sabella'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38872
    keywords = ['patch']
    message_count = 6.0
    messages = ['357118', '362297', '368596', '368889', '368900', '368911']
    nosy_count = 6.0
    nosy_names = ['docs@python', 'mbussonn', 'cheryl.sabella', 'miss-islington', 'nanjekyejoannah', 'Ananthakrishnan']
    pr_nums = ['20047', '20098', '20099']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue38872'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Activity

    1. csabella commented on Nov 21, 2019

      @csabella
      ContributorAuthor

      codeop.compile_command accepts 'exec' as a symbol, but it is not documented.

      Opening this bug report for an issue initially reported in PR3179.

    2. added
      docsDocumentation in the Doc dir
      type-featureA feature request or enhancement
      on Nov 21, 2019
    3. ananthan-123 commented on Feb 20, 2020

      ananthan-123mannequin
      Mannequin

      code.compile_command takes _exec_
      as symbol.As it is not documented or mentioned anywhere I can't find any details about that.Can anyone please tell me what it does?

    4. Carreau commented on May 10, 2020

      Carreaumannequin
      Mannequin

      See the compile() documentation for the difference between eval/single/exec:

      https://docs.python.org/3/library/functions.html#compile

      exec is meant for multiline program, for example you would "exec" the string read from a file to get a module.

      I don't think we should re-document what each of these does, but list the possible values that compile_command/CommandCompiler() can take.

    5. nanjekyejoannah commented on May 15, 2020

      @nanjekyejoannah
      Contributor

      New changeset 7ba1f75 by Joannah Nanjekye in branch 'master':
      bpo-38872: Document exec symbol for codeop.compile_command (GH-20047)
      7ba1f75

    6. nanjekyejoannah commented on May 15, 2020

      @nanjekyejoannah
      Contributor

      New changeset c1203b7 by Miss Islington (bot) in branch '3.7':
      bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (bpo-20099)
      c1203b7

    7. nanjekyejoannah commented on May 15, 2020

      @nanjekyejoannah
      Contributor

      New changeset eb5ce32 by Miss Islington (bot) in branch '3.8':
      bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) (GH-20098)
      eb5ce32

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifedocsDocumentation in the Doc dirtype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions