On 2020-07-05 10:03 a.m., MRAB wrote:
On 2020-07-05 13:39, Soni L. wrote:
1. saves keywords and 2. can be passed as callables.

since there's no lambda: raise, 2 is a new feature.

How would you re-raise an exception?

just call it.


What would be the replacement for:

    raise ex from None

and so forth?

no idea. just don't use that anymore?


I prefer the clarity of knowing that it's raising an exception and not just calling. Calls usually return.

On 2020-07-05 1:15 a.m., Steven D'Aprano wrote:
On Sun, Jul 05, 2020 at 12:48:08AM -0300, Soni L. wrote:
> ValueError()() should be the same as raise ValueError() but with an > extra call level.
> > and raise should be deprecated.

Proposals that are given without justification should be rejected
without justification:

"No they shouldn't."

If you feel like giving reasons for these changes other than "because I,
Soni, say so", then I will consider the merits of those reasons before
agreeing or disagreeing with the proposal.

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/MFNOEEOUMRGJXM433DQQVT57S5ERM7U3/
Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/D4ECM6WBYNRY2MX2FSAXI6HNNCW6L47R/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to