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


Groups > comp.lang.python > #71779

RE: Exception problem with module

From "Joseph L. Casale" <jcasale@activenetwerx.com>
Subject RE: Exception problem with module
Date 2014-05-19 23:48 +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>
Newsgroups comp.lang.python
Message-ID <mailman.10144.1400543373.18130.python-list@python.org> (permalink)

Show all headers | 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