On Thu, Aug 18, 2011 at 23:40, Tim Hoffman <zutes...@gmail.com> wrote: > >> >> Also, just noticed one other thing. Instead of 'if number is not >> None', in Python you can do 'if number' -- much nicer. > > Though not very good if number can be 0 or "" as opposed to None ;-)
True. But I find that syntax cleaner for an entity. Maybe just a personal preference though... > > I am not sure which reads better > > number is not None I like this one, it is very natural feeling. > or > not number is None > or > or number != None None is an instance, iirc. So you're supposed to use 'is' to check identity, I think. ;) > > > > T > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine/-/OZApIUGT9noJ. > 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. > -- 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.