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

[python/en] explicit assignment of list attribute on class initialization #5230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adolsalamanca
Copy link

@adolsalamanca adolsalamanca commented Jan 12, 2025

Be more explicit to assign default lists to a new python instance. Shared defaults are already mentioned, but this code is safer to avoid having different instances pointing to the very same list without author's intention.

  • I solemnly swear that this is all original content of which I am the original author
  • Pull request title is prepended with [language/lang-code] (example [python/fr] or [java/en])
  • Pull request touches only one file (or a set of logically related files with similar changes made)
  • Content changes are aimed at intermediate to experienced programmers (this is a poor format for explaining fundamental programming concepts)

@adolsalamanca adolsalamanca changed the title python/en explicit assignment of list attribute on class initialization [python/en] explicit assignment of list attribute on class initialization Jan 12, 2025
@adolsalamanca adolsalamanca force-pushed the master branch 3 times, most recently from 45d3b7e to dd4ed44 Compare January 12, 2025 18:48
Be more explicit to assign default lists to a new python instance.
Defaults are already mentioned, but this code is safer to avoid having different
instances pointing to the very same list without intention.
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 this pull request may close these issues.

1 participant