-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-143672: convert the struct module to AC #143673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| See help(struct) for more on format strings. | ||
| Return a new Struct object which writes and reads binary data according | ||
| to the format string. See help(struct) for more on format strings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the reason for newline -> double space change? I was not aware that this is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In some docstrings "See help(struct) for more on format strings." was separated to a new paragraph. In some - no. Looks as a waste of space, especially in help(struct) output.
| / | ||
| *args: array | ||
| Pack args to the writtable buffer according to the format self. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Pack args to the writtable buffer according to the format self. | |
| Pack args to the writtable buffer according to the struct's format string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too long. Beware @permit_long_summary.
| strings."); | ||
| *args: array | ||
| Return a bytes object with args, packed according the format self. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Return a bytes object with args, packed according the format self. | |
| Return a bytes object with args, packed according the struct's format string. |
|
BTW, I'm not attached to docstrings. IMO, they aren't good and I tried to improve that. But I can just revert that stuff and keep old doctsrings almost literally (summary line is required, though). |
Uh oh!
There was an error while loading. Please reload this page.