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

2008-03-10 Thread Tony Cappellini
> Thanks very much. Not quite sure why I didn't find those earlier! I'll > have a look now. I think this cuts more to the chase than using a game framework http://pysonic.sourceforge.net/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/m

Re: [Tutor] self-learning Python

2008-03-10 Thread Ian Ozsvald
Hi Enrique. I'll suggest my ShowMeDo for video tutorials - our 'beginner' subsection for Python has 101 videos: http://showmedo.com/videos/python?topic=beginner_programming Most of the videos are free (3 series - in yellow - require a subscription, everything else is free). Topics covered incl

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote > And I thought I might get away without using dicts... Why would you want to? Dicts are one of the most powerful data structures around. And besides Python is built from dicts so you can never truly get away without using them. Every time you access a feature from

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread tetsuo2k6
That's it! Paul Andreas Kostyrka schrieb: > What you probably want is to pass: > > writer(None, "field1", "field2") > > Andreas > > Am Montag, den 10.03.2008, 16:28 +0100 schrieb [EMAIL PROTECTED]: >> And I thought I might get away without using dicts... >> >> Thanks, Greg >> >> >> >> Greg G

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread Andreas Kostyrka
What you probably want is to pass: writer(None, "field1", "field2") Andreas Am Montag, den 10.03.2008, 16:28 +0100 schrieb [EMAIL PROTECTED]: > And I thought I might get away without using dicts... > > Thanks, Greg > > > > Greg Graham schrieb: > > Paul, > > > > Python does not allow mixing

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread tetsuo2k6
And I thought I might get away without using dicts... Thanks, Greg Greg Graham schrieb: > Paul, > > Python does not allow mixing variable length arguments and keyword arguments > in that way. To accomplish what you want, you must add an argument preceded > by a "**" which will be a dict cont

Re: [Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread Greg Graham
Paul, Python does not allow mixing variable length arguments and keyword arguments in that way. To accomplish what you want, you must add an argument preceded by a "**" which will be a dict containing all of the keyword arguments as key, value pairs. You then have to retrieve the arguments from

Re: [Tutor] Bag of Words and libbow

2008-03-10 Thread Dinesh B Vadhia
Andre I had a quick look at NLTK which is an NLP library suite whereas libbow is for statistical text analysis. Cheers Dinesh Message: 3 Date: Mon, 10 Mar 2008 08:24:23 +0100 From: Andre Halama <[EMAIL PROTECTED]> Subject: Re: [Tutor] Bag of Words and libbow To: tutor@python.org Message-ID:

[Tutor] passing arguments to functions - problem with argument order

2008-03-10 Thread tetsuo2k6
I don't get this - what is the clean way of the order of passing arguments to functions? The called function goes like this: def csvwriter(output_csv_filename=None, *coloumn_definitions): """Edit Me!""" if output_csv_filename == None: output_csv_filename = raw_

Re: [Tutor] identifying the calling module/function

2008-03-10 Thread tetsuo2k6
Kent Johnson schrieb: > [EMAIL PROTECTED] wrote: > >> in dgf.py: (hope the formatting gets good for you, t-bird breaks the >> lines badly on my machine...) >> >> def csvwriter(*column_definitions): >> """Edit Me!""" >> if sys.argv[0] == /usr/local/bin/xyz.py: >> output_c

Re: [Tutor] [tutor] Finding image statistics

2008-03-10 Thread Kent Johnson
Varsha Purohit wrote: > I donno which approach i should follow. > should i multiply each pixel with cellsize or first i add up all of them > and multiply the cumulative result with cellsize If you 'multiply' by assigning a different value in clip() then it probably doesn't matter

Re: [Tutor] Bag of Words and libbow

2008-03-10 Thread Andre Halama
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dinesh B Vadhia schrieb: Hi, | Has anyone come across Python modules/libraries to perform "Bag of | Words" text analysis or an interface to the libbow C library? Thank-you! did you already have a look at NLTK (http://nltk.sourceforge.net/index.php/