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

Alternative nameof implementation that doesn't need source code #6

Closed
alexmojaki opened this issue Jul 25, 2020 · 1 comment
Closed

Comments

@alexmojaki
Copy link
Collaborator

I recently implemented my own version of nameof just for fun after a discussion on python-ideas. I don't know if you'd want to actually use it in your library, but I thought you'd find it interesting. One cool feature is that it only uses bytecode, not source code, so it even works in the standard Python shell!

@pwwang
Copy link
Owner

pwwang commented Jul 26, 2020

Apart from being working with standard Python shell, is there anything better than the current implementation? More stable, for example?
If so, would you like to do a PR (to make sure all the current tests pass)?

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 a pull request may close this issue.

2 participants