Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'explicitly': 0.05; 'library?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; 'collections': 0.16; 'how,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:import': 0.16; 'sys.path': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'import': 0.22; 'header:User-Agent:1': 0.23; 'library,': 0.24; '(see': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'strongly': 0.30; 'yes.': 0.31; 'this.': 0.32; 'but': 0.35; 'there': 0.35; 'hi,': 0.36; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'von': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'received:173': 0.61; 'name': 0.63; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: import in Python3.3 Date: Tue, 26 Mar 2013 03:04:44 -0400 References: 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/20130307 Thunderbird/17.0.4 In-Reply-To: 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364281502 news.xs4all.nl 6953 [2001:888:2000:d::a6]:52895 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41860 On 3/24/2013 7:12 PM, Fabian von Romberg wrote: > Hi, > > I have a package name collections and inside of my package I want to > import the collections package from the standard library, but there > is name conflicts. Yes. I strongly advise against trying to do this. > How do I import explicitly from the standard library? Manipulate sys.path. If you don't know how, either read about sys.path (see index) or don't do it. -- Terry Jan Reedy