Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e62c584

Browse files
authored
Merge branch 'main' into poc313a5
2 parents 752c030 + 2326d6c commit e62c584

27 files changed

+430
-184
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ Other Language Changes
276276
(Contributed by Pedro Sousa Lacerda in :gh:`66449`.)
277277

278278
* :ref:`annotation scope <annotation-scopes>` within class scopes can now
279-
contain lambdas. (Contributed by Jelle Zijlstra in :gh:`109118`.)
279+
contain lambdas and comprehensions. Comprehensions that are located within
280+
class scopes are not inlined into their parent scope. (Contributed by
281+
Jelle Zijlstra in :gh:`109118` and :gh:`118160`.)
280282

281283

282284
New Modules
@@ -791,6 +793,9 @@ tkinter
791793
:class:`tkinter.ttk.Style`.
792794
(Contributed by Serhiy Storchaka in :gh:`68166`.)
793795

796+
* Add the :meth:`!after_info` method for Tkinter widgets.
797+
(Contributed by Cheryl Sabella in :gh:`77020`.)
798+
794799
traceback
795800
---------
796801

Grammar/python.gram

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ _PyPegen_parse(Parser *p)
7878
# Fail if e can be parsed, without consuming any input.
7979
# ~
8080
# Commit to the current alternative, even if it fails to parse.
81+
# &&e
82+
# Eager parse e. The parser will not backtrack and will immediately
83+
# fail with SyntaxError if e cannot be parsed.
8184
#
8285

8386
# STARTING RULES

Include/internal/pycore_ceval_state.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct _pending_call {
2020
int flags;
2121
};
2222

23-
#define PENDINGCALLSARRAYSIZE 32
23+
#define PENDINGCALLSARRAYSIZE 300
2424

2525
#define MAXPENDINGCALLS PENDINGCALLSARRAYSIZE
2626
/* For interpreter-level pending calls, we want to avoid spending too
@@ -31,7 +31,9 @@ struct _pending_call {
3131
# define MAXPENDINGCALLSLOOP MAXPENDINGCALLS
3232
#endif
3333

34-
#define MAXPENDINGCALLS_MAIN PENDINGCALLSARRAYSIZE
34+
/* We keep the number small to preserve as much compatibility
35+
as possible with earlier versions. */
36+
#define MAXPENDINGCALLS_MAIN 32
3537
/* For the main thread, we want to make sure all pending calls are
3638
run at once, for the sake of prompt signal handling. This is
3739
unlikely to cause any problems since there should be very few

Include/internal/pycore_opcode_metadata.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_ids.h

Lines changed: 104 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)