Re: shelve error

2007-04-11 Thread John J. Lee
"7stud" <[EMAIL PROTECTED]> writes: [...] > Also, the book is brand new, yet the cover has completely separated > from the spine of the book, and now the cover is only attached to the > first and last pages with a bit of glue. I think they used to advertise that as a feature -- "stay-flat binding"

Threads aren't distinguished by titles and they don't belong to anyone [was: Re: shelve error]

2007-04-09 Thread Steve Holden
7stud wrote: >> Discussion subject changed to "Python universal build, OSX 10.3.9 and >> undefined symbols when >> linking" by David Pratt > > What gives? How come you can change the title of my thread? > > > On Apr 8, 8:14 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: >> But if you open an err

Re: shelve error

2007-04-09 Thread Alex Martelli
Peter Otten <[EMAIL PROTECTED]> wrote: > Alex Martelli wrote: > > > BTW, if you DO want to call shelve.open on a path f that may correspond > > to an arbitrary existing file (and want to toss away the previous > > contents of that file, if any) the correct way to call is then: > > > > s = shelve

Re: shelve error

2007-04-09 Thread Peter Otten
Alex Martelli wrote: > BTW, if you DO want to call shelve.open on a path f that may correspond > to an arbitrary existing file (and want to toss away the previous > contents of that file, if any) the correct way to call is then: > > s = shelve.open(whatever_path, 'n') > > since 'n' truncates an

Re: shelve error

2007-04-08 Thread Alex Martelli
7stud <[EMAIL PROTECTED]> wrote: ... > In my opinion, the most valuable thing you could do for a next > printing would be to expand the index to 3 times its current length. Suggest that to O'Reilly: they're the one who prepare the index, not me; I only get to point out errors I may notice on it

Re: shelve error

2007-04-08 Thread 7stud
> Discussion subject changed to "Python universal build, OSX 10.3.9 and > undefined symbols when > linking" by David Pratt What gives? How come you can change the title of my thread? On Apr 8, 8:14 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: > But if you open an errata for the missing explana

Re: shelve error

2007-04-08 Thread Alex Martelli
7stud <[EMAIL PROTECTED]> wrote: > On Apr 4, 10:22 pm, [EMAIL PROTECTED] wrote: > > how did you generate aaa.txt? > > Ok, I got it to work by supplying a filename that didn't previously > exist. Neither the book I am reading, "Beginning Python: From Novice > to Professional" nor the book I am us

Re: shelve error

2007-04-05 Thread 7stud
On Apr 5, 5:20 am, Steve Holden <[EMAIL PROTECTED]> wrote: > 7stud wrote: > > On Apr 4, 10:22 pm, [EMAIL PROTECTED] wrote: > >> how did you generate aaa.txt? > > > Ok, I got it to work by supplying a filename that didn't previously > > exist. Neither the book I am reading, "Beginning Python: From

Re: shelve error

2007-04-05 Thread Steve Holden
7stud wrote: > On Apr 4, 10:22 pm, [EMAIL PROTECTED] wrote: >> how did you generate aaa.txt? > > Ok, I got it to work by supplying a filename that didn't previously > exist. Neither the book I am reading, "Beginning Python: From Novice > to Professional" nor the book I am using as a reference, "P

Re: shelve error

2007-04-04 Thread 7stud
On Apr 4, 10:22 pm, [EMAIL PROTECTED] wrote: > how did you generate aaa.txt? Ok, I got it to work by supplying a filename that didn't previously exist. Neither the book I am reading, "Beginning Python: From Novice to Professional" nor the book I am using as a reference, "Python in Nutshell", happ

Re: shelve error

2007-04-04 Thread 7stud
[EMAIL PROTECTED] wrote: > On Apr 5, 12:14 pm, "7stud" <[EMAIL PROTECTED]> wrote: > > test1.py: > > > > import shelve > > > > s = shelve.open("/Users/me/2testing/dir1/aaa.txt") > > s['x'] = "red" > > s.close() > > output:-- > > > > $ python test1.py > > Traceback (

Re: shelve error

2007-04-04 Thread mik3l3374
On Apr 5, 12:14 pm, "7stud" <[EMAIL PROTECTED]> wrote: > test1.py: > > import shelve > > s = shelve.open("/Users/me/2testing/dir1/aaa.txt") > s['x'] = "red" > s.close() > output:-- > > $ python test1.py > Traceback (most recent call last): > File "test1.py", line

shelve error

2007-04-04 Thread 7stud
test1.py: import shelve s = shelve.open("/Users/me/2testing/dir1/aaa.txt") s['x'] = "red" s.close() output:-- $ python test1.py Traceback (most recent call last): File "test1.py", line 3, in ? s = shelve.open("/Users/me/2testing/dir1/aaa.txt") File "/Syste