This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Unexpected increase of nesting level #9
Copy link
Copy link
Closed

Description
Originally reported by: RMTEW FULL NAME (Bitbucket: rmtew, GitHub: rmtew)
(originally reported in Trac by @akruis on 2013-04-12 15:30:16)
Hi,
thanks to my colleague Michael Bauer I was able to identify the following issue:
Version: 2.7-slp
If I define the following callable class
class C(object): pass
C.__call__ = some_function
and execute c=C(); c()
in a tasklet then some_function runs at nesting level 1.
If I change the definition of class C to
class C(object):
__call__ = some_function
the nesting level does not increase.
The attached test script demonstrates this problem.
I would like to fix this issue for v2.7.4-slp.