[Python-Dev] Re: [Stackless] comments on PEP 219

Gordon McMillan gmcm@hypernet.com
Tue, 13 Mar 2001 22:25:03 -0500


> >>>>> "Gordon" == Gordon McMillan <gmcm@hypernet.com> writes:
> 
>     Gordon> No one's asking them to give up __init__. Just asking
>     them not Gordon> to transfer control from inside an __init__.
>     There are good Gordon> reasons not to transfer control to
>     another thread from within an Gordon> __init__, too.
> 
> Is this same restriction placed on all "magic" methods like
> __getitem__?  

In the absence of making them interpreter-recursion free, yes.

> Is this the semantic difference between Stackless
> and CPython that people are getting all in a lather about?

What semantic difference? You can't transfer control to a 
coroutine / urthread in a magic method in CPython, either 
<wink>.

- Gordon