Deposing Dictators

Moshe Zadka m at moshez.org
Sat Aug 4 09:37:53 EDT 2001


On Sat, 4 Aug 2001 10:08:07 +0200, "Alex Martelli" <aleaxit at yahoo.com> wrote:
 
> So instead of adding features let's remove restrictions.  And I don't
> think you can state with a straight face that there aren't any
> restrictions -- look at the complications such as StringIO vs cStringIO
> and pickle vs cPickle that are forced by the restriction "thou shalt
> not subclass a c-coded type":-).

How many people actually need to subclass StringIO?
I think the real reason StringIO stayed is "if you have trouble porting
the C code, here's some Python instead"
pickle is a bit more likely to be subclassed, but not much more.
Again, I think the argument is that as long as we can, we want Python
code to do the same thing for all the good reasons you know...

-- 
Moshe Zadka - http://moshez.geek
(if you're not cool, http://moshez.org is still working)




More information about the Python-list mailing list