10000 gh-119127: functools.partial placeholders by dg-pb · Pull Request #119303 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-119127: functools.partial placeholders #119303

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

Closed
wants to merge 119 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
ee7333c
Initial Implementation
dg-pb May 21, 2024
8bcc462
serialization fix
dg-pb May 21, 2024
c67c9b4
bug fix
dg-pb May 21, 2024
680d900
Bug 2 fix
dg-pb May 21, 2024
9591ff5
Py_TPFLAGS_IMMUTABLETYPE added
dg-pb May 21, 2024
067e938
placeholder added to state as opposed to being used as global constant
dg-pb May 23, 2024
8af20b3
static removed
dg-pb May 23, 2024
607a0b1
creating sentinel via PyType_Spec
dg-pb May 23, 2024
f55801e
more accurate variable name
dg-pb May 23, 2024
5894145
trailing trim bug and tests
dg-pb May 24, 2024
3722e07
Updated docs
dg-pb May 24, 2024
a79c2af
blurb
dg-pb May 24, 2024
12aaa72
Merge branch 'main' into implement-119127
May 24, 2024
92c767b
minor edit
dg-pb May 24, 2024
496a9d2
doc fix
dg-pb May 24, 2024
84be524
gh-119180: Update the magic number (#119397)
JelleZijlstra May 25, 2024
de19694
gh-119105: Differ.compare is too slow [for degenerate cases] (#119492)
tim-one May 25, 2024
08e6543
gh-111999: Fix the signature of str.format_map() (#119540)
serhiy-storchaka May 25, 2024
a531fd7
FAQ: Add reference to Python version numbering scheme (#119225)
hugovk May 25, 2024
e3bac04
gh-119548: Add a 'clear' command to the REPL (#119549)
pablogsal May 25, 2024
6b6c1a9
Add codeowners for PYREPL (#119550)
pablogsal May 25, 2024
4b7eb32
gh-99180: Make `StackSummary.should_show_carets` private (#119554)
AlexWaygood May 25, 2024
0c5ebe1
gh-119560: Drop an Invalid Assert in PyState_FindModule() (gh-119561)
ericsnowcurrently May 25, 2024
e418fc3
GH-82805: Fix handling of single-dot file extensions in pathlib (#118…
barneygale May 25, 2024
d25954d
docs: fix a few typos identified by codespell (#119516)
nedbat May 26, 2024
b5b7dc9
Update README and layout.html from 3.13 to 3.14 (#119539)
Wulian233 May 26, 2024
008bc04
gh-119562: Remove AST nodes deprecated since Python 3.8 (#119563)
AlexWaygood May 26, 2024
70b07aa
gh-111997: Fix argument count for LINE event and clarify type of argu…
scoder May 26, 2024
0220663
gh-119562: Remove unused private string constants from `ast.py` (#119…
AlexWaygood May 26, 2024
5d04cc5
gh-102864: Add switching frame test for pdb (#119564)
gaogaotiantian May 26, 2024
5482a93
Re-order imports to align with zipp 3.18.2 (#119587)
jaraco May 27, 2024
5ef5622
Fix typos in HISTORY documentation (#119453)
xyb May 27, 2024
c7a5e1e
``Include/internal/pycore_import.h``: Fix typo (#119586)
Eclips4 May 27, 2024
3b26cd8
gh-119467: Fix Py_buffer.format type and correct documentation typo (…
adiaholic May 27, 2024
041a566
GH-117283: Add doc warning for `PyTuple_SetItem` refcount > 1 (#117916)
savannahostrowski May 27, 2024
59630f9
Docs: Add class role for IPV{4,6}Address and fix a typo (#118059)
rffontenelle May 27, 2024
88e3fee
Docs: Only install sphinx-autobuild for `make htmllive` (#119607)
hugovk May 27, 2024
3dfa364
gh-119580: Improve version added section for convenience variable (#1…
gaogaotiantian May 27, 2024
eea26c4
Docs: Move inline JavaScript to own file to reduce duplication (#119541)
hugovk May 27, 2024
3ff06eb
Withdraw most of my ownership in favor of Mark (#119611)
gvanrossum May 27, 2024
0bd0d40
Misc cleanups and wording improvements for the itertools docs (gh-119…
rhettinger May 27, 2024
ae7b176
gh-119584: Fix test_import Failed Assertion (gh-119623)
ericsnowcurrently May 27, 2024
3e8b609
gh-117398: Add multiphase support to _datetime (gh-119373)
erlend-aasland May 27, 2024
a9a74da
gh-119311: Fix name mangling with PEP 695 generic classes (#119464)
JelleZijlstra May 28, 2024
bf08f0a
Fix typos in comments (#119645)
xyb May 28, 2024
b313cc6
gh-117557: Improve error messages when a string, bytes or bytearray o…
serhiy-storchaka May 28, 2024
669175b
gh-116860: Remove outdated `test_parserhack` from `test_future` (#116…
sobolevn May 28, 2024
b407ad3
[doc] Clarify the nature of the root logger in the `logging` document…
jkunimune May 28, 2024
f912e5a
gh-118824: Remove deprecated `master_open` and `slave_open` from `pty…
sobolevn May 28, 2024
2da0dc0
gh-119659: Move `@no_rerun` to `test.support` (#119660)
sobolevn May 28, 2024
0518edc
gh-119396: Optimize unicode_repr() (#119617)
vstinner May 28, 2024
6ec3712
gh-119581: Add a test of InitVar with name shadowing (#119582)
stroxler May 28, 2024
a89fc26
gh-117398: gh-119655: datetime: Init static state once & don't free i…
encukou May 28, 2024
ae11d68
gh-117865: Defer import of re in ast (#119546)
JelleZijlstra May 28, 2024
6b240c2
gh-119011: `type.__type_params__` now return an empty tuple (#119296)
sobolevn May 28, 2024
ae9140f
gh-119676: remove several pseudo instructions which are use only in c…
iritkatriel May 28, 2024
d87b015
gh-119118: Fix performance regression in tokenize module (#119615)
lysnikolaou May 28, 2024
cfcc054
GH-119476: Split _CHECK_FUNCTION_VERSION out of _CHECK_FUNCTION_EXACT…
brandtbucher May 28, 2024
5cd3ffd
GH-119258: Handle STORE_ATTR_WITH_HINT in tier two (GH-119481)
brandtbucher May 28, 2024
606be66
gh-119538: Add missing expat build dependencies (#119647)
erlend-aasland May 28, 2024
548a11d
gh-117398: Convert datetime.IsoCalendarDate To A Heap Type (gh-119637)
ericsnowcurrently May 28, 2024
a8e35e8
gh-119443: Turn off from __future__ import annotations in REPL (#119493)
JelleZijlstra May 29, 2024
c0faade
gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (#1…
Eclips4 May 29, 2024
86d1a1a
gh-119555: catch SyntaxError from compile() in the InteractiveColored…
skirpichev May 29, 2024
cd11ff1
gh-119613: Use C99+ functions instead of Py_IS_NAN/INFINITY/FINITE (#…
skirpichev May 29, 2024
7ca74a7
gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#119712)
vstinner May 29, 2024
c1e9647
gh-119689: generate stack effect metadata for pseudo instructions (#1…
iritkatriel May 29, 2024
18c1a8d
gh-97588: Align ctypes struct layout to GCC/MSVC (GH-97702)
matthiasgoergens May 29, 2024
016a46a
gh-93554: add test for quickening of code in loops ending with condit…
iritkatriel May 29, 2024
0cdc5c8
gh-119613: Soft deprecate Py_IS_NAN/INFINITY/FINITE (#119701)
skirpichev May 29, 2024
055c739
CI: set correct working directory for Hypothesis cache (GH-119345)
Zac-HD May 29, 2024
1f481fd
gh-119273: Don't run test_ioctl in a process group (#119275)
vstinner May 29, 2024
34f9b3e
gh-119655: Fix reference leak in the ``_datetimemodule.c`` (gh-119713)
Eclips4 May 29, 2024
78d697b
gh-119690: Adds Unicode support for named pipes in _winapi (GH-119717)
zooba May 29, 2024
659cb7e
gh-119721: Integrate documentation fixes into heapq module docstring.…
filiplajszczak May 29, 2024
c8b45a3
gh-118673: Remove shebang and executable bits from stdlib modules. (#…
jaraco May 29, 2024
0751511
gh-93963: Remove deprecated names from importlib.abc (#119720)
hugovk May 29, 2024
bf4ff3a
gh-119260: Clarify is_dataclass Behavior for Subclasses in Documentat…
adiaholic May 29, 2024
fcca08e
gh-119594: Improve pow(fraction.Fraction(), b, modulo) error message …
wimglenn May 29, 2024
df93f5d
gh-119070: Fix py.exe handling of /usr/bin/env commands missing exten…
zooba May 29, 2024
c22323c
gh-119525: Fix deadlock with `_PyType_Lookup` and the GIL (#119527)
colesbury May 29, 2024
a150679
GH-89727: Partially fix `shutil.rmtree()` recursion error on deep tre…
barneygale May 29, 2024
7ff61f5
GH-119169: Implement `pathlib.Path.walk()` using `os.walk()` (#119573)
barneygale May 29, 2024
2cc3502
subprocess docs: Fix semantically important typo (GH-119752)
zware May 29, 2024
3c890b5
GH-89727: Fix `os.fwalk()` recursion error on deep trees (#119638)
barneygale May 30, 2024
a5fef80
GH-89727: Fix FD leak on `os.fwalk()` generator finalization. (#119766)
barneygale May 30, 2024
48f21b3
gh-118235: Move RAISE_SYNTAX_ERROR actions to invalid rules and make …
encukou May 30, 2024
db00934
gh-118055: Update the finder glossary entry (GH-118278)
Lincoln-developer May 30, 2024
b1374aa
gh-110383: Remove references to removed popen[234] (GH-112783)
shenanigansd May 30, 2024
e50fac9
gh-119336: Restore removed _PyLong_NumBits() function (#119418)
emmatyping May 30, 2024
6fb191b
gh-119779: Fix pyporting howto docs (#119785)
SweetyAngel May 30, 2024
e91fc11
gh-119786: create folder in cpython repo for internals documentation …
iritkatriel May 30, 2024
e875c2d
gh-119791: Fix new Tkinter tests for wantobjects=0 (GH-119792)
serhiy-storchaka May 30, 2024
bf098d4
gh-109218: Refactor tests for the complex() constructor (GH-119635)
serhiy-storchaka May 30, 2024
1c04c63
gh-119729: Use 't' in pkg-config file name for free-threaded build (#…
colesbury May 30, 2024
ec1ba26
gh-109218: Improve documentation for the complex() constructor (GH-11…
serhiy-storchaka May 30, 2024
deda857
Docs: `shutil.rmtree`'s `onerror` has no pending removal version (#11…
hugovk May 30, 2024
ef01e95
gh-109218: Deprecate weird cases in the complex() constructor (GH-119…
serhiy-storchaka May 30, 2024
9732ed5
gh-107262: Update Tkinter tests for Tcl/Tk 8.6.14 (GH-119322)
DBJim May 30, 2024
13a5fdc
gh-119744: move a few functions from compile.c to flowgraph.c (#119745)
iritkatriel May 30, 2024
38d9c11
better variable names and mini corrections
dg-pb May 31, 2024
39a18f8
Initial Implementation
dg-pb May 21, 2024
ee0e1f3
serialization fix
dg-pb May 21, 2024
353ac4d
bug fix
dg-pb May 21, 2024
d287026
Bug 2 fix
dg-pb May 21, 2024
df8ea4c
Py_TPFLAGS_IMMUTABLETYPE added
dg-pb May 21, 2024
0081cbd
placeholder added to state as opposed to being used as global constant
dg-pb May 23, 2024
4b329cd
static removed
dg-pb May 23, 2024
1669ca7
creating sentinel via PyType_Spec
dg-pb May 23, 2024
becd259
more accurate variable name
dg-pb May 23, 2024
6953ab7
trailing trim bug and tests
dg-pb May 24, 2024
544f774
Updated docs
dg-pb May 24, 2024
ce45640
blurb
dg-pb May 24, 2024
38e0ab7
minor edit
dg-pb May 24, 2024
1a5d45f
doc fix
dg-pb May 24, 2024
f5118bd
better variable names and mini corrections. Rebase
dg-pb May 31, 2024
73531ea
merge to main
dg-pb May 31, 2024
980383f
Merge remote-tracking branch 'origin/implement-119127' into implement…
dg-pb May 31, 2024
5a3c478
..
dg-pb May 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
gh-119555: catch SyntaxError from compile() in the InteractiveColored…
…Console (#119557)
  • Loading branch information
skirpichev authored May 29, 2024
commit 86d1a1aa8841ea182eaf434ae6b942b3e93f58db
2 changes: 1 addition & 1 deletion Lib/_pyrepl/simple_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def runsource(self, source, filename="<input>", symbol="single"):
item = wrapper([stmt])
try:
code = compile(item, filename, the_symbol, dont_inherit=True)
except (OverflowError, ValueError):
except (OverflowError, ValueError, SyntaxError):
self.showsyntaxerror(filename)
return False

Expand Down
8 changes: 8 additions & 0 deletions Lib/test/test_pyrepl/test_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ def test_runsource_shows_syntax_error_for_failed_compilation(self):
with patch.object(console, "showsyntaxerror") as mock_showsyntaxerror:
console.runsource(source)
mock_showsyntaxerror.assert_called_once()
source = dedent("""\
match 1:
case {0: _, 0j: _}:
pass
""")
with patch.object(console, "showsyntaxerror") as mock_showsyntaxerror:
console.runsource(source)
mock_showsyntaxerror.assert_called_once()

def test_no_active_future(self):
console = InteractiveColoredConsole()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Catch :exc:`SyntaxError` from :func:`compile` in the runsource() method of
the InteractiveColoredConsole. Patch by Sergey B Kirpichev.
Loading
0