Re: [Tutor] Calling super classs __init__?

2008-03-18 Thread Luciano Ramalho
Nowadays the best practice for invoking a method from all superclasses (yes, multiple inheritance) is this: class SubClass(BaseClass): def __init__(self, t, *args, **kw): super(SubClass, self).__init__(*args, **kw) # do something with t That way you let Python decide which

Re: [Tutor] Make sound with python? Cross platform?

2008-03-09 Thread Luciano Ramalho
On Sun, Mar 9, 2008 at 10:57 AM, Wesley Brooks [EMAIL PROTECTED] wrote: I've been digging around to try and find a way to make python make sound. I would either like to sound out a string of musical notes [...] Wesley, take a look at PyGame [1]. PyGame is a Python wrapper on top of SDL [2], a

Re: [Tutor] self-learning Python

2008-03-09 Thread Luciano Ramalho
My recommendation for a book to learn to program, using Python is How to think like a Computer Scientist: learning with Python (2nd edition) [1]. It's a free online book, but a printed version of the first edition is also available. [1] http://openbookproject.net/thinkCSpy/index.xhtml Don't let

Re: [Tutor] comparison bug in python (or do I not get it?)

2008-02-29 Thread Luciano Ramalho
On Fri, Feb 29, 2008 at 10:21 AM, Kent Johnson [EMAIL PROTECTED] wrote: No, not a bug. Don't be too quick to blame your tools! Well said, Kent. Here's a generic tip to anyone learning Python. I learned Python after working professionally with several languages for many years, including Java

Re: [Tutor] List Box for Web

2008-02-26 Thread Luciano Ramalho
On Wed, Feb 27, 2008 at 2:21 AM, Dinesh B Vadhia [EMAIL PROTECTED] wrote: For my web application, I need a list box with a search capability. An example is the Python documentation (hit the F1 key under Windows from IDLE) and specifically the Index list ie. context-sensitive search through a