Eric Jonas wrote:
> I'm a bit confused why
> you suggest that the reduce method should return the type as the first
> element of the tuple -- I thought it had to be a function?

I don't think it has to be strictly a function, just a
callable object.

Probably the reason the docs call it a function is that
before the type/class unification, builtin types weren't
classes, so you had to define a function to create one.

However I agree with Lisandro that there are probably
better ways than using __reduce__ if you want it to work
well with subclassing.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to