diff --git a/dev/articles/python_primer.html b/dev/articles/python_primer.html index 27747972..d42df881 100644 --- a/dev/articles/python_primer.html +++ b/dev/articles/python_primer.html @@ -408,7 +408,7 @@

Iteration with for
l = [1, 2, 3]
 it = iter(l) # create an iterator object
 it
-#> <list_iterator object at 0x7f2adcde3ac0>
+#> <list_iterator object at 0x7f5ac77832b0>
 
 # call `next` on the iterator until it is exhausted:
 next(it)
@@ -579,7 +579,7 @@ 

Defining Classes with class instance = MyClass() instance -#> <__main__.MyClass object at 0x7f2adcd99190> +#> <__main__.MyClass object at 0x7f5ac77f29a0> type(instance) #> <class '__main__.MyClass'>

Like the def statement, the class statement @@ -632,14 +632,14 @@

What are all the underscores?#> MyClass is finished being created instance = MyClass() -#> <__main__.MyClass object at 0x7f2adcd86c40> is initializing +#> <__main__.MyClass object at 0x7f5ac77864c0> is initializing print(instance) -#> <__main__.MyClass object at 0x7f2adcd86c40> +#> <__main__.MyClass object at 0x7f5ac77864c0> instance2 = MyClass() -#> <__main__.MyClass object at 0x7f2adcd956a0> is initializing +#> <__main__.MyClass object at 0x7f5ac778b820> is initializing print(instance2) -#> <__main__.MyClass object at 0x7f2adcd956a0> +#> <__main__.MyClass object at 0x7f5ac778b820>

A few things to note: