You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/python/variables.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,5 +12,5 @@ sidebar_label: Variables
12
12
-`__{variable_name}` if you want something to be private.
13
13
-`_{variable_name}` if you want something to be not publicly used or something that may change later.
14
14
-`__{variable_name}` are not directly accesible while `_{variable_name}` are. They are just for convention.
15
-
* Avoid builtin variable clash. Especially in globals. You can attach `_` as suffix to builtin names if you deem the name necessary for your variable.
15
+
* Avoid builtin variable clash. Especially in `globals`. You can attach `_` as suffix to builtin names if you deem the name necessary for your variable.
16
16
-`all` or `id` is very tempting variable names but they are builtin methods in python. Go with `all_` or `id_` for these or better yet choose something else as a name.
0 commit comments