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


Groups > comp.lang.python > #17751

Re: Can't I define a decorator in a separate file and import it?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bahamutzero8825@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.085
X-Spam-Evidence '*H*': 0.83; '*S*': 0.00; 'subject:file': 0.12; 'files...': 0.16; 'subject:define': 0.16; 'subject:import': 0.16; 'header:In-Reply-To:1': 0.22; 'code': 0.25; 'subject:?': 0.31; 'message-id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.34; 'received:209.85.161': 0.36; 'received:192': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'received:192.168': 0.40; 'received:192.168.1.24': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=PuCfQz59B02tBASBfkgw0QO9Wm7CPNq2yCaK6FggQ+g=; b=vE56VybE3IN4Fc5cCTghjr8/4JYg2OVPGhKLJvchQqX5PYiEKP945BOEe8FdQZAWQc yqrNfskGlPIrwf31u8GHhiTH+83hdGPxrvl/TBFin6WddluPKiCuqmqFOjJhTAEWk94w /u7Nu2O36Aw1janDuJmfjPHh2ZPMkclfuTT84=
Date Thu, 22 Dec 2011 15:20:02 -0600
From Andrew Berg <bahamutzero8825@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111220 Thunderbird/9.0
MIME-Version 1.0
To "comp.lang.python" <python-list@python.org>
Subject Re: Can't I define a decorator in a separate file and import it?
References <53a106b8-1a2f-4b9d-9cac-d6f7dab01696@q11g2000vbq.googlegroups.com> <4EF39C16.4090803@stoneleaf.us> <CA+w+aQ=PsUBZvgVyrpuBk4_kzS7NyMp=Z=zwbPKSsyg1KYp6Rg@mail.gmail.com>
In-Reply-To <CA+w+aQ=PsUBZvgVyrpuBk4_kzS7NyMp=Z=zwbPKSsyg1KYp6Rg@mail.gmail.com>
X-Enigmail-Version 1.3.3
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.3996.1324588811.27778.python-list@python.org> (permalink)
Lines 1
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1324588811 news.xs4all.nl 6949 [2001:888:2000:d::a6]:39264
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:17751

Show key headers only | View raw


You have the same code for both files...

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


Thread

Can't I define a decorator in a separate file and import it? Saqib Ali <saqib.ali.75@gmail.com> - 2011-12-22 12:53 -0800
  Re: Can't I define a decorator in a separate file and import it? Saqib Ali <saqib.ali.75@gmail.com> - 2011-12-22 13:09 -0800
    Re: Can't I define a decorator in a separate file and import it? Ben Finney <ben+python@benfinney.id.au> - 2011-12-23 09:33 +1100
  Re: Can't I define a decorator in a separate file and import it? Andrew Berg <bahamutzero8825@gmail.com> - 2011-12-22 15:20 -0600
  Re: Can't I define a decorator in a separate file and import it? Ethan Furman <ethan@stoneleaf.us> - 2011-12-22 13:31 -0800
  Re: Can't I define a decorator in a separate file and import it? Ethan Furman <ethan@stoneleaf.us> - 2011-12-22 13:07 -0800

csiph-web