def __del__(self):
"""...vanish like Arthur Dent - but close the database first"""
try:
self.close() # '#' står på linje
except: # mange blanke foran kommentar
pass # her også
The <pre> tag defines preformatted text.
Text in a pre element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.
CODE is used for snippets of code which appear inside a paragraph of text. It is usually rendered in a monospaced font. You can use this tag to mark up things like <CODE>for ( ; ; ) ;</CODE> is a nice way to make an endless loop in C.
For larger blocks of code, use PRE instead. If what you are marking up is what a user should type in, use KBD.
Notes:
* CODE will usually be rendered in a monospaced font, but multiple spaces are collapsed, unlike in PRE. This can screw up the spacing in your code if you want to provide more than one line.
Registrerte brukere: Google [Bot]