Re: Use "raise from" where appropriate, all over the codebase

2020-02-08 Thread Ram Rachum
FYI: I opened a thread on Python-ideas where we continued the discussion on my `raise as` proposal, Shai's proposal, etc.: https://mail.python.org/archives/list/python-id...@python.org/thread/KM7NRNFZHALOBKJUXVYQL2SLDP3MAANW/ On Fri, Feb 7, 2020 at 1:16 PM Ram Rachum wrote: > > > On Fri, Feb 7,

My proposal to create a new exception

2020-02-08 Thread Victor Porton
In https://code.djangoproject.com/ticket/31239 I proposed to create QueryDictKeyError derived from MultiValueDictKeyError and raise this exception on a missing parameter in request.GET and request.POST. It is to be done to handle error in user data easily: try: x = request.GET['x'] except Mult