|Code Listing by Alain Mellan|
Simplify the code when creating XHTML or XML hierarchies with ElementTree.
Usually, I have code like this:
table = ET.SubElement(body, 'table')
table.attrib['border'] = '1'
tr = ET.SubElement(table, 'tr')
ET.SubElement(tr, 'td').text = 'some text'
Using Python's __getattr__ and partial function evaluation allows to create an
object that will yield a much simplified syntax.
Implementation of sine, cosine, tangent functions for Decimal arithmetic, using Taylor series expansion. It uses simple numerator and denominator generators.
The nice part is, the code is independent from the Decimal library. Feed it a...
There are times were I need to generate a manifest, or perform an export of my current CVS sandbox. cvs export works similarly to cvs co, i.e. extracts directly from a repository. I want to generate a clean export, without all the log files, etc,...
Rename (move) a file with help of GNU Readline library.
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.