pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/032bf30643fff49b5595b53f9c1ce5b2cd2df504

faa60c69660fa.css" /> bpo-37253: Remove PyAST_obj2mod_ex() function (GH-14020) · python/cpython@032bf30 · GitHub
Skip to content

Commit 032bf30

Browse files
bpo-37253: Remove PyAST_obj2mod_ex() function (GH-14020)
PyAST_obj2mod_ex() is similar to PyAST_obj2mod() with an additional 'feature_version' parameter which is unused. (cherry picked from commit 022ac0a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent c80183e commit 032bf30

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

Include/Python-ast.h

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

Parser/asdl_c.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,11 +1190,6 @@ class PartingShots(StaticVisitor):
11901190
11911191
/* mode is 0 for "exec", 1 for "eval" and 2 for "single" input */
11921192
mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
1193-
{
1194-
return PyAST_obj2mod_ex(ast, arena, mode, PY_MINOR_VERSION);
1195-
}
1196-
1197-
mod_ty PyAST_obj2mod_ex(PyObject* ast, PyArena* arena, int mode, int feature_version)
11981193
{
11991194
mod_ty res;
12001195
PyObject *req_type[3];
@@ -1280,7 +1275,6 @@ def main(srcfile, dump_module=False):
12801275
f.write("\n")
12811276
f.write("PyObject* PyAST_mod2obj(mod_ty t);\n")
12821277
f.write("mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode);\n")
1283-
f.write("mod_ty PyAST_obj2mod_ex(PyObject* ast, PyArena* arena, int mode, int feature_version);\n")
12841278
f.write("int PyAST_Check(PyObject* obj);\n")
12851279
f.write('\n')
12861280
f.write('#ifdef __cplusplus\n')

Python/Python-ast.c

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy