Redirect sys.stderr to the log file in ANUGA logging.
This might catch unexpected exceptions.
--
http://mail.python.org/mailman/listinfo/python-list
deostroll wrote:
Hi,
I just found that you could use platform.system() to get the
underlying os used. But is there a way to get the distro used...?
--deostroll
platform.dist() returns
('debian', 'lenny/sid', '')
on my Ubuntu box.
Ross
--
http://mail.python.org/mailman/listinfo/python-list
http://wwwx.cs.unc.edu/~gb/wp/blog/2007/02/04/python-opencv-wrapper-using-ctypes/
--
http://mail.python.org/mailman/listinfo/python-list
r-w wrote:
If no internet connection:
if have files:
run anyway, with warning
else:
ERROR
else:
if error getting hash/files:
if have files:
run anyway, with warning
else:
ERROR
else:
run
Sorry, guys.
This should
If no internet connection:
if have files:
run anyway, with warning
else:
ERROR
else:
if error getting hash/files:
if have files:
run anyway, with warning
else:
ERROR
else:
run
--
http://mail.python.org/mailman/listinfo
If no internet connection:
if have files:
run anyway, with warning
else:
ERROR
else:
if error getting hash/files:
if have files:
run anyway, with warning
else:
ERROR
else:
run
--
http://mail.python.org/mailman/listinfo
I'm using the excellent 'auto_dict'
(http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/537637) but I'd like
to be able to extend it.
Currently my program has
class auto_dict(dict):
def __getitem__(self, key):
return self.setdefault(key, self.__class__())
daily=auto_dict()
tr