Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Computer Vision

Name: Anonymous 2006-07-30 11:32

Can anyone recommend/update me with the latest/best method for 3D object recognition from 2D images?
Thanks

Name: Anonymous 2006-08-02 20:44

>>10

If you have an entire block of code where you expect each line to throw an exception, YOU ARE DOING IT WRONG. Anyway, here's how to get that behavior, stupid as it is.

def begin():
    import sys
    sys.excepthook = lambda type, value, traceback: None

def end():
    import sys
    sys.excepthook = sys.__excepthook__

Example usage:

>>> raise Exception
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
Exception
>>> begin()
>>> raise Exception
>>> end()
>>> raise Exception
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
Exception

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List