Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ca3cbdb

Browse filesBrowse files
Increase stack size for parser by 200. This is a minimal change (approx. 5kb) and should not have an impact on any systems. Update parser test to allow 99 nested levels again
1 parent 7a41a90 commit ca3cbdb
Copy full SHA for ca3cbdb

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎Lib/test/test_parser.py

Copy file name to clipboardExpand all lines: Lib/test/test_parser.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ def _nested_expression(self, level):
808808

809809
def test_deeply_nested_list(self):
810810
# XXX used to be 99 levels in 2.x, used to be 93 levels in 3.7.X
811-
e = self._nested_expression(88)
811+
e = self._nested_expression(99)
812812
st = parser.expr(e)
813813
st.compile()
814814

‎Parser/parser.h

Copy file name to clipboardExpand all lines: Parser/parser.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern "C" {
77

88
/* Parser interface */
99

10-
#define MAXSTACK 1500
10+
#define MAXSTACK 1700
1111

1212
typedef struct {
1313
int s_state; /* State in current DFA */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.