view allpy/util.py @ 368:57894fcb7792
Block.flush_left() -> Alignment.flush("left"); implemented flushing left, right and center. (see #25)
author |
Daniil Alexeyevsky <me.dendik@gmail.com> |
date |
Wed, 26 Jan 2011 21:17:01 +0300 |
parents |
e5c8deea6f83 |
children |
4bc2075d338a |
line source
1 """Miscellanous utilities.
5 """The oppozite of zip() builtin."""
12 def remove_each(string, substrings):
13 """Remove each of substrings from string."""
14 for sub in substrings:
15 string = string.replace(sub, "")
19 """Clone of dict that user may add attributes to."""
23 """Clone of list that user may add attributes to."""
26 # vim: set et ts=4 sts=4 sw=4: