operator__name__.py 152 Bytes
Newer Older
1 2 3 4 5 6 7
# expected: fail
import operator

for op in sorted(dir(operator)):
    if op.startswith("_"):
        continue
    print getattr(operator, op).__name__