diff --git a/dev/articles/python_primer.html b/dev/articles/python_primer.html index 27747972..d42df881 100644 --- a/dev/articles/python_primer.html +++ b/dev/articles/python_primer.html @@ -408,7 +408,7 @@
for
l = [1, 2, 3]
it = iter(l) # create an iterator object
it
-#> <list_iterator object at 0x7f2adcde3ac0>
+#> <list_iterator object at 0x7f5ac77832b0>
# 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 0x7f2adcd99190>
+#> <__main__.MyClass object at 0x7f5ac77f29a0>
type(instance)
#> <class '__main__.MyClass'>
Like the def
statement, the class
statement
@@ -632,14 +632,14 @@
A few things to note:
the class
statement takes a code block that is
@@ -675,12 +675,12 @@
Other dunder’s worth knowing about are:
__getitem__
: the function invoked when subsetting an
@@ -780,14 +780,14 @@
yield
# At first glance it presents like a regular function
my_generator_constructor
-#> <function my_generator_constructor at 0x7f2adcdfc4c0>
+#> <function my_generator_constructor at 0x7f5ac77caee0>
type(my_generator_constructor)
#> <class 'function'>
# But calling it returns something special, a 'generator object'
my_generator = my_generator_constructor()
my_generator
-#> <generator object my_generator_constructor at 0x7f2acf383a50>
+#> <generator object my_generator_constructor at 0x7f5ab9d06890>
type(my_generator)
#> <class 'generator'>
diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml
index 3bbd8089..158cefea 100644
--- a/dev/pkgdown.yml
+++ b/dev/pkgdown.yml
@@ -11,7 +11,7 @@ articles:
r_markdown: r_markdown.html
rstudio_ide: rstudio_ide.html
versions: versions.html
-last_built: 2024-03-20T13:51Z
+last_built: 2024-03-20T14:29Z
urls:
reference: https://rstudio.github.io/reticulate/reference
article: https://rstudio.github.io/reticulate/articles