Emanuel Barry added the comment:

You're overriding the 'calendar' variable, holding the module, by the result of 
your 'calender.month' call, which happens to be a str. Use a different variable 
name (e.g. 'result') and the error will disappear.

Unrelated, but don't check for 'if x == True' - just do 'if x' and the result 
will be the same (also allows for any other result than booleans).

----------
components:  -IDLE
nosy: +ebarry
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: compile error -> 

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27382>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to