Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

[Feature Request] Add __name__ #3324

Closed
1 task done
YichengDWu opened this issue Jul 28, 2024 · 1 comment
Closed
1 task done

[Feature Request] Add __name__ #3324

YichengDWu opened this issue Jul 28, 2024 · 1 comment
Labels
enhancement New feature or request mojo-repo Tag all issues with this label

Comments

@YichengDWu
Copy link
Contributor

YichengDWu commented Jul 28, 2024

Review Mojo's priorities

What is your request?

Second #894.

The attribute __name__ is implicitly set when defining a class in Python. Mojo should following the behaviour.

What is your motivation for this change?

See #894. Sometimes people want to get the type of an object as a string.

Any other details?

Or it can be added to the @value decorator.

@YichengDWu YichengDWu added enhancement New feature or request mojo-repo Tag all issues with this label labels Jul 28, 2024
Copy link
Collaborator

Duplicate of #187

@ematejska ematejska closed this as not planned Won't fix, can't repro, duplicate, stale Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

2 participants