Re: [Tutor] Accessing variables in main from functions in a module

2009-10-31 Thread Robert Lummis
These replies are great! Thanks to everyone who took the trouble to respond and explain. I'll need some time to digest what you say and put it to use but I'm sure your suggestions will be a huge help. On Fri, Oct 30, 2009 at 7:55 PM, Alan Gauld wrote: > "Robert Lummis" wr

[Tutor] Accessing variables in main from functions in a module

2009-10-30 Thread Robert Lummis
efined". I understand that it is best to minimize cross-file references but I feel it is warranted in this case. Even if you think it isn't good practice I would like to understand how to do it (or else why it can't be done). Is there some other wa

Re: [Tutor] Bounces

2009-10-08 Thread Robert Lummis
so I know at > least this one got through!) > > ___ > Tutor maillist  -  tu...@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Robert Lummis ___ Tutor maillist - Tu

Re: [Tutor] mnemonics to better learn Python

2009-07-31 Thread Robert Lummis
ring its more complex because you have nand and nor gates > to deal with too, but they don't apply in software - at least not directly. > > > -- > Alan Gauld > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > > ___

Re: [Tutor] does python have something like "#include" in C?

2009-06-29 Thread Robert Lummis
n wrote: > On Mon, Jun 29, 2009 at 1:23 PM, Robert Lummis wrote: >> Here's an example that seems not possible in python. I'm probably >> missing something so please enlighten me. I only tried doing this as >> an exercise to show myself how name references work. I'm

Re: [Tutor] does python have something like "#include" in C?

2009-06-29 Thread Robert Lummis
7;t find a way to refer to an object in the main program file from within a module file. I understand that it's a good thing to contol which namespaces are referenced by which code but isn't there sometimes a need for code in a module to access the main program file's namespace? My exampl

[Tutor] does python have something like "#include" in C?

2009-06-29 Thread Robert Lummis
... or any pre-processing at all? I'm looking for a way to get boiler plate code into the main program file. Of course I could copy and paste it with an editor but I was hoping for something more pythonic. I know about import but that's not the same. -- Rob

Re: [Tutor] how to manage an encrypted file?

2009-06-22 Thread Robert Lummis
ss of the key, but I don't > think its the case to go into that. > > You could also use TrueCrypt which is an extremely powerful > cryptographic software (open source), I found this article that can > help you linking it with python: > http://blog.bjrn.se/2008/01/truecrypt-e

[Tutor] how to manage an encrypted file?

2009-06-19 Thread Robert Lummis
Could you recommend a module or methods I should use to manage an encrypted text file? I want to store passwords and associated contact information in a file and feel confident that if the file is stolen the information couldn't be read. -- Robert L

Re: [Tutor] How do I do this in python?

2009-06-11 Thread Robert Lummis
On Thu, Jun 11, 2009 at 11:58 AM, spir wrote: > Le Thu, 11 Jun 2009 10:46:26 -0400, > Kent Johnson s'exprima ainsi: > >> On Wed, Jun 10, 2009 at 9:43 PM, Robert Lummis >> wrote: >> > I want to write a function that I can use for debugging purposes that >>

[Tutor] How do I do this in python?

2009-06-11 Thread Robert Lummis
t, what is it? I'm trying to learn python but it's a struggle because the documentation is so dispersed. If there is a solution to this question, what documentation could I have looked at to find it on my own? BTW I'm using python 3.01 if it matters. -- Robert Lummis