Re: [Tutor] user overloaded

2018-11-28 Thread Steven D'Aprano
On Wed, Nov 28, 2018 at 12:56:32PM -0500, Avi Gross wrote: > try ... > except ValueError, e: > ... > > You now need to do this format: > > try ... > except ValueError as e: > ... > > Why the change? Because the first form was a trap and a bug magnet: try: block except TypeError, ValueErro

[Tutor] user overloaded

2018-11-28 Thread Avi Gross
OOPS, Sorry Steve. Yes, I am on multiple mailing lists and the tutor list by default replies to the sender and you need to edit it to reply to the group. I will be careful. Your other point is broader. There are lots of operations (not just ion python) that are easy to misuse. Sometimes the same