Skip to content

Commit fb08e9a

Browse files
committed
docs: improve readability of 9.3.3 and 9.3.4 paragraphs
1 parent 0156133 commit fb08e9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ instance objects are attribute references. There are two kinds of valid
326326
attribute names: data attributes and methods.
327327

328328
*Data attributes* correspond to "instance variables" in Smalltalk, and to "data
329-
members" in C++. Data attributes need not be declared; like local variables,
329+
members" in C++. Data attributes don't have to be declared like local variables,
330330
they spring into existence when they are first assigned to. For example, if
331331
``x`` is the instance of :class:`!MyClass` created above, the following piece of
332332
code will print the value ``16``, without leaving a trace::
@@ -367,7 +367,7 @@ object, and can be stored away and called at a later time. For example::
367367
while True:
368368
print(xf())
369369

370-
will continue to print ``hello world`` until the end of time.
370+
will continue to print ``hello world`` until the end of time or when ``Ctrl + C`` is pressed.
371371

372372
What exactly happens when a method is called? You may have noticed that
373373
``x.f()`` was called without an argument above, even though the function

0 commit comments

Comments
 (0)