summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/examples/create_disk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/examples/create_disk.py b/python/examples/create_disk.py
index bf47c916..0885383e 100644
--- a/python/examples/create_disk.py
+++ b/python/examples/create_disk.py
@@ -51,4 +51,7 @@ g.mkdir ("/foo")
# the disk image.
g.upload ("/etc/resolv.conf", "/foo/resolv.conf")
+# Note also that handles are automatically closed if they are
+# reaped by reference counting. You only need to call close
+# if you want to close the handle right away.
g.close ()