Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18485
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'cpython': 0.05; 'imports': 0.07; 'subject:issue': 0.07; 'received:209.85.210.174': 0.13; 'received:mail-iy0-f174.google.com': 0.13; 'subject:classes': 0.16; 'subject:import': 0.16; 'wrote:': 0.18; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'module': 0.26; 'windows': 0.26; 'thanks.': 0.26; 'import': 0.27; 'variable': 0.28; 'pm,': 0.29; 'class': 0.29; 'message-id:@gmail.com': 0.33; 'header:User- Agent:1': 0.33; 'to:addr:python-list': 0.34; 'subject:with': 0.36; 'received:192': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'called': 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'received:192.168': 0.40; 'brown': 0.80 |
| 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=ADYm2PlHyLRp58xulvJk9jjzlFhyFYZqvODC70c13Tw=; b=sPkow061bfs5rJDkqRw0bx/IGoB5C4PgHThhoSSadRFWYKL6KZMgp8nbyMRbL18pE6 xKzrJQTnH5Pag1HHtpBmFueYF5VtdcDtxt6tp/POBXizWkZh5wpv+3xgktLmuEQ/JuJy upscMpvIquf1duzR1jlg6J1zJ3eP1iL7xB4/A= |
| Date | Tue, 03 Jan 2012 21:06:55 -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: import issue with classes |
| References | <CABRP1o9vGVQLQ0GE41S5kuXW1DLroKYtkvZN-VH9C73CTR46Ug@mail.gmail.com> |
| In-Reply-To | <CABRP1o9vGVQLQ0GE41S5kuXW1DLroKYtkvZN-VH9C73CTR46Ug@mail.gmail.com> |
| X-Enigmail-Version | 1.3.4 |
| 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.4398.1325646425.27778.python-list@python.org> (permalink) |
| Lines | 10 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1325646425 news.xs4all.nl 6913 [2001:888:2000:d::a6]:38091 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:18485 |
Show key headers only | View raw
On 1/3/2012 8:50 PM, Rodrick Brown wrote: > Import FooA doesn't work and I need to use from FooA import FooA > instead? This puzzles me. > Thanks. If you have a module called FooA with a class called FooA, then import FooA imports the /module/. The class would be FooA.FooA, just as the variable x from FooA would be FooA.x. -- CPython 3.2.2 | Windows NT 6.1.7601.17640
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: import issue with classes Andrew Berg <bahamutzero8825@gmail.com> - 2012-01-03 21:06 -0600
csiph-web