Re: [Tutor] 'function' object has no attribute 'writer'

2011-09-06 Thread Susana Iraiis Delgado Rodriguez
Hello Petter!! Thank you for answer to my question. I apologize for the writing of my code, won't happen again. I added the lines you suggested me, and the script work fine. Than you!! Here's the code corrected and indented. from Tkinter import * #Llamo las librerias graficas de Tk import tkSimple

Re: [Tutor] 'function' object has no attribute 'writer'

2011-09-05 Thread Peter Otten
Susana Iraiis Delgado Rodriguez wrote: Susana, please use 4-space indents for your code samples. I've said it before, but I think it's worthwhile repeating because it makes it much easier to grasp the structure of a script at first sight. > But now I get a differente error, this script is going

Re: [Tutor] 'function' object has no attribute 'writer'

2011-09-05 Thread Susana Iraiis Delgado Rodriguez
Hello guys!!! Shame on me, you're rigth I missunderstood the function and the module. I change the name of my function and that part of my code worked. But now I get a differente error, this script is going to collect information from shapefiles, I asked the user where to start the search, the file

Re: [Tutor] 'function' object has no attribute 'writer'

2011-09-05 Thread Walter Prins
Hi Susana, On 5 September 2011 17:08, Susana Iraiis Delgado Rodriguez < susana.delgad...@utzmg.edu.mx> wrote: > File "win.py", line 43, in boton4 > writer = csv.writer(open(csv_name, 'w')) > AttributeError: 'function' object has no attribute 'writer' > I read a tutorial and csv has a writer

Re: [Tutor] 'function' object has no attribute 'writer'

2011-09-05 Thread James Reynolds
On Mon, Sep 5, 2011 at 12:08 PM, Susana Iraiis Delgado Rodriguez < susana.delgad...@utzmg.edu.mx> wrote: > I want to write a csv file, but I need the final user to give me some > values to open and update the file. My code is: > from Tkinter import * #Llamo las librerias graficas de Tk > import tk

[Tutor] 'function' object has no attribute 'writer'

2011-09-05 Thread Susana Iraiis Delgado Rodriguez
I want to write a csv file, but I need the final user to give me some values to open and update the file. My code is: from Tkinter import * #Llamo las librerias graficas de Tk import tkSimpleDialog #Libreria de almacenamiento de dialogos import tkMessageBox #Libreria de mensajes import tkFileDialog

Re: [Tutor] Function object

2010-09-12 Thread Daniel
What can I say except, thanks so much everyone for taking your time and writing me an explication. I finally understood what function objects are. Thanks, really thanks for helping me out. I wish everyone the best. ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Function object

2010-08-25 Thread Denis Gomes
Daniel, Considering that Python is your first programming language, let's start from the absolute beginning. Before you think about what a function object is, try to understand what a function is. A function is a series of python commands put together under a common heading or name in order

Re: [Tutor] Function object

2010-08-25 Thread Alan Gauld
"Daniel" wrote another problem regarding understanding a concept- function object. As I said, I do not understand what a function object is, what it does, and what can I do with it? You are actually using them all the time. Every function in Python is a function object. You can execute the

Re: [Tutor] Function object

2010-08-25 Thread Emile van Sebille
On 8/25/2010 10:56 AM Emile van Sebille said... >>> def test1(ii): print "my name is %s" % ii.func_name ... Oops -- my bad editing s/b or once was: def test1(ii): print "single ii is %s" % ii ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] Function object

2010-08-25 Thread Emile van Sebille
On 8/25/2010 9:56 AM Daniel said... Hello again, seems like in my journey to learn Python I have stumbled into another problem regarding understanding a concept- function object. As I said, I do not understand what a function object is, what it does, and what can I do with it? I'm currently readi

[Tutor] Function object

2010-08-25 Thread Daniel
Hello again, seems like in my journey to learn Python I have stumbled into another problem regarding understanding a concept- function object. As I said, I do not understand what a function object is, what it does, and what can I do with it? I'm currently reading Think python, but the book is not c