Skip to content
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

better struct.Struct repr #107406

Closed
denballakh opened this issue Jul 28, 2023 · 0 comments · Fixed by #107407
Closed

better struct.Struct repr #107406

denballakh opened this issue Jul 28, 2023 · 0 comments · Fixed by #107407
Labels
type-feature A feature request or enhancement

Comments

@denballakh
Copy link
Contributor

denballakh commented Jul 28, 2023

Feature or enhancement

Add better struct.Struct repr

Pitch

>>> import struct
>>> struct.Struct('i')
<_struct.Struct at 0x00223FC2C7290>

Hmm, what is the format of this struct? It is not clear from repr.

Something like this would be better:

>>> import struct
>>> struct.Struct('i')
Struct('i')

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant