el...@cmbi.ru.nl schrieb:
On Mar 20, 10:16 am, Chris Rebert wrote:
On Fri, Mar 20, 2009 at 2:09 AM, wrote:
On Mar 20, 9:44 am, Chris Rebert wrote:
On Fri, Mar 20, 2009 at 1:32 AM, wrote:
Hi everyone,
is there a sufficiently easy possibility for a Python function to find
out whether it h
On Mar 20, 10:16 am, Chris Rebert wrote:
> On Fri, Mar 20, 2009 at 2:09 AM, wrote:
> > On Mar 20, 9:44 am, Chris Rebert wrote:
> >> On Fri, Mar 20, 2009 at 1:32 AM, wrote:
> >> > Hi everyone,
>
> >> > is there a sufficiently easy possibility for a Python function to find
> >> > out whether it
On Fri, Mar 20, 2009 at 2:09 AM, wrote:
> On Mar 20, 9:44 am, Chris Rebert wrote:
>> On Fri, Mar 20, 2009 at 1:32 AM, wrote:
>> > Hi everyone,
>>
>> > is there a sufficiently easy possibility for a Python function to find
>> > out whether it has been called from a try-block or not?
>>
>> > try
On Mar 20, 9:44 am, Chris Rebert wrote:
> On Fri, Mar 20, 2009 at 1:32 AM, wrote:
> > Hi everyone,
>
> > is there a sufficiently easy possibility for a Python function to find
> > out whether it has been called from a try-block or not?
>
> > try:
> > print "Calling foo"
> > foo()
> > except:
>
On Fri, Mar 20, 2009 at 1:32 AM, wrote:
> Hi everyone,
>
> is there a sufficiently easy possibility for a Python function to find
> out whether it has been called from a try-block or not?
>
> try:
> print "Calling foo"
> foo()
> except:
> print "Got exception"
>
> In the example above, foo() s
Hi everyone,
is there a sufficiently easy possibility for a Python function to find
out whether it has been called from a try-block or not?
try:
print "Calling foo"
foo()
except:
print "Got exception"
In the example above, foo() should be able to 'see' that it was called
from a try block,