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

Explain id function #39

Open
DavidLeoni opened this issue Aug 12, 2023 · 0 comments
Open

Explain id function #39

DavidLeoni opened this issue Aug 12, 2023 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@DavidLeoni
Copy link
Owner

Explain difference: identifier is the name of a variable, id() result is the identity of an object

Currently there is a brief mention in an exercise, shouldn't be there or needs improvement:

https://en.softpython.org/lists/lists3-sol.html#Exercise:-augmenting-a-list-2

Further readings:

https://docs.python.org/3/reference/lexical_analysis.html#identifiers
https://docs.python.org/3/library/functions.html#id
https://stackoverflow.com/a/15667328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant