Skip to content

Commit 2ce0a0b

Browse files
issue 997
#997 : dotted notation issue
1 parent 44358e8 commit 2ce0a0b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

_episodes/02-numpy.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ The expression `numpy.loadtxt(...)` is a
7070
[function call]({{ page.root }}/reference.html#function-call)
7171
that asks Python to run the [function]({{ page.root }}/reference.html#function) `loadtxt` which
7272
belongs to the `numpy` library.
73-
This [dotted notation]({{ page.root }}/reference.html#dotted-notation)
74-
is used everywhere in Python: the thing that appears before the dot contains the thing that
75-
appears after.
73+
The dot notation in Python is used most of all as an object attribute/property specifier or for invoking its method. `object.property` will give you the object.property value,
74+
`object_name.method()` will invoke on object_name method.
7675

7776
As an example, John Smith is the John that belongs to the Smith family.
7877
We could use the dot notation to write his name `smith.john`,

0 commit comments

Comments
 (0)