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

Add silent mode for py_compile #66830

Closed
berkerpeksag opened this issue Oct 15, 2014 · 6 comments
Closed

Add silent mode for py_compile #66830

berkerpeksag opened this issue Oct 15, 2014 · 6 comments
Assignees
Labels
3.8 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@berkerpeksag
Copy link
Member

BPO 22640
Nosy @brettcannon, @vstinner, @merwok, @berkerpeksag, @nanjekyejoannah
PRs
  • bpo-22640: Add silent mode to py_compile #12976
  • bpo-38731: Add --quiet option to py_compile CLI #17134
  • bpo-22640: Fix function signature of quiet in docs #17719
  • 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/berkerpeksag'
    closed_at = <Date 2019-05-28.16:29:43.980>
    created_at = <Date 2014-10-15.08:23:19.902>
    labels = ['3.8', 'type-feature', 'library']
    title = 'Add silent mode for py_compile'
    updated_at = <Date 2020-04-30.22:26:22.887>
    user = 'https://github.com/berkerpeksag'

    bugs.python.org fields:

    activity = <Date 2020-04-30.22:26:22.887>
    actor = 'vstinner'
    assignee = 'berker.peksag'
    closed = True
    closed_date = <Date 2019-05-28.16:29:43.980>
    closer = 'berker.peksag'
    components = ['Library (Lib)']
    creation = <Date 2014-10-15.08:23:19.902>
    creator = 'berker.peksag'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 22640
    keywords = ['patch']
    message_count = 6.0
    messages = ['229409', '341600', '343804', '356766', '356768', '367791']
    nosy_count = 5.0
    nosy_names = ['brett.cannon', 'vstinner', 'eric.araujo', 'berker.peksag', 'nanjekyejoannah']
    pr_nums = ['12976', '17134', '17719']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue22640'
    versions = ['Python 3.8']

    @berkerpeksag
    Copy link
    Member Author

    This is similar to bpo-21338.

    It would be good to add a new option "-q" to the CLI interface and add a new parameter "quiet" to py_compile.compile() (e.g. if doraise is False and quiet is True, do not print anything).

    @berkerpeksag berkerpeksag self-assigned this Oct 15, 2014
    @berkerpeksag berkerpeksag added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Oct 15, 2014
    @brettcannon
    Copy link
    Member

    I don't see anything wrong with the idea.

    @berkerpeksag
    Copy link
    Member Author

    New changeset 2e33ecd by Berker Peksag (Joannah Nanjekye) in branch 'master':
    bpo-22640: Add silent mode to py_compile.compile() (GH-12976)
    2e33ecd

    @berkerpeksag berkerpeksag added the 3.8 only security fixes label May 28, 2019
    @merwok
    Copy link
    Member

    merwok commented Nov 16, 2019

    Internal functions got the parameter added, but not the command-line interface. Should this be reopened, or a different ticket? (I think only remove the NameError in 3.8, but complete the feature in 3.9)

    @nanjekyejoannah
    Copy link
    Member

    Am in favor of opening a separate ticket for this. Thanks

    @vstinner
    Copy link
    Member

    It seems like this change introduced a regression in main(): see https://bugs.python.org/issue40456

    @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 stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    5 participants