[Python-Dev] PEP 0424: A method for exposing a length hint

Antoine Pitrou solipsis at pitrou.net
Sun Jul 15 18:26:19 CEST 2012


On Mon, 16 Jul 2012 02:21:20 +1000
Steven D'Aprano <steve at pearwood.info> wrote:
> 
> > My conclusion is that an infinite iterator is a documentation issue.
> > Just tell the user that it doesn't stop, and let them shoot themselves
> > in the foot in they want to.
> 
> Buffer overflows are a documentation issue. Just tell the user not to 
> overwrite memory they don't mean to, and let them shoot themselves in the foot 
> if they want.

No, buffer overflows are bugs and they get fixed.

Regards

Antoine.


-- 
Software development and contracting: http://pro.pitrou.net




More information about the Python-Dev mailing list