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

-q (quiet) option for python interpreter #45305

Closed
wojdyr mannequin opened this issue Aug 13, 2007 · 8 comments
Closed

-q (quiet) option for python interpreter #45305

wojdyr mannequin opened this issue Aug 13, 2007 · 8 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@wojdyr
Copy link
Mannequin

wojdyr mannequin commented Aug 13, 2007

BPO 1772833
Nosy @birkenfeld, @merwok
Files
  • option_q.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 = 'https://github.com/birkenfeld'
    closed_at = <Date 2010-12-04.10:47:57.816>
    created_at = <Date 2007-08-13.03:33:18.000>
    labels = ['interpreter-core']
    title = '-q (quiet) option for python interpreter'
    updated_at = <Date 2010-12-28.18:30:26.292>
    user = 'https://bugs.python.org/wojdyr'

    bugs.python.org fields:

    activity = <Date 2010-12-28.18:30:26.292>
    actor = 'georg.brandl'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2010-12-04.10:47:57.816>
    closer = 'georg.brandl'
    components = ['Interpreter Core']
    creation = <Date 2007-08-13.03:33:18.000>
    creator = 'wojdyr'
    dependencies = []
    files = ['8165']
    hgrepos = []
    issue_num = 1772833
    keywords = ['patch']
    message_count = 8.0
    messages = ['53021', '53022', '53023', '55249', '59407', '123333', '124806', '124812']
    nosy_count = 3.0
    nosy_names = ['georg.brandl', 'wojdyr', 'eric.araujo']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1772833'
    versions = ['Python 3.2']

    @wojdyr
    Copy link
    Mannequin Author

    wojdyr mannequin commented Aug 13, 2007

    Implementation of feature request 1728488

    Added interpreter option:

    -q Do not print the version and copyright messages. These messages are also suppressed in non-interactive mode.

    BTW: Above the usage_* strings in main.c there is a comment:
    /* Long usage message, split into parts < 512 bytes */
    Why do we have this limit? (actually one of the strings was ~570 bytes).

    @wojdyr wojdyr mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Aug 13, 2007
    @birkenfeld
    Copy link
    Member

    I'd expect the 512 bytes limit was due to some compiler restrictions.
    Whether these compilers are still in operation, I don't know.

    1 similar comment
    @birkenfeld
    Copy link
    Member

    I'd expect the 512 bytes limit was due to some compiler restrictions.
    Whether these compilers are still in operation, I don't know.

    @birkenfeld
    Copy link
    Member

    Guido, is this okay to check in?

    @birkenfeld
    Copy link
    Member

    Guido, ping?

    @birkenfeld
    Copy link
    Member

    Based on the +1's in bpo-1728488, committed in r87021, with addition to the command-line docs.

    @merwok
    Copy link
    Member

    merwok commented Dec 28, 2010

    Is it on purpose that no sys.flags attribute has been added for quiet?

    @birkenfeld
    Copy link
    Member

    No, pure ignorance -- should be fixed in r87549.

    @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
    interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants