Skip to content

Conversation

@moneebullah25
Copy link

@moneebullah25 moneebullah25 commented Jan 11, 2026

Fixes #143674

Changes

  • Added documentation for F (complex from two floats) and D (complex from two doubles) format characters to the struct module docstring

Rationale

These format characters are implemented in the struct module (lines 858-859, 1189-1190, 1504-1505 in Modules/_struct.c) but were missing from the module's docstring documentation. Users consulting the docstring with help(struct) would not know these options exist.

Testing

  • Verified that F and D format characters are implemented in the code
  • Confirmed the docstring change follows the existing format and style
  • The change is minimal and only adds missing documentation

Checklist

  • Minimal change - only added missing documentation
  • Followed existing docstring format and style
  • Commit message follows CPython guidelines

Add documentation for the F (complex from two floats) and D (complex
from two doubles) format characters in the struct module docstring.
These format characters were implemented but not documented.
@bedevere-app

This comment was marked as resolved.

@python-cla-bot

This comment was marked as resolved.

@moneebullah25

This comment was marked as resolved.

@skirpichev
Copy link
Contributor

Are you using generative AI for this pr?

@moneebullah25
Copy link
Author

Are you using generative AI for this pr?

Yep I use it for commit message and comment

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
@bedevere-app

This comment was marked as resolved.

@skirpichev skirpichev added the needs backport to 3.14 bugs and security fixes label Jan 11, 2026
@python python locked as spam and limited conversation to collaborators Jan 11, 2026
@hugovk
Copy link
Member

hugovk commented Jan 11, 2026

Reported @quanghuynh10111-lab to GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Struct module docstring lacks format characters for complex types (F/D)

3 participants