← 返回首页
bpo-41260: C impl of datetime.date.strftime() takes different keyword arg by ZackerySpytz · Pull Request #21712 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

bpo-41260: C impl of datetime.date.strftime() takes different keyword arg#21712

Merged
iritkatriel merged 2 commits into
python:mainfrom
ZackerySpytz:bpo-41260-datetime-strftime-param
Nov 25, 2022
Merged

bpo-41260: C impl of datetime.date.strftime() takes different keyword arg#21712
iritkatriel merged 2 commits into
python:mainfrom
ZackerySpytz:bpo-41260-datetime-strftime-param

Conversation

ZackerySpytz commented Aug 3, 2020
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

The parameter was named "fmt" in the Python implementation, but it
was was named "format" in the C implementation.

https://bugs.python.org/issue41260

… arg The parameter was named "fmt" in the Python implementation, but it was was named "format" in the C implementation.

asottile left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

oh uh, I was working through this with a beginner as a mentorship opportunity -- but the patch looks correct and equivalent to what we were doing

there's another function which should be updated as well which has a similar problem

Copy link
Copy Markdown
Member

Should this be backported?

Copy link
Copy Markdown
Contributor

Should this be backported?

I don't think so -- since it ~technically changes the signatures of the functions slightly

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Footer

© 2026 GitHub, Inc.