Skip to content

gh-151059: Use PyObject_CallMethodOneArg in datetime call_tzinfo_method#151062

Open
eendebakpt wants to merge 1 commit into
python:mainfrom
eendebakpt:datetime_call_tzinfo_onearg
Open

gh-151059: Use PyObject_CallMethodOneArg in datetime call_tzinfo_method#151062
eendebakpt wants to merge 1 commit into
python:mainfrom
eendebakpt:datetime_call_tzinfo_onearg

Conversation

@eendebakpt
Copy link
Copy Markdown
Contributor

@eendebakpt eendebakpt commented Jun 7, 2026

See corresponding issue for details.

…o_method

Call tzinfo.utcoffset()/dst() via PyObject_CallMethodOneArg with the
interned &_Py_ID(utcoffset)/&_Py_ID(dst) names instead of
PyObject_CallMethod(name, "O", arg), matching call_tzname() in the same
file. Drops the format-string parse, the temporary tuple, and the
per-call method-name string.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@eendebakpt eendebakpt changed the title gh-150942: Use PyObject_CallMethodOneArg in datetime call_tzinfo_method gh-151059: Use PyObject_CallMethodOneArg in datetime call_tzinfo_method Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant