Can raise only "classic" classes?

Holden Caulfield phoebe_1 at att.net
Mon Jul 8 01:56:56 EDT 2002


Greetings,
  I have run into a slight problem. Is it true that you can only raise 
  exceptions that are "classic" classes? I am trying to build a exception class
  tree for my project, with the root being derived from a "new" style class. But
  i cannot use it as an argument to raise!!!!

  class Err(object):
     pass
  
  >>> raise Err

  fails!!
  Thanks



More information about the Python-list mailing list