[Stackless] Current issues

Donovan Preston dp at ulaluma.com
Mon Feb 16 06:23:18 CET 2004

On Feb 15, 2004, at 11:50 PM, Bob Ippolito wrote:

>>> [module case covered by test_pickle] the 'pricklepit' breaks the 
>>> __new__ behavior of a few types, most notably function and module
>> I don't see how functions break the pickling; this seems
>> to be compatible.
> Ok, I may have been wrong about functions.. I could've sworn that 
> someone else had a problem with them.

This is not a sane use case, but this is what I was doing with Python 
that was not working with stackless:

Python 2.3.3 Stackless 3.0 040119 (#1, Feb  8 2004, 00:27:06)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import types
 >>> def foo(self): print "foo"
 >>> class Bar(object): pass
 >>> x = Bar()
 >>> x.baz = types.MethodType(foo, x, Bar)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
TypeError: function takes exactly 2 arguments (3 given)

Like I said, it's not a sane use case, and I just did what I was trying 
to do a different way, but it *does* work in Python and not 


Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list