summaryrefslogtreecommitdiffstats
path: root/python/examples/create_disk.py
Commit message (Collapse)AuthorAgeFilesLines
* python: Remove 'del g' from the docs, replace with 'g.close ()'.Richard W.M. Jones2012-04-171-1/+1
| | | | | | | | | 'del g' is a trap for the unwary. If the handle has any other references, it does nothing (in fact, it can be actively dangerous if the user was expecting the appliance to go away). In non-CPython it can be delayed arbitrarily long. Using 'g.close()' on the other hand is always safe.
* python: Translate C examples into Python and include documentation.Richard W.M. Jones2010-11-241-0/+61