PEP 252: __slots__ inappropriate
Jiba
a11w at SoftHome.net
Fri Aug 17 05:01:57 EDT 2001
Roman Suzi wrote:
> No, this is not good, because slot is ooptimization hack involving
> low-levels of Python implementation. (I am not at all happy it appears in
> Python.)
I totally agree with you.
I think all those hacks are contrary to the dynamic Python philosophy.
Yes, 90% of Python code can be wrtitten without any dynamic features,
but the 10% left require the whole code to be dynamic, and it is those
10% that are really interesting.
And if we do need speed, i don't think *this* is the right way ! Think
rather multithreading, event, ...
Jiba
More information about the Python-list
mailing list