<div class="gmail_quote">On Mon, Jun 8, 2009 at 10:07 AM, The Green Tea Leaf <span dir="ltr">&lt;<a href="mailto:thegreentealeaf@gmail.com">thegreentealeaf@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Could it be some import statement? That the gzip file is &quot;shadowed&quot; in some way?</blockquote><div><br></div><div>based on what the OP said, there&#39;s really nothing that should produce that that I can think of that would produce the given output! I&#39;d love to see a screenshot, though. Because it&#39;s printing the string twice - not the date. </div>

<div><br></div><div>If it were a problem with the date or gzip you would think you&#39;d get problems with something unrelated to the string. The only thing I can think of is if his stack/heap is somehow getting altered from outside python (or inside, I suppose)</div>

<div><br></div><div>So Mike, can you provide a screenshot of your code/execution? Sending it directly (at least to me) will prevent it getting delayed while the attachment is approved.</div><div><br></div><div>-Wayne</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<div><div></div><div class="h5"><br>
On Mon, Jun 8, 2009 at 16:11, Alan Gauld&lt;<a href="mailto:alan.gauld@btinternet.com">alan.gauld@btinternet.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &quot;Mike Hoy&quot; &lt;<a href="mailto:hoym74@gmail.com">hoym74@gmail.com</a>&gt; wrote<br>
&gt;<br>
&gt;<br>
&gt;&gt; I have the following code:<br>
&gt;<br>
&gt; Is this in a file or are you typing it at the python<br>
&gt; interpreter &gt;&gt;&gt; primpt?<br>
&gt;<br>
&gt;&gt; import gzip<br>
&gt;&gt; import datetime<br>
&gt;&gt; date = datetime.date.today()<br>
&gt;&gt; name = date.strftime(&#39;%m-%d-%Y&#39;)+&#39;.gz&#39;<br>
&gt;&gt; date.strftime(&#39;%m-%d-%Y&#39;)+&#39;.gz&#39;<br>
&gt;&gt; print &quot;The name of the file will be&quot;, name<br>
&gt;<br>
&gt; If its in a file you should only get one print<br>
&gt; If its at the &gt;&gt;&gt; prompt you should get a string after<br>
&gt; the second call to date.strftime and then your print.<br>
&gt;<br>
&gt;&gt; the output is:<br>
&gt;&gt; The name of the file will be<br>
&gt;&gt; The name of the file will be 06-08-2009.gz<br>
&gt;&gt; I can&#39;t figure out why &#39;The name of the file will be&#39; is printing twice.<br>
&gt;&gt; Any<br>
&gt;&gt; help appreciated.<br>
&gt;<br>
&gt; If that is what you get then me neither!<br>
&gt;<br>
&gt; Alan G.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
&gt; <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div><div class="im">--<br>
The Green Tea Leaf   <a href="mailto:thegreentealeaf@gmail.com">thegreentealeaf@gmail.com</a>   <a href="http://thegreentealeaf.blogspot.com" target="_blank">thegreentealeaf.blogspot.com</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn’t. - Primo Levi<br>