diff --git a/dev/articles/python_primer.html b/dev/articles/python_primer.html index 51288692..4e163548 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 0x7f39113d1cd0>
+#> <list_iterator object at 0x7f1a5a5d2cd0>
 
 # 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 0x7f391138dc70> +#> <__main__.MyClass object at 0x7f1a5a58cc70> 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 0x7f39113eedc0> is initializing +#> <__main__.MyClass object at 0x7f1a5a5eedc0> is initializing print(instance) -#> <__main__.MyClass object at 0x7f39113eedc0> +#> <__main__.MyClass object at 0x7f1a5a5eedc0> instance2 = MyClass() -#> <__main__.MyClass object at 0x7f3911387160> is initializing +#> <__main__.MyClass object at 0x7f1a5a586160> is initializing print(instance2) -#> <__main__.MyClass object at 0x7f3911387160> +#> <__main__.MyClass object at 0x7f1a5a586160>

A few things to note: