Guest User

Untitled

a guest
Apr 28th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Python .get() does not evaluate to True even though there is an object?
  2. if request.params.get('logo'):
  3. do x
  4.  
  5. if not request.params.get('logo') == None:
  6. do x
  7.  
  8. if request.params.get('logo') is not None:
  9. # do x
  10.  
  11. if 'logo' in request.params:
  12. do x
Advertisement
Add Comment
Please, Sign In to add comment