[Tutor] python timers

2011-04-20 Thread michael scott
Hello how do you do. Today's question has to do with the time module. I want to add a timer to my gui. As I was messing around with it I found a way to measure time... but I'm positive there is a more elegant way to deal with this than what I've thrown together. def thing(): start =

Re: [Tutor] list.__init__ within class definition

2011-04-20 Thread James Mills
On Thu, Apr 21, 2011 at 1:21 PM, Alex Companioni wrote: > In the following class definition: > > class Tomato(list): >    def __init__(self, data): >        list.__init__(self, data) > > The list.__init__ method (if it is a method, I'm not clear on what > __init__ actually *is*) creates a list, ri

[Tutor] list.__init__ within class definition

2011-04-20 Thread Alex Companioni
Hey there, In the following class definition: class Tomato(list): def __init__(self, data): list.__init__(self, data) The list.__init__ method (if it is a method, I'm not clear on what __init__ actually *is*) creates a list, right? In other words, l = Tomato([1,2,3]) will create a

Re: [Tutor] learnpython.org - Free Interactive Python Tutorial

2011-04-20 Thread tee chwee liong
hi Ron, this is great for beginners like me. Could you pls provide the link. tq Date: Wed, 20 Apr 2011 21:16:16 +0300 From: ron.rei...@gmail.com To: tutor@python.org Subject: [Tutor] learnpython.org - Free Interactive Python Tutorial Hey. I've created a website for learning Python inter

Re: [Tutor] jenia. cannot install mysqldb

2011-04-20 Thread James Mills
On Thu, Apr 21, 2011 at 9:35 AM, ivlev jenia wrote: > I cannot get the mysqldb library to work. > I'm trying to setup a Django project on Windows 7 using pydev in eclipse. > There are the files I'm using: http://sourceforge.net/projects/mysql-python/ > > Now, for the life of me, I cannot get the m

[Tutor] jenia. cannot install mysqldb

2011-04-20 Thread ivlev jenia
Hello: I cannot get the mysqldb library to work. I'm trying to setup a Django project on Windows 7 using pydev in eclipse. There are the files I'm using: http://sourceforge.net/projects/mysql-python/ Now, for the life of me, I cannot get the mysqldb library to work. When I try to run the setup fi

[Tutor] learnpython.org - Free Interactive Python Tutorial

2011-04-20 Thread Ron Reiter
Hey. I've created a website for learning Python interactively online. Check it out, and I would really appreciate it if you can also contribute tutorials. Thanks! -- -- Ron ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] NLP

2011-04-20 Thread James Thornton
http://scikit-learn.sourceforge.net/ On Fri, Apr 8, 2011 at 6:52 AM, Ranjith Kumar wrote: > Hi all, >     Can anyone suggest me any best Natural Language Processing in > python other than nltk. > -- > Cheers, > Ranjith Kumar K, > Chennai. > http://ranjithtenz.wordpress.com > > > > > _

Re: [Tutor] Metaclass confusion...

2011-04-20 Thread Modulok
Peter, >> ... the class, i. e. the instance of the metaclass with all its attributes >> has already been created by the type.__new__() method. If you move the >> manipulation of the members dict into a custom __new__() method you get >> the desired behaviour... Thank you! You've solved my problem