[Python-Dev] PySet API

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 29 04:38:41 CEST 2006


Barry Warsaw wrote:

> "Perhaps the PySet API can raise an error if it's ever called on
> something that's not *exactly* a set? No subclassing allowed.
> Shouldn't affect you, and should be an effective deterrent against
> abuse of the kind that made the PyDict API an albatross."

And perhaps in Py3k the same could be done for dicts,
and any other builtin types with concrete access
functions?

--
Greg


More information about the Python-Dev mailing list