Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38652

Re: Import redirects

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'rename': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '(say': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'package.': 0.17; 'import': 0.21; 'engineering,': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'from:addr:yahoo.co.uk': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'but': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'isaac': 0.84; 'subject:Import': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Import redirects
Date Mon, 11 Feb 2013 07:28:34 +0000
References <CAOArY3VQFytYUZrKxxRHOYQfxP85=P6yT5b83wzpJBMwK4hKGQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 92.18.40.255
User-Agent Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
In-Reply-To <CAOArY3VQFytYUZrKxxRHOYQfxP85=P6yT5b83wzpJBMwK4hKGQ@mail.gmail.com>
X-Antivirus avast! (VPS 130210-1, 10/02/2013), Outbound message
X-Antivirus-Status Clean
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1630.1360567715.2939.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1360567715 news.xs4all.nl 6951 [2001:888:2000:d::a6]:32793
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:38652

Show key headers only | View raw


On 11/02/2013 06:50, Isaac To wrote:
> I have a package (say "foo") that I want to rename (say, to "bar"), and
> for compatibility reasons I want to be able to use the old package name
> to refer to the new package.

My apologies for the over engineering, but this is the best I could come 
up with.

import bar as foo

-- 
Cheers.

Mark Lawrence

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Import redirects Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-02-11 07:28 +0000

csiph-web