Re: [Tutor] question about classes and atributes

2006-11-03 Thread euoar
Thank you folks, for your excellent answers. This is really a fantastic place to learn python :-) __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com

Re: [Tutor] One million and counting

2006-11-03 Thread euoar
Alan Gauld escribió: > Hi folks, > > In just thought I'd mention that my web tutor has now passed > the million visitors mark. Thanks to all those on the tutor > list who have paid a visit. > > Alan Gauld > Author of the Learn to Program web site > http://www.freenetpages.co.uk/hp/alan.gauld > __

Re: [Tutor] question about classes and atributes

2006-11-03 Thread euoar
# function, does NOT check first argument. > > So basically, the whole self argument handling is magic that happpens > during attribute lookup. > > Andreas > > Am Freitag, den 03.11.2006, 14:27 +0100 schrieb euoar: > >> I think I don't understand the OOP in pyth

[Tutor] question about classes and atributes

2006-11-03 Thread euoar
I think I don't understand the OOP in python, could anyone explain why this code works? class example: atribute = "hello world" print example.atribute Why you don't have to make an object of the class to access to the atribute? ( class example: atribute = "hello world" obj

Re: [Tutor] python decorators

2006-10-30 Thread euoar
Kent Johnson escribió: > euoar wrote: >> Could somebody explain or point to a good place to learn what are >> python decorators, and when should they be used? > > http://www.python.org/doc/2.4.4/whatsnew/node6.html > http://wiki.python.org/moin/PythonDecoratorLibrary >

[Tutor] python decorators

2006-10-28 Thread euoar
Could somebody explain or point to a good place to learn what are python decorators, and when should they be used? Thanks. __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.vo

Re: [Tutor] [pygtk] ListStore question

2006-10-27 Thread euoar
euoar escribió: > mc collilieux escribió: >> euoar wrote: >> >>>> I'm learning the use of liststores and treeviews. I have wrotten >>>> this litle class as exercice: >> >> >>>> # name is the name of the new column to add, value

[Tutor] database question

2006-10-27 Thread euoar
I'm learning to use python with the database mysql. I'm writing a widget in pygtk that should show the results of a sql query. For example with "SELECT * FROM a", I use this code count = 0 a = db.cursor.description for tuple in a: print tuple[0][0] count = count + 1

Re: [Tutor] OOP and Python.. a gentle remark

2006-10-25 Thread euoar
Asrarahmed Kadri escribió: > > > Folks... > > Please dont take it in a wrong sense. But I have a point to make > regarding OOP and the way it is implemented in Python. > > Why is it necessary to explicity use self argument in the class > functions ?? I feel the language/interpreter shoul

[Tutor] sending mails from python

2006-10-21 Thread euoar
I'm trying to learn how to send e-mails with python. But I always become this error: socket.error: (110, 'Connection timed out'). Is there something bad in the code? Does anyone knows what could be wrong? I'm using python from linux, and have no proxy... The code that I use is this (of course,