On Mon, Dec 6, 2010 at 4:02 PM, Raymond Hettinger firstname.lastname@example.org wrote:
IIRC, pprint has a safe_repr() and string.Template has safe_substitute() and pydoc has a safe import.
pprint.saferepr Ok, this one's my fault as well. Probably should just be named repr.
string.Template.safe_substitute Agree on this as well.
pydoc.safeimport Not documented, so I don't really care what it's called.
Never new there was so much danger in the standard library :-)
You should have known this, Raymond! It's software.
-- Fred L. Drake, Jr. <fdrake at acm.org> "A storm broke loose in my mind." --Albert Einstein