[Zope3-checkins] Re: [Checkins] SVN: zope.publisher/trunk/src/zope/publisher/http.py added lines for porting zope.server to Python2.5

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Aug 17 09:20:29 EDT 2007

On Friday 17 August 2007 08:58, nikhil n wrote:
> +        if isinstance(t, ClassType) or isinstance(t, type):

It is quicker to write: isinstance(t, (ClassType, type))

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training

More information about the Zope3-Checkins mailing list