diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 4f7da5253f78bc..e5c2b920b3c4c9 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -326,7 +326,7 @@ instance objects are attribute references. There are two kinds of valid attribute names: data attributes and methods. *Data attributes* correspond to "instance variables" in Smalltalk, and to "data -members" in C++. Data attributes need not be declared; like local variables, +members" in C++. Data attributes don't have to be declared like local variables, they spring into existence when they are first assigned to. For example, if ``x`` is the instance of :class:`!MyClass` created above, the following piece of code will print the value ``16``, without leaving a trace:: @@ -921,7 +921,7 @@ Examples:: >>> sum(x*y for x,y in zip(xvec, yvec)) # dot product 260 - >>> unique_words = set(word for line in page for word in line.split()) + >>> unique_words = set(word for line in page for word in line.split()) >>> valedictorian = max((student.gpa, student.name) for student in graduates)