Skip to content

Add a developer mode: -X dev command line option #70857

Closed

Description

@vstinner
BPO 26670
Nosy @ronaldoussoren, @vstinner
Files
  • dev_mode.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 2016-04-01.14:08:18.840>
    created_at = <Date 2016-03-30.08:20:14.736>
    labels = ['type-feature']
    title = 'Add a developer mode: -X dev command line option'
    updated_at = <Date 2016-04-01.14:17:52.884>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2016-04-01.14:17:52.884>
    actor = 'SilentGhost'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-04-01.14:08:18.840>
    closer = 'vstinner'
    components = []
    creation = <Date 2016-03-30.08:20:14.736>
    creator = 'vstinner'
    dependencies = []
    files = ['42326']
    hgrepos = []
    issue_num = 26670
    keywords = ['patch']
    message_count = 3.0
    messages = ['262655', '262659', '262742']
    nosy_count = 2.0
    nosy_names = ['ronaldoussoren', 'vstinner']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue26670'
    versions = ['Python 3.6']

    Activity

    1. vstinner commented on Mar 30, 2016

      @vstinner
      MemberAuthor

      Attached patch implements the idea proposed on the python-ideas mailing list:
      https://mail.python.org/pipermail/python-ideas/2016-March/039314.html

      The patch is a proof-of-concept. The code still contains FIXME.

    2. ronaldoussoren commented on Mar 30, 2016

      @ronaldoussoren
      Contributor

      Why does this patch execv() the interpreter to set options? I'd expect it to be possible to get the same result by updating the argument parsing code in Py_Main.

    3. vstinner commented on Apr 1, 2016

      @vstinner
      MemberAuthor

      Why does this patch execv() the interpreter to set options? I'd expect it to be possible to get the same result by updating the argument parsing code in Py_Main.

      It's to set PYTHONMALLOC env var which must be set before Py_Main() is called.

      Since I got negative feedback on python-ideas, I close this issue and will investigate the documentation option.

    4. 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

      type-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions