Re: [Tutor] python-ldap

2005-11-22 Thread Dan Lowe
On Nov 22, 2005, at 2:08 PM, Pat Martin wrote: > I am new to python and fairly new to programming. I have written some > ldap scripts in perl and am trying to learn how to do that in > python. I > found some code on the net using the python-ldap module (the unaltered > code is at the bottom of

Re: [Tutor] my text adventure

2005-12-03 Thread Dan Lowe
On Dec 3, 2005, at 9:40 PM, david wrote: sorry i forgot a subject line. i have looked at the pickle module and was able to pickle world. but i can't figure how to restore everything.import pickledef save_game(state, filename):    file = open(filename, 'w')    pickle.dump(state, file)    file.cl

Re: [Tutor] How do I fix this Invalid Mode?

2005-12-17 Thread Dan Lowe
On Dec 17, 2005, at 2:00 PM, Nathan Pinno wrote: Here is the latest error: The Currency Exchange ProgramBy Nathan Pinno   Traceback (most recent call last):  File "D:\Python24\exchange.py", line 27, in -toplevel-    store = open('exch.txt', 'b')#loadIOError: invalid mode: b[snip...] store = open('e