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


Groups > comp.lang.python > #71779

RE: Exception problem with module

Path csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jcasale@activenetwerx.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'advocate': 0.07; 'imported': 0.09; 'logic': 0.09; 'spelled': 0.09; 'subject:module': 0.09; 'defined.': 0.16; 'received:172.18.0': 0.16; 'exception': 0.16; 'hey': 0.18; 'module': 0.19; 'import': 0.22; 'to:name:python-list@python.org': 0.22; 'module,': 0.24; 'subject:problem': 0.24; 'fine': 0.24; 'header:Received:8': 0.24; 'non': 0.24; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'ok.': 0.31; 'comment': 0.34; 'subject:with': 0.35; 'late': 0.35; 'charset:us-ascii': 0.36; 'being': 0.38; 'requiring': 0.38; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'received:unknown': 0.61; 'reply': 0.66; 'user,': 0.69; 'preventing': 0.84; 'was...': 0.84
X-Cloudmark-SP-Filtered true
X-Cloudmark-SP-Result v=1.1 cv=EE1YNWrmHkZ7CGDLFJuuVRk2fksVIUvL4LZRHWJDZ98= c=1 sm=1 a=eJEzyRHMBusA:10 a=7PYXob_7ZXMA:10 a=AgG5ixNBvo4A:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=oNw28mxuUhXRB3mVwYQ4Ag==:17 a=qr40DDLSw-HxZKcFsTcA:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=activenetwerx.com; s=default; t=1400543302; bh=mxa9LOYrO8lEQpgOkxjp+UuKoWo8ApUzVF3cCgyMDF4=; h=From:To:Subject:Date:References:In-Reply-To; b=NpHRMUbh8lrMVmqXw3M0RBT0S3IM8M5usB06H6UyvB0mX+0bM4qMms0/sbxUkJu4S QfSHSabhafWtNmB2bb4/fFIVNV3puDPB0dP9+4qpuFDsr8dqyfJ9qp/aym4/FBSfcf S2I87tAX2v98XS7XSX8uz6h8wPjdjmPVzX+51ww8=
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=activenetwerx.com; s=default; t=1400543302; bh=mxa9LOYrO8lEQpgOkxjp+UuKoWo8ApUzVF3cCgyMDF4=; h=From:To:Subject:Date:References:In-Reply-To; b=NpHRMUbh8lrMVmqXw3M0RBT0S3IM8M5usB06H6UyvB0mX+0bM4qMms0/sbxUkJu4S QfSHSabhafWtNmB2bb4/fFIVNV3puDPB0dP9+4qpuFDsr8dqyfJ9qp/aym4/FBSfcf S2I87tAX2v98XS7XSX8uz6h8wPjdjmPVzX+51ww8=
X-Spam-Checker-Version SpamAssassin 3.3.1 (2010-03-16) on mail.activenetwerx.com
X-Spam-Level
X-Spam-Status No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham version=3.3.1
From "Joseph L. Casale" <jcasale@activenetwerx.com>
To "python-list@python.org" <python-list@python.org>
Subject RE: Exception problem with module
Thread-Topic Exception problem with module
Thread-Index AQHPbwfaLeIN+SWW90mOr8A0k8UUz5tADhT6gAiMCoA=
Date Mon, 19 May 2014 23:48:04 +0000
References <mailman.9975.1400000510.18130.python-list@python.org> <5372b2ae$0$29977$c3e8da3$5496439d@news.astraweb.com> <mailman.9994.1400059319.18130.python-list@python.org> <53736acb$0$29977$c3e8da3$5496439d@news.astraweb.com>
In-Reply-To <53736acb$0$29977$c3e8da3$5496439d@news.astraweb.com>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [172.18.0.201]
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-Virus-Scanned ClamAV using ClamSMTP
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.10144.1400543373.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1400543373 news.xs4all.nl 2899 [2001:888:2000:d::a6]:55133
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:71779

Show key headers only | View raw


>> Well I am not sure what advantage this has for the user, not my code as
>> I don't advocate the import to begin with it, its fine spelled as it was
>> from where it was... 
>
> The advantage for the user is:

/snip

Hey Steven,
Sorry for the late reply (travelling). My comment wasn't clear, I was ranting against
the import of the exception in the second module, non the less how it was imported
and not why it was not ok.

Basically, it was no better than leaving it where it was, spelled as it was and
requiring the user to import it from where it was defined. It turned out to be
some faulty logic in the second module where the __setattr__ call was made
that was preventing it from being set...

jlc

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


Thread

Exception problem with module "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-05-13 16:59 +0000
  Re: Exception problem with module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-05-14 00:02 +0000
    RE: Exception problem with module "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-05-14 09:21 +0000
      Re: Exception problem with module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-05-14 13:08 +0000
        Re: Exception problem with module Chris Angelico <rosuav@gmail.com> - 2014-05-14 23:17 +1000
        RE: Exception problem with module "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-05-19 23:48 +0000

csiph-web