From e411f38150ff5adedac0c959eacc0e3718b0b17f Mon Sep 17 00:00:00 2001 From: t-kalinowski Date: Thu, 4 Apr 2024 20:19:57 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?reticulate@e00538a55e9227ebcf3804ba735073cce88e08cb=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 1c84c48d7..6b47d8df9 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 0x7f91e0295b40>
+#> <list_iterator object at 0x7f309ebc8490>
 
 # 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 0x7f91e027a410> +#> <__main__.MyClass object at 0x7f309ebabe80> 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 0x7f91e02b9c00> is initializing +#> <__main__.MyClass object at 0x7f309ebe8b20> is initializing print(instance) -#> <__main__.MyClass object at 0x7f91e02b9c00> +#> <__main__.MyClass object at 0x7f309ebe8b20> instance2 = MyClass() -#> <__main__.MyClass object at 0x7f91e0296980> is initializing +#> <__main__.MyClass object at 0x7f309ebc8a90> is initializing print(instance2) -#> <__main__.MyClass object at 0x7f91e0296980> +#> <__main__.MyClass object at 0x7f309ebc8a90>

A few things to note: