[NEWB] Dictionary instantiation?

2007-12-07 Thread Matt_D
Hello there, this is my first post to the list. Only been working with Python for a few days. Basically a complete newbie to programming. I'm working with csv module as an exercise to parse out a spreadsheet I use for work.(I am an editor for a military journalism unit) Not trying to do anything u

Re: Dictionary instantiation?

2007-12-07 Thread Matt_D
On Dec 7, 12:33 pm, Matt_D <[EMAIL PROTECTED]> wrote: > On Dec 7, 12:27 pm, Matt_D <[EMAIL PROTECTED]> wrote: > > > > > On Dec 7, 11:42 am, Virgil Dupras <[EMAIL PROTECTED]> > > wrote: > > > > On Dec 7, 9:05 am, Matt_D <[EMAIL PROTECTED]>

Re: Dictionary instantiation?

2007-12-07 Thread Matt_D
On Dec 7, 11:42 am, Virgil Dupras <[EMAIL PROTECTED]> wrote: > On Dec 7, 9:05 am, Matt_D <[EMAIL PROTECTED]> wrote: > > > > > Hello there, this is my first post to the list. Only been working with > > Python for a few days. Basically a complete newbie to pro

Re: Dictionary instantiation?

2007-12-07 Thread Matt_D
On Dec 7, 12:27 pm, Matt_D <[EMAIL PROTECTED]> wrote: > On Dec 7, 11:42 am, Virgil Dupras <[EMAIL PROTECTED]> > wrote: > > > > > On Dec 7, 9:05 am, Matt_D <[EMAIL PROTECTED]> wrote: > > > > Hello there, this is my first post to the list.

Importing functions that require parameters

2007-12-10 Thread Matt_D
Good afternoon. As a self-tutoring project I am writing a one-time-pad encrypt/decrypt script. I have completed the encryption portion and am working currently on the decryption algorithm. My goal is to have the encrypt and decrypt be individual modules vice two parts of the same. My problem, or

Re: Importing functions that require parameters

2007-12-10 Thread Matt_D
On Dec 10, 2:46 pm, John Machin <[EMAIL PROTECTED]> wrote: > "requires a parameter from elsewhere in the imported module" is a > concept I don't understand. > > Here is what I think that you need to do in your main script: > > import sys > import otp_encrypt > the_key = opt_encrypt.get_key(sys.argv

Re: Importing functions that require parameters

2007-12-10 Thread Matt_D
On Dec 10, 4:49 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > > Peter Thanks, Peter. You answered my question precisely. I'm successfully encrypting and decrypting now. Thank you again. R, Matt -- http://mail.python.org/mailman/listinfo/python-list