From 1a80872f180057fb872ee591df44544353f8555b Mon Sep 17 00:00:00 2001 From: t-kalinowski Date: Wed, 20 Mar 2024 13:51:42 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20rstudio/?= =?UTF-8?q?reticulate@7fba3094208a8c733fd41f2e20274248da1adc2a=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/package.html | 2 +- dev/articles/python_primer.html | 20 ++++++++++---------- dev/news/index.html | 9 ++++++++- dev/pkgdown.yml | 2 +- dev/reference/index.html | 2 +- dev/reference/iterate.html | 20 ++++++++++---------- 6 files changed, 31 insertions(+), 24 deletions(-) diff --git a/dev/articles/package.html b/dev/articles/package.html index 422a27bd..603a60eb 100644 --- a/dev/articles/package.html +++ b/dev/articles/package.html @@ -356,7 +356,7 @@

Using Github Actions - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: rcmdcheck remotes reticulate + extra-packages: rcmdcheck reticulate - uses: actions/setup-python@v4 with: diff --git a/dev/articles/python_primer.html b/dev/articles/python_primer.html index 5ba9a827..27747972 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 0x7fb646bbdc40>
+#> <list_iterator object at 0x7f2adcde3ac0>
 
 # 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 0x7fb646bd83d0> +#> <__main__.MyClass object at 0x7f2adcd99190> 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 0x7fb646b06220> is initializing +#> <__main__.MyClass object at 0x7f2adcd86c40> is initializing print(instance) -#> <__main__.MyClass object at 0x7fb646b06220> +#> <__main__.MyClass object at 0x7f2adcd86c40> instance2 = MyClass() -#> <__main__.MyClass object at 0x7fb646b063a0> is initializing +#> <__main__.MyClass object at 0x7f2adcd956a0> is initializing print(instance2) -#> <__main__.MyClass object at 0x7fb646b063a0> +#> <__main__.MyClass object at 0x7f2adcd956a0>

A few things to note: