how to handle broken pipes

2009-10-14 Thread Igor Mikushkin
Hello all! Could anyone please say me what is the right way to handle broken pipes in Python? I can wrap all my print statements with try/except blocks but it looks like overkill for me. I'm using my Python script this way: my_script | less The script produces a lot of data. So usually when I fin

When to derive from object?

2009-10-13 Thread Igor Mikushkin
Hello all! I'm a newbie to Python. Could you please say me when it is better to derive from "object" and when not? Thanks, Igor -- http://mail.python.org/mailman/listinfo/python-list