On Thu, Apr 18, 2019 at 2:32 PM DL Neil wrote:
>
> On 18/04/19 8:29 AM, Chris Angelico wrote:
> > On Thu, Apr 18, 2019 at 6:21 AM DL Neil
> > wrote:
> >> Do you bother with exception handling for import statements?
> >> Can we assume that if such a catastrophic error occurs, it is quite
> >> acc
Rich Shepard writes:
> What is the proper syntax to import the model class in the model/
> subdirectory into a tkinter view module, e.g., activities.py? The syntax,
> 'import model as m' fails because it is not in the same subdirectory as the
> importing module.
>
> The program directory tree is:
On 18Apr2019 16:05, DL Neil wrote:
On 18/04/19 8:45 AM, MRAB wrote:
On 2019-04-17 21:20, DL Neil wrote:
Do you bother with exception handling for import statements?
Can we assume that if such a catastrophic error occurs, it is quite
acceptable for the code to fall-over in a tumbling-fumble?
On 18/04/19 4:10 PM, Sayth Renshaw wrote:
I have created a function that takes a list as an argument.
Without using itertools I want to compare each item in the list to find the max.
However instead of the max I keep getting the last item in the list. Where is
my logic wrong here?
...
Seems
On 18/04/19 1:24 PM, Cameron Simpson wrote:
On 17Apr2019 21:45, MRAB wrote:
On 2019-04-17 21:20, DL Neil wrote:
Do you bother with exception handling for import statements?
[...]
Catch only what you (well, the script) can fix.
If it needs numpy, but can't import numpy, then when can it do?
On 18/04/19 8:29 AM, Chris Angelico wrote:
On Thu, Apr 18, 2019 at 6:21 AM DL Neil wrote:
Do you bother with exception handling for import statements?
Can we assume that if such a catastrophic error occurs, it is quite
acceptable for the code to fall-over in a tumbling-fumble?
I try/except ar
On 18/04/19 8:44 AM, Grant Edwards wrote:
On 2019-04-17, DL Neil wrote:
Do you bother with exception handling for import statements?
Sometimes. There are two cases when I do that:
1. When the module has different names under Python2 and Python3 and
the program tries first one, then
wrote:
> >
> >
> > I have created a function that takes a list as an argument.
> > Without using itertools I want to compare each item in the list to find the
> > max.
> >
> > However instead of the max I keep getting the last item in the list. Where
> > is my logic wrong here?
> >
> > def maxim
On 18/04/19 8:45 AM, MRAB wrote:
On 2019-04-17 21:20, DL Neil wrote:
Do you bother with exception handling for import statements?
Can we assume that if such a catastrophic error occurs, it is quite
acceptable for the code to fall-over in a tumbling-fumble?
[snip]
Catch only what you (well,
On 18/04/19 8:53 AM, Larry Martell wrote:
On 2019-04-17 21:20, DL Neil wrote:
Do you bother with exception handling for import statements?
I often have to do something like this:
try:
from settings import SITE_WAFER_DIAMETER
except ImportError:
SITE_WAFER_DIAMETER = 300
That's an
On 17Apr2019 21:45, MRAB wrote:
On 2019-04-17 21:20, DL Neil wrote:
Do you bother with exception handling for import statements?
[...]
Catch only what you (well, the script) can fix.
If it needs numpy, but can't import numpy, then when can it do? Might
as well just let it fail.
I'm of thi
On Thursday, 18 April 2019 06:59:43 UTC+10, Rich Shepard wrote:
> What is the proper syntax to import the model class in the model/
> subdirectory into a tkinter view module, e.g., activities.py? The syntax,
> 'import model as m' fails because it is not in the same subdirectory as the
> importing
On Thu, Apr 18, 2019 at 9:31 AM Sayth Renshaw wrote:
>
>
> I have created a function that takes a list as an argument.
> Without using itertools I want to compare each item in the list to find the
> max.
>
> However instead of the max I keep getting the last item in the list. Where
> is my logi
I have created a function that takes a list as an argument.
Without using itertools I want to compare each item in the list to find the max.
However instead of the max I keep getting the last item in the list. Where is
my logic wrong here?
def maximum(listarg):
items = list(listarg)
m
What is the proper syntax to import the model class in the model/
subdirectory into a tkinter view module, e.g., activities.py? The syntax,
'import model as m' fails because it is not in the same subdirectory as the
importing module.
The program directory tree is:
bustrac/
README.rst
bustr
On 2019-04-17 21:20, DL Neil wrote:
> Do you bother with exception handling for import statements?
I often have to do something like this:
try:
from settings import SITE_WAFER_DIAMETER
except ImportError:
SITE_WAFER_DIAMETER = 300
--
https://mail.python.org/mailman/listinfo/python-list
On 2019-04-17 21:20, DL Neil wrote:
(I know it's not Friday [exp], and after personal apologies[apo])
Do you bother with exception handling for import statements?
Most of the code I read, both in books and during code review, eschews
any form of ImportError check. Even data science people who
On 2019-04-17, DL Neil wrote:
> Do you bother with exception handling for import statements?
Sometimes. There are two cases when I do that:
1. When the module has different names under Python2 and Python3 and
the program tries first one, then the other.
2. When the program can still do
On Thu, Apr 18, 2019 at 6:21 AM DL Neil wrote:
>
> (I know it's not Friday [exp], and after personal apologies[apo])
>
>
> Do you bother with exception handling for import statements?
>
>
> Most of the code I read, both in books and during code review, eschews
> any form of ImportError check. Even
(I know it's not Friday [exp], and after personal apologies[apo])
Do you bother with exception handling for import statements?
Most of the code I read, both in books and during code review, eschews
any form of ImportError check. Even data science people who 'clean'
every data field towards i
On 28/08/2017 20:17, Leam Hall wrote:
> On 08/28/2017 11:40 AM, Dennis Lee Bieber wrote:
>
> ... a bunch of good stuff ...
>
> I'm (re-)learning python and just trying make sure my function works.
> Not at the statistical or cryptographic level. :)
>
> Thanks!
>
> Leam
If it's supposed to ge
Hi All,
Thanks for explaining it so nice way. I got it now. What protocols I need to
learn, to define a custom immutable class ?
Thanks,
Arup Rakshit
a...@zeit.io
> On 16-Apr-2019, at 10:54 PM, Dennis Lee Bieber wrote:
>
> On Tue, 16 Apr 2019 13:13:18 +0530, Arup Rakshit declaimed the
>
ETG one among the best custom Python web development companies across the
globe, we cover a wide array of Python web app development services using
latest framework like Django, CherryPy, Zope etc. https://bit.ly/2Maf8Hx
#pythonwebdevelopmentcompany#djangowebdevelopmentcompany
--
https://mail.p
23 matches
Mail list logo