diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-08-28 09:11:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-28 09:11:13 (GMT) |
commit | 1a0b828994ed4ec1f2ba05123995a7d1e852f4b4 (patch) | |
tree | 77fdc324262eb57e237d652d96cda6234618ca89 /Python/ast_opt.c | |
parent | 6f563e364d1a7902417573f842019746a79cdc1b (diff) | |
download | cpython-1a0b828994ed4ec1f2ba05123995a7d1e852f4b4.zip cpython-1a0b828994ed4ec1f2ba05123995a7d1e852f4b4.tar.gz cpython-1a0b828994ed4ec1f2ba05123995a7d1e852f4b4.tar.bz2 |
gh-122561: Clean up and microoptimize str.translate and charmap codec (GH-122932)
* Replace PyLong_AS_LONG() with PyLong_AsLong().
* Call PyLong_AsLong() only once per the replacement code.
* Use PyMapping_GetOptionalItem() instead of PyObject_GetItem().
Diffstat (limited to 'Python/ast_opt.c')
0 files changed, 0 insertions, 0 deletions