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

Re: Importing functions that require parameters

2007-12-10 Thread Peter Otten
Matt_D wrote: >> import sys >> import otp_encrypt >> the_key = opt_encrypt.get_key(sys.argv[1]) >> >> If that isn't what you want, you'll need to explain the sentence that >> starts "Now I understand", with examples of what you have tried. > > When I try: > > from otp_encrypt import get_key > >

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 John Machin
On Dec 10, 9:41 pm, Matt_D <[EMAIL PROTECTED]> wrote: > 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 b

Re: Importing functions that require parameters

2007-12-10 Thread Chris
On Dec 10, 12:41 pm, Matt_D <[EMAIL PROTECTED]> wrote: > 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