Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'modifying': 0.07; 'cc:addr :python-list': 0.09; 'importing': 0.15; '2:28': 0.16; 'modules,': 0.16; 'wrote:': 0.16; 'variable': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'am,': 0.23; 'code.': 0.23; 'defined': 0.23; 'import': 0.24; 'header:In-Reply- To:1': 0.24; "doesn't": 0.26; 'message-id:@mail.gmail.com': 0.27; 'defining': 0.27; 'once,': 0.29; 'flags': 0.33; 'definition': 0.34; 'tue,': 0.34; 'received:google.com': 0.35; 'identified': 0.35; 'there': 0.36; 'modules': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'names': 0.38; 'where': 0.40; 'called': 0.40; 'show': 0.62; 'python-list': 0.66; 'collision': 0.84; 'to:addr:google.com': 0.84; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=hOjHDh5P8jhP7RpG8MBJRi0oi5kCGd8fjia83F7fvSg=; b=j2oFzNmvretb14FzbYWw6felym8F/cWnQU3uagWo2qV9jpF/jNEmTyIbFxXqvYQ4WY hUc2cQ3OT06IaxDo9sHBNPbxIddURNGnHsT5WiCU4GfCNq3r8SOkq1J5vhS4iFz0B2RF uiwTL0w6cn/Ztb2Y9nA8LZqxbKQbueQSLXfqMwyrYQvsIACibYe6Ar8LLyJInKkqwtoe rP323xKLhjJ7RaWSaTmFlwOKisx0ttsDALSZ+x8CIFtAZx3qstxjkvWm3BQ9Qzkh/8Te lmyK+Sgdsk00c+8Cj34H4i2eD5aw0JArs2rWhdM0pwqc4IsZjGhh6bjeLdAsuniMikuL Dvlw== MIME-Version: 1.0 X-Received: by 10.107.5.18 with SMTP id 18mr20562640iof.156.1439289111109; Tue, 11 Aug 2015 03:31:51 -0700 (PDT) In-Reply-To: <238cfbd9-6ccb-4dcf-a4ea-3de78932db02@googlegroups.com> References: <238cfbd9-6ccb-4dcf-a4ea-3de78932db02@googlegroups.com> Date: Tue, 11 Aug 2015 06:31:51 -0400 Subject: Re: Flan definition collision From: Joel Goldstick To: smahabole@google.com Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1439289114 news.xs4all.nl 2904 [2001:888:2000:d::a6]:47698 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3677 X-Received-Body-CRC: 160236620 Xref: csiph.com comp.lang.python:95252 On Tue, Aug 11, 2015 at 2:28 AM, smahabole--- via Python-list wrote: > I am importing two modules, each of which is defining flags (command line= arguments) with the same name. This makes it impossible to import both the= modules at once, because of flag name definition conflict. Is there any wa= y which doesn't involve modifying the flag names in these modules? Please show relevant code. import a import b will not cause a collision as a variable called v would be identified as a.v or b.v depending on where it is defined --=20 Joel Goldstick http://joelgoldstick.com