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

gh-126835: Fold unary & binary complex constant expressions during code generation. #129963

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 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
regen files
  • Loading branch information
WolframAlph committed Feb 11, 2025
commit c17e7101fbcd22813cec305f7241e050bb156e47
1 change: 1 addition & 0 deletions 1 Include/internal/pycore_global_objects_fini_generated.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions 1 Include/internal/pycore_global_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ struct _Py_global_strings {
STRUCT_FOR_ID(opener)
STRUCT_FOR_ID(operation)
STRUCT_FOR_ID(optimize)
STRUCT_FOR_ID(optimize_ast)
STRUCT_FOR_ID(options)
STRUCT_FOR_ID(order)
STRUCT_FOR_ID(origin)
Expand Down
1 change: 1 addition & 0 deletions 1 Include/internal/pycore_runtime_init_generated.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions 4 Include/internal/pycore_unicodeobject_generated.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion 3 Modules/_testinternalcapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ _testinternalcapi.compiler_codegen -> object
filename: object
optimize: int
compile_mode: int = 0
optimize_ast: int = 1

Apply compiler code generation to an AST.
[clinic start generated code]*/
Expand All @@ -719,7 +720,7 @@ static PyObject *
_testinternalcapi_compiler_codegen_impl(PyObject *module, PyObject *ast,
PyObject *filename, int optimize,
int compile_mode, int optimize_ast)
/*[clinic end generated code: output=40a68f6e13951cc8 input=a0e00784f1517cd7]*/
/*[clinic end generated code: output=b4bf87f1213effd1 input=ece7e3ca206d738a]*/
{
PyCompilerFlags flags = _PyCompilerFlags_INIT;
if (!optimize_ast)
Expand Down
24 changes: 15 additions & 9 deletions 24 Modules/clinic/_testinternalcapi.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.