encoding for colon-separated hex?

2013-03-21 Thread Mathias Kőrber
is there a built-in encoding (for encode/decode methods) that as colon-separated hex (01:02:03:04...)? 'hex' seems to encode as '01020304' and while one can postprocess that to insert the colons, if a single operation exists, I'd rather use that. -- http://mail.python.org/mailman/listinfo/python-

protect logger from shutdown syslogd

2013-02-24 Thread Mathias Kőrber
Hi I have a script which calls getLogger to set up a logging service. The standard logger description used both the consoleHandler and the syslogHandler. It seems that if syslogd is shut down, getLogger fails, and the script won't be able to log at all. is there a way to make it immune against t