Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70379
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bgailer@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; 'interpreter': 0.05; 'session.': 0.07; 'subject:module': 0.09; 'python': 0.11; 'dark.': 0.16; 'happened?': 0.16; 'relevant.': 0.16; 'reproduce': 0.16; 'shooting': 0.16; 'statement.': 0.16; 'wrote:': 0.18; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'text.': 0.24; 'script': 0.25; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'function': 0.29; 'am,': 0.29; 'gives': 0.31; 'lines': 0.31; 'text': 0.33; 'linux': 0.33; 'running': 0.33; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'list.': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'delete': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'ensure': 0.60; 'more': 0.64; 'reply': 0.66; '2014,': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=jHnRka5pKvIcU1SJNWV2bAZqeYuMRD4iaz7w8sjDXlc=; b=qMacoK5W6+aOYWYdGS12NTg3D8Vi9WA0yys5XR3xvnitqRxc6x7CEVS9TeUrm9xcVl iV1O2z3/MyWa7w3Z6R982Z/S1Y2gi4gZhRdm7+4RN09prtmJpZaIah/nCzCal33DtzBt 7rocQK4V8GIjuHFcsdkFGY3Z8jpcF2BibybCHaq7DmkWvKDQYgLqm/4LvjdswDyejM9q ZUbDYkqvnD/NFuyFFGsKmGStlcT9VpNc5GXr8xETCZO4AjMlqz8ztwnTEcYOFk2dfffA bJt2wNjW4KyZ9Uk9oJXD/o4+P+6ZS+vaTlxR/LAqWVT03DBGFolykF2DOny6EfWanjOy KzvA== |
| X-Received | by 10.224.127.129 with SMTP id g1mr27240166qas.22.1397910828296; Sat, 19 Apr 2014 05:33:48 -0700 (PDT) |
| Date | Sat, 19 Apr 2014 08:33:44 -0400 |
| From | bob gailer <bgailer@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
| MIME-Version | 1.0 |
| To | Egon Frerich <egon@frerich.eu>, Python-Liste <python-list@python.org> |
| Subject | Re: module and namespace |
| References | <534E5DA2.7050205@frerich.eu> |
| In-Reply-To | <534E5DA2.7050205@frerich.eu> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9356.1397910837.18130.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1397910837 news.xs4all.nl 2948 [2001:888:2000:d::a6]:46134 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:70379 |
Show key headers only | View raw
On 4/16/2014 6:38 AM, Egon Frerich wrote: > If I use the interpreter I get: > > Python 3.3.5 (default, Apr 12 2014, 23:34:20) > [GCC 4.6.3] on linux > Type "help", "copyright", "credits" or "license" for more information. > import mptt > print(mptt) > <module 'mptt' from './mptt/__init__.py'> > > > But if I import mptt in my program the print-statement gives > > <module 'mptt' (namespace)> > > What is the meaning? When does this happened? I can't reproduce that behavior. Running a script with just those 2 lines in gives me the same result as running in the interactive session. Please post the program. Otherwise we are shooting in the dark. Also note print is a function not a statement. Be sure to: - Place your answers following the relevant text. - Delete old text that is no longer relevant. - Ensure a copy of your reply goes to the list.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: module and namespace bob gailer <bgailer@gmail.com> - 2014-04-19 08:33 -0400
csiph-web