Re: [Tutor] 2d list index inverting?

2010-05-25 Thread Hugo Arts
On Wed, May 26, 2010 at 4:59 AM, Alex Hall wrote: > > I am blind, using Jaws for Windows to access my computer > (http://www.freedomscientific.com). Is this debugger a cmd line tool, > or is it / is it part of an IDE? Basically I am hoping it is not its > own interface, as these are often not too

Re: [Tutor] 2d list index inverting?

2010-05-25 Thread Alex Hall
On 5/25/10, Hugo Arts wrote: > On Wed, May 26, 2010 at 3:47 AM, Alex Hall wrote: >> >> I thought so, but I was hoping you would not say that as this means a >> logic bug deep in my code, and those are the hardest to track down... > > Unfortunately, yes. Bug hunting is part art, part science. You

Re: [Tutor] 2d list index inverting?

2010-05-25 Thread Hugo Arts
On Wed, May 26, 2010 at 3:47 AM, Alex Hall wrote: > > I thought so, but I was hoping you would not say that as this means a > logic bug deep in my code, and those are the hardest to track down... Unfortunately, yes. Bug hunting is part art, part science. >> The real problem is something else ent

Re: [Tutor] 2d list index inverting?

2010-05-25 Thread Alex Hall
On 5/25/10, Hugo Arts wrote: > On Wed, May 26, 2010 at 3:13 AM, Alex Hall wrote: >> Hello all, >> I have a 2d list being used for a battleship game. I have structured >> the program so that it uses a grid class, which implements this array >> along with a bunch of other methods and vars. For exam

Re: [Tutor] 2d list index inverting?

2010-05-25 Thread Hugo Arts
On Wed, May 26, 2010 at 3:13 AM, Alex Hall wrote: > Hello all, > I have a 2d list being used for a battleship game. I have structured > the program so that it uses a grid class, which implements this array > along with a bunch of other methods and vars. For example, to get at > the top left square

[Tutor] 2d list index inverting?

2010-05-25 Thread Alex Hall
Hello all, I have a 2d list being used for a battleship game. I have structured the program so that it uses a grid class, which implements this array along with a bunch of other methods and vars. For example, to get at the top left square, you would say: Grid.getSquareAt(0,0) and inside getSquareAt

Re: [Tutor] [SOLVED] Append sub-key to dictionary

2010-05-25 Thread M. Bashir Al-Noimi
Thanks Vince ;-) On 25/05/2010 07:38 م, vince spicer wrote: On Tue, May 25, 2010 at 12:28 PM, M. Bashir Al-Noimi > wrote: Hi All, I'm trying to append a new sub-key to specific dictionary but it replacing the content of parent key instead of add a sub-key!

Re: [Tutor] Append sub-key to dictionary

2010-05-25 Thread vince spicer
On Tue, May 25, 2010 at 12:28 PM, M. Bashir Al-Noimi wrote: > Hi All, > > I'm trying to append a new sub-key to specific dictionary but it replacing > the content of parent key instead of add a sub-key! > > > How I can fix this issue? > > --snippet-- > > addressbook = { >'work': {

[Tutor] Append sub-key to dictionary

2010-05-25 Thread M. Bashir Al-Noimi
Hi All, I'm trying to append a new sub-key to specific dictionary but it replacing the content of parent key instead of add a sub-key! How I can fix this issue? --snippet-- addressbook = { 'work': { 'Andre': { 'phone'