Alan Gauld wrote:
"ranjan das" <[email protected]> wrote
Error:
Traceback (most recent call last):
File "C:\Python27\Foursoft\calendar.py", line 33, in <module>
while friday.weekday() != calendar.FRIDAY:
AttributeError: 'module' object has no attribute 'FRIDAY'
The obvious solution is that calendar has changed between 2.6 and 2.7
but looking on v3.1(I don;t have 2.7 installed) it looks the same there.
Certainly the day constants are still there.
What's "Foursoft"?
I would say that the standard library calendar module is being shadowed
by another module with the same name.
--
Steven
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor