[Python-Dev] the role of assert in the standard library ?

Antoine Pitrou solipsis at pitrou.net
Thu Apr 28 14:38:30 CEST 2011


On Thu, 28 Apr 2011 09:54:23 +0200
Tarek Ziadé <ziade.tarek at gmail.com> wrote:
> 
> I have seen some other places where thing would simply break with -O.
> 
> Am I right thinking we should do a pass on those and remove them or
> turn them into exception that are triggered with -O as well ?

Agreed. Argument checking should not depend on the -O flag.

Regards

Antoine.




More information about the Python-Dev mailing list