Mark Damon Hughes Python [Parental Advisory: Explicit Lyrics] [about]

My Python Code |  Links | 

____________

My Python Code

] fmt.py
A horrible, terrible, vile, awesome hack to pull the caller's local variables into a format string, rather like Perl format strings:
>>> x=2
>>> fmt("{0} {x} {y}", 1, y=3)
'1 2 3'
] Utility
Utility is a generic framework for command-line utility programs written in Python.
Version 1.2 (2009Jun26):
Added Filter.py example utility.
Version 1.1 (2006Mar06):
Added minimum Python version detection, switched to UTF-8.
Version 1.0 (2006Jan03):
Initial release.
] RandPod
A minimal Python program to pick out random music.
] Umbra
Umbra is a computer role-playing game written in Python. The world is randomly-generated for new play every time, but there is an eventual goal and storyline. It was heavily influenced by roguelike games, Alternate Reality, console RPGs, and the works of H.P. Lovecraft and Clark Ashton Smith.
] ChangeExt
A Python tool to change file extensions in all subdirs. Generally useful as an example of using os.walk instead of the shell's find.
____________

Links

* Python.org
* Python documentation
* How to Think Like a Computer Scientist: Learning with Python
* Python Eggs (links to everywhere and everything)
Feedback  | Key: ] =local file, * =off-site link  | Copyright © 2003-2010 by Mark Damon Hughes | Subscribe with RSS 2.0