Re: newbie question convert C to python

2005-02-15 Thread Adam DePrince
On Tue, 2005-02-15 at 11:03, Steven Bethard wrote: > Paul Rubin wrote: > > [EMAIL PROTECTED] writes: > > > >>How do i handle this piece of code in python: > >> > >># define vZero 15 > >># define vOne 20 > >> > >>unsigned int vTable[Zero][One] > >> > >>if(vGroup[vZero][vOne] == 0) > >>{ > >>

Re: newbie question convert C to python

2005-02-15 Thread Steven Bethard
Paul Rubin wrote: [EMAIL PROTECTED] writes: How do i handle this piece of code in python: # define vZero 15 # define vOne 20 unsigned int vTable[Zero][One] if(vGroup[vZero][vOne] == 0) { vGroup[vZero][vOne]-- . . } Simplest might be with a dictionary: vGroup =

Re: newbie question convert C to python

2005-02-14 Thread Paul Rubin
[EMAIL PROTECTED] writes: > How do i handle this piece of code in python: > > # define vZero 15 > # define vOne 20 > > unsigned int vTable[Zero][One] > > if(vGroup[vZero][vOne] == 0) > { > vGroup[vZero][vOne]-- > . > . > } Simplest might be with a dic

newbie question convert C to python

2005-02-14 Thread doodle4
How do i handle this piece of code in python: # define vZero 15 # define vOne 20 unsigned int vTable[Zero][One] if(vGroup[vZero][vOne] == 0) { vGroup[vZero][vOne]-- . . } Thanks, -d4 -- http://mail.python.org/mailman/listinfo/python-list