diff --git a/dev/articles/python_primer.html b/dev/articles/python_primer.html index 51288692..4e163548 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 0x7f39113d1cd0>
+#> <list_iterator object at 0x7f1a5a5d2cd0>
# 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 0x7f391138dc70>
+#> <__main__.MyClass object at 0x7f1a5a58cc70>
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 0x7f3902937940>
+#> <function my_generator_constructor at 0x7f1a4ba06940>
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 0x7f3903983740>
+#> <generator object my_generator_constructor at 0x7f1a4ca51740>
type(my_generator)
#> <class 'generator'>
diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml
index f2d30d09..1c0d6c2d 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-27T17:53Z
+last_built: 2024-03-28T13:46Z
urls:
reference: https://rstudio.github.io/reticulate/reference
article: https://rstudio.github.io/reticulate/articles