Stupid Things

Do not name your .py file like a library you are going to use.

.../user$ python curses.py
 Traceback (most recent call last):
 File "curses.py", line 4, in
 import curses
 File "/Users/user/Documents/python/curses.py", line 6, in
 stdscr = curses.initscr()
 AttributeError: 'module' object has no attribute 'initscr'


This is an example of a typical “between chair and keyboard”-error.

Annunci