Re: Exception not raised - May be the end

2006-03-03 Thread Michele Petrazzo
Sion Arrowsmith wrote: > Michele Petrazzo <[EMAIL PROTECTED]> wrote: >> some days ago I posted here and say that python "forgot" to raise >> an exception, but my code was too long for make some tries >> possible. But now I can reproduce the problem into another, little, >> project: >> >> www.unip

Re: Exception not raised - May be the end

2006-03-03 Thread Sion Arrowsmith
Michele Petrazzo <[EMAIL PROTECTED]> wrote: >some days ago I posted here and say that python "forgot" to raise an >exception, but my code was too long for make some tries possible. >But now I can reproduce the problem into another, little, project: > >www.unipex.it/vario/wxFrameSchedule.py >www.un

Exception not raised - May be the end

2006-03-02 Thread Michele Petrazzo
Hi group, some days ago I posted here and say that python "forgot" to raise an exception, but my code was too long for make some tries possible. But now I can reproduce the problem into another, little, project: (Need wx 2.6) Here is the code: www.unipex.it/vario/wxFrameSchedule.py www.unipex.it

Re: Exception not raised

2006-02-25 Thread Michele Petrazzo
Diez B. Roggisch wrote: >> This code are inside a method into class that have no try/except. >> And called from a method inside a wx.Frame derivate. The other >> strange thing is that if I try the same code just before the >> "caller" to that method, it raise an exception: > > So maybe the C-la

Re: Exception not raised

2006-02-24 Thread Diez B. Roggisch
> This code are inside a method into class that have no try/except. And > called from a method inside a wx.Frame derivate. The other strange thing > is that if I try the same code just before the "caller" to that method, > it raise an exception: So maybe the C-layer of wx in-between doesn't pro

Re: Exception not raised

2006-02-24 Thread Michele Petrazzo
Michele Petrazzo wrote: > Michele Petrazzo wrote: >> Hi list, I have a strange error on my software on win 2k/xp and >> debian 3.1 with py 2.3.5 / 2.4.1 + twisted + wxpython: > Opss, I forgot some words :) > Just for give evidence to my _failed_ tests, my a debugger (eric3), it with a debugger

Re: Exception not raised

2006-02-24 Thread Michele Petrazzo
Michele Petrazzo wrote: > Hi list, I have a strange error on my software on win 2k/xp and > debian 3.1 with py 2.3.5 / 2.4.1 + twisted + wxpython: Just for give evidence to my _failed_ tests, my a debugger (eric3), it see the exception, so it break with a KeyError! And the same code, no! Thanks,

Re: Exception not raised

2006-02-24 Thread Michele Petrazzo
Diez B. Roggisch wrote: > Not here: > > t_fields = {} > #code > def test(): > print type(t_fields), 11 in t_fields > print t_fields[11] > print "I'm here" > > print "ok" > test() > print "ok" > #end code > > Gives me > > KeyError: 11 Also on my environ when I try this 4 line code. My pr

Re: Exception not raised

2006-02-24 Thread Larry Bates
Michele Petrazzo wrote: > Hi list, I have a strange error on my software on win 2k/xp and debian > 3.1 with py 2.3.5 / 2.4.1 + twisted + wxpython: > > python, on a piece of code doesn't raise a KeyError on a dict (that > don't have that key), but the strange thing is that the try/except code > see

Re: Exception not raised

2006-02-24 Thread Diez B. Roggisch
Michele Petrazzo wrote: > Simple example extract from my code: > > #code > def test(): > print type(t_fields), 11 in t_fields > print t_fields[11] > print "I'm here" > > print "ok" > test() > print "ok" > #end code > > Output: > > ok > False > > Here I see only one "ok" and not the "I'm here

Exception not raised

2006-02-24 Thread Michele Petrazzo
Hi list, I have a strange error on my software on win 2k/xp and debian 3.1 with py 2.3.5 / 2.4.1 + twisted + wxpython: python, on a piece of code doesn't raise a KeyError on a dict (that don't have that key), but the strange thing is that the try/except code see that exception. Other strange thing