From 05213ed24793ca9c653de17c76e3c4c547236209 Mon Sep 17 00:00:00 2001 From: t-kalinowski Date: Thu, 12 Oct 2023 16:15:04 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?reticulate@20b7b56ccd5d2ece8769c0a6b602ef8ff5fc6619=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 ee92180e5..4dc5b75fd 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 0x7fbf20c46f40>
+#> <list_iterator object at 0x7fedca0a3f40>
 
 # 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 0x7fbf287edfa0> +#> <__main__.MyClass object at 0x7fedc9fc6cd0> 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 0x7fbf2870fc10> is initializing +#> <__main__.MyClass object at 0x7fedca09bb20> is initializing print(instance) -#> <__main__.MyClass object at 0x7fbf2870fc10> +#> <__main__.MyClass object at 0x7fedca09bb20> instance2 = MyClass() -#> <__main__.MyClass object at 0x7fbf2871bee0> is initializing +#> <__main__.MyClass object at 0x7fedca080d00> is initializing print(instance2) -#> <__main__.MyClass object at 0x7fbf2871bee0> +#> <__main__.MyClass object at 0x7fedca080d00>

A few things to note: