[Stackless] Current issues

Christian Tismer tismer at stackless.com
Mon Feb 16 18:10:12 CET 2004


Donovan Preston wrote:

> 
> 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...

This one works now, again.

But we have a problem with methods:
The __reduce_- method is not used, but it is pickled/cPickled
as a function :-(
Will probably have to patch something for that!

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at stackless.com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34  home +49 30 802 86 56  mobile +49 173 24 18 776
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list