Hi Susana,<br><br><div class="gmail_quote">On 5 September 2011 17:08, Susana Iraiis Delgado Rodriguez <span dir="ltr">&lt;<a href="mailto:susana.delgado_s@utzmg.edu.mx">susana.delgado_s@utzmg.edu.mx</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">  File &quot;win.py&quot;, line 43, in boton4<br><div>    writer = csv.writer(open(csv_name, &#39;w&#39;))<br>AttributeError: &#39;function&#39; object has no attribute &#39;writer&#39;</div>



<div>I read a tutorial and csv has a writer function, I&#39;m lost</div><br></blockquote></div><br>Yes, the csv module has a writer function.  But read carefully!  The error message isn&#39;t saying that the csv module doesn&#39;t have a writer function -- it says **function object** has no attribute &#39;writer&#39;.  So... somehow Python thinks that the name &#39;csv&#39; refers to a function at the point in the code where the error is thrown.  So how can this be?  You should be asking yourself this question -- could it be that you&#39;ve (for example) defined a *function* called &#39;csv&#39;, thereby effectively effectively hiding the *module* csv?  ;)<br>
<br>Walter<br>