On Sun, Apr 2, 2017 at 1:11 PM, Steven D'Aprano wrote:
> On the face of it, this isn't a serious problem. It seems to me rather
> like mistakenly writing:
>
> except TypeError
>
> when you actually intended to write:
>
> except ZeroDivisionError
>
> You failed to catch the exception that y
On Sat, Apr 01, 2017 at 09:27:34PM +0200, Ram Rachum wrote:
> Today I got burned because I had code that did this:
>
> except TimeoutError:
>
> When it should have done this:
>
> except socket.timeout:
On the face of it, this isn't a serious problem. It seems to me rather
like mistaken
Steven D'Aprano wrote:
I like the idea of using * for repetition without copying, and @ for
repetition with shallow copying.
Shallow copying wouldn't be enough in many cases, e.g.
building a matrix with 3 or more dimensions.
--
Greg
___
Python-ideas
Today I got burned because I had code that did this:
except TimeoutError:
When it should have done this:
except socket.timeout:
There's also another timeout error class in asyncio.
Initially I thought, why not make them all use the same exception class?
But Guido objects to that:
I co