History for Lib/code.py - python/cpython · GitHub

github.com

Tin mới

gh-130645: Add color to stdlib argparse CLIs (gh-133380)

gh-130645: Add color to stdlib argparse CLIs (gh-133380)

gh-130660: Restore sys.ps1 and sys.ps2 after code.interact (#130661)

gh-130660: Restore sys.ps1 and sys.ps2 after code.interact (#130661)

gh-125666: Avoid PyREPL exiting when a null byte is in input (#125732)

gh-125666: Avoid PyREPL exiting when a null byte is in input (#125732)

gh-122546: Relax SyntaxError check when raising errors on the new REPL (#123233)

gh-122546: Relax SyntaxError check when raising errors on the new REPL (#123233)

gh-122546: use same filename for different exceptions in new repl (#123217)

gh-122546: use same filename for different exceptions in new repl (#123217)

gh-121804: Always show error location for SyntaxError's in new repl (#121886)

gh-121804: Always show error location for SyntaxError's in new repl (#121886)

gh-82378 fix sys.tracebacklimit in pyrepl, approach 2 (#123062)

gh-82378 fix sys.tracebacklimit in pyrepl, approach 2 (#123062)

gh-122478: Remove internal frames from tracebacks in REPL (GH-122528)

gh-122478: Remove internal frames from tracebacks in REPL (GH-122528)

gh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456)

gh-87320: In the code module, handle exceptions raised in sys.excepthook (GH-122456)

gh-120417: Add #noqa to used imports in the stdlib (#120421)

gh-120417: Add #noqa to used imports in the stdlib (#120421)

gh-118893: Evaluate all statements in the new REPL separately (#119318)

gh-118893: Evaluate all statements in the new REPL separately (#119318)

gh-74929: PEP 667 general docs update (gh-119201)

gh-74929: PEP 667 general docs update (gh-119201)

gh-111201: Allow pasted code to contain multiple statements in the REPL (#118712)

gh-111201: Allow pasted code to contain multiple statements in the REPL (#118712)

gh-111201: A new Python REPL (GH-111567)

gh-111201: A new Python REPL (GH-111567)

GH-102895 Add an option local_exit in code.interact to block exit() from terminating the whole process (GH-102896)

GH-102895 Add an option local_exit in code.interact to block exit() from terminating the whole process (GH-102896)

gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,sys.last_traceback (#102779)

gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,sys.last_traceback (#102779)

Fix documentation in code.py (GH-17988)

Fix documentation in code.py (GH-17988)

bpo-30166: Import command-line parsing modules only when needed. (#1293)

bpo-30166: Import command-line parsing modules only when needed. (#1293)

Issue #27573 make the exit message configurable.

Issue #27573 make the exit message configurable.

Issue27573 code.interact prints a message when exiting.

Issue27573 code.interact prints a message when exiting.

Remaining fallout from 17911

Remaining fallout from 17911

#17442: Add chained traceback support to InteractiveInterpreter.

#17442: Add chained traceback support to InteractiveInterpreter.

Issue #21966: Respect -q command-line option when code module is ran.

Issue #21966: Respect -q command-line option when code module is ran.

Closes #17730: in code.interact(), when banner="", do not print anything.

Closes #17730: in code.interact(), when banner="", do not print anything.

Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)

Issue #18200: Update the stdlib (except tests) to use

Issue #12643: Respect sys.excepthook in code.InteractiveConsole

Merged revisions 75264,75268,75293,75318,75391-75392,75436,75478,75971,76003,76058,76140-76141,76231,76380,76428-76429 via svnmerge from

Fix issue #1707. When raw_input() was removed, it was incorrectly replaced

Merged revisions 56492-56752 via svnmerge from

Kill off softspace completely (except in formatter.py which seems to have

Fix most trivially-findable print statements.

Patch #1550800: make exec a function.

Get rid of a bunch more raw_input references

- Finally fixed the bug in compile() and exec where a string ending