Re: python exceptions broken

2003-12-04 Thread Leopold Toetsch
Michal Wallace [EMAIL PROTECTED] wrote:

 Looking more at exceptions here... I
 used to be able to put arbitrary
 stuff in the _message slot of a
 ParrotException... Now we can only use
 strings. Is that permanent?

Depends on what exceptions finally are. But the standard entries like
_message are not supposed to get anything different then a string for
that.

 PythonException will need to be able
 to hold an arbitrary python object.

Attach it as a property (s. setprop/getprop).

 Michal J Wallace

leo


python exceptions broken

2003-12-03 Thread Michal Wallace


Looking more at exceptions here... I
used to be able to put arbitrary
stuff in the _message slot of a 
ParrotException... Now we can only use
strings. Is that permanent?

PythonException will need to be able
to hold an arbitrary python object. 
I'm faking it by stuffing my PMC into
a string register for now... But it 
would be REALLY nice to be able to use
the base ParrotException and not have
to write my own subclass just to get
a PMC slot. 

Would it be possible to get a ['_pmc']
or something in addition to ['_message']?

Sincerely,
 
Michal J Wallace
Sabren Enterprises, Inc.
-
contact: [EMAIL PROTECTED]
hosting: http://www.cornerhost.com/
my site: http://www.withoutane.com/
--