Skip to content

Conversation

@carljm
Copy link
Member

@carljm carljm commented Sep 14, 2023

Sample output for a reasonably large/complex module symtable: https://gist.github.com/carljm/7af75d2b5ea0d5d2f054fdd6c854ff67

I'm sure the output could be made much nicer, but I will leave that as an exercise for future contributors ;)

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks, this would have been very helpful.

carljm and others added 2 commits September 14, 2023 07:57
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@JelleZijlstra
Copy link
Member

Just pushed some changes:

  • Fixed the refleaks (tested by running test_type_params with -R 3:3)
  • Fixed some compiler warnings
  • Made it so you can simply flip a single #define to dump all symtables, making it easier to use the utility

Copy link
Member Author

@carljm carljm left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

@carljm
Copy link
Member Author

carljm commented Sep 20, 2023

@JelleZijlstra Thanks for the improvements! Anything else you were wanting to do here, or should I go ahead and merge?

@JelleZijlstra
Copy link
Member

Let's merge it

@carljm carljm merged commit 32ffe58 into python:main Sep 20, 2023
@carljm carljm deleted the symdump branch September 20, 2023 16:56
csm10495 pushed a commit to csm10495/cpython that referenced this pull request Sep 28, 2023
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
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.

2 participants