Optimization of __len__() in cgi.py

Bob Kline bkline at rksystems.com
Wed Aug 16 11:57:56 EDT 2006


Sybren Stuvel wrote:
> FieldStorage.__nonzero__ tried first if it exists. You might want to
> use that for more optimization.

Excellent suggestion!  It would be nice if this were adopted to
supplement the original optimization, rather than replace it.

Bob



More information about the Python-list mailing list