Re: python bug in this list implementation?

2005-12-28 Thread Roel Schroeven
Steven D'Aprano wrote: > On Wed, 28 Dec 2005 15:07:52 +0100, Christoph Zwerschke wrote: >>Chris is probably working on Windows where it is handy to enter paths as >>raw strings because of the backslashes. Unusual however, and problematic >>if you want to use the program on other platforms, is ope

Re: python bug in this list implementation?

2005-12-28 Thread Steven D'Aprano
On Wed, 28 Dec 2005 15:07:52 +0100, Christoph Zwerschke wrote: > Steven D'Aprano wrote: >> On Wed, 28 Dec 2005 07:29:41 +, Chris Smith wrote: > >> >>>def createGrid(): >>>f = open(r"...sudoku.txt", "rb") ## see attached for the file. >> >> Why do you need a raw string? It isn't wrong to

Re: python bug in this list implementation?

2005-12-28 Thread Christoph Zwerschke
Steven D'Aprano wrote: > On Wed, 28 Dec 2005 07:29:41 +, Chris Smith wrote: >> >>def createGrid(): >>f = open(r"...sudoku.txt", "rb") ## see attached for the file. > > Why do you need a raw string? It isn't wrong to do one, but it is rather > unusual and unnecessary. Chris is probably wo

Re: python bug in this list implementation?

2005-12-28 Thread Steven D'Aprano
On Wed, 28 Dec 2005 07:29:41 +, Chris Smith wrote: > Hi, > > I've been working on some multi-dimensional lists and I've encountered some > very strange behaviour in what appears to be simple code, I'm using python > 2.4.2 and IDLE. If anyone can tell me why it's behaving so strange please > l

Re: python bug in this list implementation?

2005-12-27 Thread Fredrik Lundh
Chris Smith wrote: > I've been working on some multi-dimensional lists and I've encountered some > very strange behaviour in what appears to be simple code, I'm using python > 2.4.2 and IDLE. If anyone can tell me why it's behaving so strange please > let me know, any improvements to my general co

python bug in this list implementation?

2005-12-27 Thread Chris Smith
Hi, I've been working on some multi-dimensional lists and I've encountered some very strange behaviour in what appears to be simple code, I'm using python 2.4.2 and IDLE. If anyone can tell me why it's behaving so strange please let me know, any improvements to my general coding style are also ap