why does this behaviour deffrent from python shell then?

On Sep 12, 11:03 pm, "Nick Johnson (Google)" <nick.john...@google.com>
wrote:
> On Sat, Sep 12, 2009 at 5:46 AM, 老桃 <saintt...@gmail.com> wrote:
>
> > ok. codes are:
>
> > from google.appengine.ext import webapp
>
> > class UserMng( webapp.RequestHandler ):
> >    def get( self ):
>
> >        a = []
> >        b = ( a ) and 5
>
> >         print b
>
> > outputs:
>
> > []
>
> I get this behaviour on the Python console, too. It's the correct behaviour
> - the Python 'and' operator returns the first non-true argument.
>
> -Nick
>
>
>
> > Status: 200 OK
> > Content-Type: text/html; charset=utf-8
> > Cache-Control: no-cache
> > Expires: Fri, 01 Jan 1990 00:00:00 GMT
> > Content-Length: 0
>
> > dev server version is 1.2.5
>
> > On Sep 12, 12:17 am, "Nick Johnson (Google)" <nick.john...@google.com>
> > wrote:
> > > Hi saintthor,
> > > Can you please provide a complete example that reproduces this on the dev
> > > server?
>
> > > -Nick Johnson
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to