-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-41525: Make the Python program help ASCII-only #21836
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The output of ``python --help`` contains now only ASCII characters. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ static const char usage_3[] = "\ | |
cumulative time (including nested imports) and self time (excluding\n\ | ||
nested imports). Note that its output may be broken in multi-threaded\n\ | ||
application. Typical usage is python3 -X importtime -c 'import asyncio'\n\ | ||
-X dev: enable CPython’s “development mode”, introducing additional runtime\n\ | ||
-X dev: enable CPython's \"development mode\", introducing additional runtime\n\ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even though conversion would be a different issue, I am curious whether there is any good reason to not use """ quotes for the string instead of "s and '\n\' and '"'. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is C. |
||
checks which are too expensive to be enabled by default. Effect of the\n\ | ||
developer mode:\n\ | ||
* Add default warning filter, as -W default\n\ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would decoding each line separately be faster?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, decoding one large string at once is faster.