Hi. I've written a small python script that was primarily meant for
use in a unix-compatible environment. It writes a bunch of raw audio
to a file and then sends the file to /dev/audio and the system plays
the audio. Very simple.
Is there a simple way I could edit the script (which just uses th
In C and C++ and Java, the 'for' statement is a shortcut to make very
concise loops. In python, 'for' iterates over elements in a sequence.
Is there a way to do this in python that's more concise than 'while'?
C:
for(i=0; ihttp://mail.python.org/mailman/listinfo/python-list
Thanks, John. That's exactly what I was looking for!
John Machin wrote:
> Putty wrote:
> > I'm porting a program a friend wrote in C over to Python and I've run
> > into a little hang-up. The C program writes characters out to a file.
> > I'm 99% sure t
I'm porting a program a friend wrote in C over to Python and I've run
into a little hang-up. The C program writes characters out to a file.
I'm 99% sure that a conversion is going on here as well. I know for a
fact that it's taking a number and turning it into a character.
So what kind of call c
Is there such a thing as a special version of python that I can run
more efficiently from a flash drive? I'll be at college for hours
every day with hours of free time for the next few months, but the only
computers at my disposal are windows PCs that use GoBack to auto-revert
every reboot. So I'
Do you think it would be reasonable to use wxGrid to make the game
area?
[EMAIL PROTECTED] wrote:
> Putty wrote:
> > Hi. I was going to write an implementation of John Conway's Life game
> > using Python and Tk, but I soon found that Tk just didn't cut the
>
Hi. I was going to write an implementation of John Conway's Life game
using Python and Tk, but I soon found that Tk just didn't cut the
mustard for memory usage, management, and the like for such a project,
so I've found my best GUI bet for my project is wxPython and not
pygame.
Anybody have any