Re: [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread prilisauer
Hey :-P I think I should rename the threads name into a new Doc project, I'm sure It won't take much time to fill a book with our knowledge. Thanks to Rick, you have Posted exactly what I wanted to ask. I know the that __variable = 'xyz' _variable = 'xyz' are used to make them private, but I

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread prilisauer
Hello Steven, to learn python I've bought a book, and it's not a thin one :-) it's more a 788p. long documentation about python. BUT! I have to say: The autor started using the self. argument at the chapter classes. So You've shown me the book descr. non correct way. Better using this

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-25 Thread prilisauer
By the way i haven't add the Title because it's a german only book named Python 3: Das umfangreiche Handbuch, Published by Galileo Computing and also, because I've registered to first check if the Autor has allready published a update. Too many information's could ocurre in an avalanche I see

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-24 Thread prilisauer
Hello Dave, Thank you, for your help, I'll try my best. To all others, PLEASE be pleasant with my nescience, I'll tried to describe not a specific error at my Program. I'll tried to get rid of that missing link this sample is only theoretic, but the code really exists and is over 1000 lines

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-23 Thread prilisauer
By the way, I think I have found the correct wording. for my understood, the handover of objects to imported modules doesn't work because, e.g. trying to hand-over an SQLite connection into a imported module, can't work because the attributes are not transfered. I'm sorry for my bad english,

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-23 Thread prilisauer
secondly, it is absolutely not bad meaned, but, why does people post, their personal meaning, but nothing about the Posters Problem? Everybody is free to read or not, but correcting the WWW could became a very very big task, (maybe it's easier to climb the 7 summits) Best Regards. --

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-23 Thread prilisauer
Thanks to all your answers, I have read a lot about namespaces, but still there's something I do not understood. I have tried your example but as I expected: line 13, in HandoverSQLCursor curs.execute(SELECT * FROM lager) AttributeError: 'builtin_function_or_method' object has no attribute

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-23 Thread prilisauer
Okay, I try to publish this sample, and yes it's not a working piece of code, but I try to draw my problem that way. As you will see, I load modules, create cursor,... in the main.py. In the lower section you see, that the modules should execute sqls. In case It could occur that two queries

[Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Hello, to all, I hope I can describe me problem correctly. I have written a Project split up to one Main.py and different modules which are loaded using import and here is also my problem: 1. Main.py executes: 2. Import modules 3. One of the Modules is a SqliteDB datastore. 4. A second module

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 12:43:54 UTC+1 schrieb Peter Otten: wrote: Hello, to all, I hope I can describe me problem correctly. I have written a Project split up to one Main.py and different modules which are loaded using import and here is also my problem:

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 13:38:11 UTC+1 schrieb prili...@googlemail.com: Am Samstag, 22. Dezember 2012 12:43:54 UTC+1 schrieb Peter Otten: wrote: Hello, to all, I hope I can describe me problem correctly. I have written a

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 14:54:27 UTC+1 schrieb Peter Otten: wrote: I don't know, Python allways looks for me like a one script File. But there are big projects. like the the Model of an SQL Server, using coordinators no problems running threads and exchange Data through a

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 18:26:43 UTC+1 schrieb Alexander Blinne: Am 22.12.2012 13:45, schrieb: Ps.: The Socket, the DB has to be kept allways open, because of it's Server functionality, A lot of Sensors, Timers, User interaction, must recived , Calculated, etc so a reaction must

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 20:29:49 UTC+1 schrieb Alexander Blinne: Am 22.12.2012 19:10, schrieb: It's for me a view of top side down, but how could the midlevel comunicate to each oter... not hirachical You could use something like the singleton pattern in order to get a