Mix-in:A program design technology used in python program, as a base class or method of a class, can be dynamic changed during the runing time, so presentation of a class can be changed. Mix-in can be used in a general interface.
webbrowser(webrowser.open_new("url"), webbrowser.open_new_tab("url"))
Author: Denis Bilenko, E-mail: denis.bilenko@gmail.com,
sax
Directory support
module
os.path
os.path.isdir # check the directory exist?
os.path.join # use correct sepreator(*) connect paths into one (Used in UNIX)
os.makedirs
dir name is refered by a varible directory
,
from xml.sax.handler import ContentHandler
from xml.sax import parse
self.out.write(' %s="%s"' % (key, val))
printf(" %s=%s" , str1, str2);
in python: ":"
in c : "{ }"
Language symbol Operator: Equal, like `if name == 'page': '
attrs.items, attrs['']
Bug: Type error: coercing to Unicode need string or buffer, instance found