<div class="gmail_quote">On Wed, Nov 11, 2009 at 1:12 AM, Simon Forman <span dir="ltr"><<a href="mailto:sajmikins@gmail.com">sajmikins@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, Nov 10, 2009 at 12:53 PM, Victor Subervi<br>
<<a href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>> wrote:<br>
> Hi;<br>
> I have the following code:<br>
><br>
> import calendar, datetime<br>
><br>
> def cal():<br>
>   ...<br>
>   myCal = calendar.Calendar(calendar.SUNDAY)<br>
>   today = datetime.date.today()<br>
>   day = today.day<br>
>   mo = today.month<br>
>   yr = today.year<br>
> #  month = myCal.monthdayscalendar(int(time.strftime("%Y"))<br>
>   month = myCal.monthdayscalendar(yr, mo)<br>
>   print 'hi'<br>
><br>
> html headers are included. No matter which one of the last two lines I<br>
> comment out, I never get to the point of printing 'hi'. (If I comment them<br>
> both out, it does print.) What do?<br>
</div>> TIA,<br>
> Victor<br>
<br>
Have you tried walking through the code line-by-line in the<br>
interactive interpreter?<br></blockquote><div><br>Yes. It works just fine in the interactive interpreter, darn it. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
That should give you an idea of why those lines aren't working.  Also,<br>
if your code never prints 'hi', what does it do instead?  Hang? Or<br>
give you a traceback?<br></blockquote><div><br>Hangs. I'd love a traceback!<br>V <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<font color="#888888">--<br>
</font><div><div></div><div class="h5"><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>