Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'subject:Python': 0.05; 'context': 0.05; 'attributes': 0.07; 'subject:help': 0.07; 'python': 0.09; 'imported': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sqlite': 0.09; 'subject:2.7': 0.09; 'terry': 0.09; 'thread,': 0.09; 'subject:Help': 0.10; 'accessible,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:] [': 0.16; 'wrote:': 0.17; 'module,': 0.17; 'jan': 0.18; 'subject:] ': 0.19; 'module': 0.19; 'followed': 0.20; 'trying': 0.21; 'work,': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'module.': 0.27; 'object,': 0.27; "doesn't": 0.28; 'correct': 0.28; 'header:X-Complaints-To:1': 0.28; 'objects': 0.29; 'connection': 0.30; 'e.g.': 0.30; 'code': 0.31; 'to:addr:python-list': 0.33; "can't": 0.34; 'something': 0.35; 'received:org': 0.36; 'but': 0.36; 'modules': 0.36; 'object': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'within': 0.64; 'hand': 0.82; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces) Date: Sun, 23 Dec 2012 20:53:52 -0500 References: <50d5ed53$0$6630$9b4e6d93@newsspool2.arcor-online.net> <52f8ac29-a203-4465-98a8-43957f0defcd@googlegroups.com> <50d60a2d$0$6630$9b4e6d93@newsspool2.arcor-online.net> <37264cd5-8acd-416b-a808-50216f9fbfa0@googlegroups.com> <50d62d39$0$6581$9b4e6d93@newsspool3.arcor-online.net> <56900a78-fdc6-40b7-b3ac-47ec3e66d23a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <56900a78-fdc6-40b7-b3ac-47ec3e66d23a@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356314056 news.xs4all.nl 6970 [2001:888:2000:d::a6]:37934 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35428 On 12/23/2012 4:32 AM, prilisauer@googlemail.com wrote: > 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 have not followed this thread, and do not know the context of your statement, or the code that did not work, but if you hand a Python object to an imported module, and something within the module can access the object, then all of its attributes are also accessible, the same as from the original module. -- Terry Jan Reedy