Antoine Pitrou <pit...@free.fr> added the comment:

> Why not add fast paths to the generic functions if that's what you're
> concerned about?
> 
> It's unexpected for the user of the functions and breaks years of
> tradition. What if someone calls PyList_Append on a custom type that
> doesn't do as they expect and then PyList_GET_ITEM?
> 
> It seems like asking for subtle bugs to me. The only correct way to is
> change code that uses these type specific apis to use the generic
> ones.

I agree with Benjamin.
IIRC we already have a bunch of fast paths in abstract.c.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10977>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to