Python

Dictionaries or Associative Arrays in Python

I have a couple previous articles around a similar topic but since I have not added any python code here is a short how to for future reference. It may be called associative arrays in other languages but Python calls it dicts or dictionaries. Related links: http://blog.ls-al.com/creating-a-javascript-array-with-one-to-many-type-relationship/ http://blog.ls-al.com/multi-array-in-bash/ http://blog.ls-al.com/multidimensional-array-in-python/ Manually…

webpy Example

A short write up on how to bootstrap a webpy app and at the same time show how to make a system call with popen.  I based this short app on the skeleton example here: http://webpy.org/skeleton/0.3 Just a note on where my test live for my own reference later. Main python…

Python Manipulating XML

A short script with descriptions for reading and manipulating xml.  It seems like the python ElementTree module should be the easiest and best suited for XML manipulation.  However I had a complicated XML structure with multiple namespaces and lxml handled it better.  ElementTree could only handle one namespace with it;s…