a | b | |
---|
0 | | - | >>> tests = [None, '', [], {}, (), 0, False, set(), 1, 2] |
---|
0 | | - | >>> print ''.join('"if %r:" return %s\n' % (test, bool(test)) for test in tests) |
---|
0 | | - | "if None:" return False |
---|
0 | | - | "if '':" return False |
---|
0 | | - | "if []:" return False |
---|
0 | | - | "if {}:" return False |
---|
0 | | - | "if ():" return False |
---|
0 | | - | "if 0:" return False |
---|
0 | | - | "if False:" return False |
---|
0 | | - | "if set([]):" return False |
---|
0 | | - | "if 1:" return True |
---|
0 | | - | "if 2:" return True |
---|
0 | | - | |
---|
0 | | - | >>> |
---|
| 0 | + | AXF63b <a href="http://nwihjrrcnejz.com/">nwihjrrcnejz</a>, [url=http://ktyyuoktdtyu.com/]ktyyuoktdtyu[/url], [link=http://hvntnutxnpvm.com/]hvntnutxnpvm[/link], http://yfhcbjkfetvo.com/ |
---|
... | |
---|