From 4b5f7b7da28bd781ab7d6aa3874d0a52ba9821ae Mon Sep 17 00:00:00 2001 From: t-kalinowski Date: Fri, 18 Aug 2023 21:25:54 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?reticulate@41377f1226a3960aab567d651ee2269f3ad29bd4=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 6fed0b1f..d83a2a7f 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 0x7f6a6a623100>
+#> <list_iterator object at 0x7feacba9f610>
 
 # 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 0x7f6a6a697dc0> +#> <__main__.MyClass object at 0x7feacbb15dc0> 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 0x7f6a6a69d7f0> is initializing +#> <__main__.MyClass object at 0x7feacbb1b7f0> is initializing print(instance) -#> <__main__.MyClass object at 0x7f6a6a69d7f0> +#> <__main__.MyClass object at 0x7feacbb1b7f0> instance2 = MyClass() -#> <__main__.MyClass object at 0x7f6a6a69d9a0> is initializing +#> <__main__.MyClass object at 0x7feacbb1b9a0> is initializing print(instance2) -#> <__main__.MyClass object at 0x7f6a6a69d9a0> +#> <__main__.MyClass object at 0x7feacbb1b9a0>

A few things to note: