From c80fe40ef75ffb10ff4deaad610de059aa8b8d47 Mon Sep 17 00:00:00 2001 From: t-kalinowski Date: Mon, 11 Sep 2023 15:53:33 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?reticulate@d4d6b739bdcab2744e78c6a9e42a60697f9d5a53=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev/articles/python_primer.html | 20 ++++++++++---------- dev/pkgdown.yml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dev/articles/python_primer.html b/dev/articles/python_primer.html index 65e7ba1bd..ef77e2bec 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 0x7f5acc918880>
+#> <list_iterator object at 0x7f746a84b9d0>
 
 # 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 0x7f5acc8d4c70> +#> <__main__.MyClass object at 0x7f746a8558b0> 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 0x7f5acc8ae550> is initializing +#> <__main__.MyClass object at 0x7f746a80b400> is initializing print(instance) -#> <__main__.MyClass object at 0x7f5acc8ae550> +#> <__main__.MyClass object at 0x7f746a80b400> instance2 = MyClass() -#> <__main__.MyClass object at 0x7f5acc9125b0> is initializing +#> <__main__.MyClass object at 0x7f746a7f1670> is initializing print(instance2) -#> <__main__.MyClass object at 0x7f5acc9125b0> +#> <__main__.MyClass object at 0x7f746a7f1670>

A few things to note: