Skip to content

Instantly share code, notes, and snippets.

@trsqxyz
Created February 14, 2014 14:43
Show Gist options
  • Save trsqxyz/9002158 to your computer and use it in GitHub Desktop.
Save trsqxyz/9002158 to your computer and use it in GitHub Desktop.
The difference between Python 2.7.5 and Python 3.3.3
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> data = 'spam123'
>>> bool(filter(lambda s:s.isupper(),data))
False
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> data = 'spam123'
>>> bool(filter(lambda s:s.isupper(),data))
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment