Re: Python assignment loop

2007-05-20 Thread Silver Rock
On 20 May 2007 20:21:52 -0700, George Sakkis <[EMAIL PROTECTED]> wrote: > On May 20, 10:33 pm, "Silver Rock" <[EMAIL PROTECTED]> wrote: > > i need to do something like this: > > > > ### > > import wx > > x=number > > for i in range(500):

Python assignment loop

2007-05-20 Thread Silver Rock
i need to do something like this: ### import wx x=number for i in range(500): "var"+str(i)=ClassXYZ(...,x+i,...) # code y=number for i in range(y): Class(object_called_by_the_string("var"+str(i)),...) ### i can't figure out how to do this, and could not find it on the web. c. -- h

classes and functions

2007-03-02 Thread Silver Rock
Friends, I don´t see why using classes.. functions does everything already. I read the Rossum tutotial and two other already. Maybe this is because I am only writing small scripts, or some more serious misunderstandings of the language. Please give me a light. thanks guys, Claire -- http://mai

wave

2007-02-03 Thread Silver Rock
hallo, supose i´ve opened a sound with the wave module: import wave sound=wave.open(filename,'rb') now this is strange: sound.getnframes() != len(sound.readframes(sound.getnframes()) True Why so? thanks in advance, Claire -- http://mail.python.org/mailman/listinfo/python-list

SndObj-Pysonic-omde-MusicKit-Jack-Alsa

2007-02-03 Thread Silver Rock
Greetings, I've been studiyng python and some things are not that clear: 1- Is python too slow to efectivelly communicate with Jack? PyJack did not seem to work right, so i tried PySndObj's JackIO object. It did not behave as good as with connection with ALSA. (btw, I could not acess lots of ob

OSS and ALSA

2007-02-02 Thread Silver Rock
Hi all, I've seen that python comes by default with a module for communication with OSS. I've looked for a ALSA module too (pyalsa) but it seems to handle only limited operations. Is it recommended that one programm using oss becouse of Alsa's OSS compatibility? thanks, claire -- http://ma

OSS and ALSA

2007-02-01 Thread Silver Rock
Hi all, I've seen that python comes by default with a module for communication with OSS. I've looked for a ALSA module too (pyalsa) but it seems to handle only limited operations. Can anyone confirm or point wrong the impression that a newbie should use the ossaudiodev module? thanks, cl -- h