Skip to content

Commit 43540b3

Browse files
committed
update Python Objects
1 parent 95a0c1c commit 43540b3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

notebooks/PythonObjects-Singleton.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@
198198
"## Making it do something\n",
199199
"- adding behaviors/methods\n",
200200
"- `self` is a required parameter which refers to each instance of the class\n",
201-
"- `self` is essentially replaced by object name"
201+
"- `self` is essentially replaced by object name\n",
202+
"- `self` is similar to `this` in Java/C++\n",
203+
"- `self` is not a keyword in Python, just a naming convention; however,\n",
204+
" it is strongly recommended to use `self` to avoid confusion\n",
205+
"- `self` must be the first parameter of any method in a class"
202206
]
203207
},
204208
{

0 commit comments

Comments
 (0)