This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Add silent mode for py_compile
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: berker.peksag Nosy List: berker.peksag, brett.cannon, eric.araujo, nanjekyejoannah, vstinner
Priority: normal Keywords: patch

Created on 2014-10-15 08:23 by berker.peksag, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12976 merged nanjekyejoannah, 2019-04-26 22:11
PR 17134 open Gregory Shevchenko, 2019-12-02 17:21
PR 17719 merged BTaskaya, 2019-12-27 22:06
Messages (6)
msg229409 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2014-10-15 08:23
This is similar to issue 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).
msg341600 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2019-05-06 18:53
I don't see anything wrong with the idea.
msg343804 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2019-05-28 16:29
New changeset 2e33ecd7c9b0cac3efc6fcbdd4547fd086b4e2d1 by Berker Peksag (Joannah Nanjekye) in branch 'master':
bpo-22640: Add silent mode to py_compile.compile() (GH-12976)
msg356766 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2019-11-16 20:42
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)
msg356768 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2019-11-16 20:55
Am in favor of opening a separate ticket for this. Thanks
msg367791 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-04-30 22:26
It seems like this change introduced a regression in main(): see
Date User Action Args
2022-04-11 14:58:09adminsetgithub: 66830
2020-04-30 22:26:22vstinnersetnosy: + vstinner
messages: + msg367791
2019-12-27 22:06:20BTaskayasetpull_requests: + pull_request17165
2019-12-02 17:21:34Gregory Shevchenkosetpull_requests: + pull_request16921
2019-11-16 20:55:53nanjekyejoannahsetmessages: + msg356768
2019-11-16 20:42:43eric.araujosetnosy: + eric.araujo
messages: + msg356766
2019-05-28 16:29:43berker.peksagsetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.8, - Python 3.5
2019-05-28 16:29:08berker.peksagsetmessages: + msg343804
2019-05-06 18:53:36brett.cannonsetmessages: + msg341600
2019-04-27 21:39:02nanjekyejoannahsetnosy: + nanjekyejoannah
2019-04-26 23:13:25berker.peksagsetnosy: + brett.cannon
2019-04-26 22:11:43nanjekyejoannahsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request12902
2014-10-15 08:23:19berker.peksagcreate