Python IDLE: How to type correct indentation?
- by user2988464
Mac: Maverick
Python: 3.4
I tried to testtimeit module in Python's IDLE
import timeit
>>> timeit.timeit( "obj.method", """
class SomeClass:
def method(self):
pass
obj = SomeClass()
""")
When I tried to type def method(self): on the next line of class SomeClass, I hit Tab, it prompted a window showing the…