A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-May/157458.html below:

[Python-Dev] bpo-36829: Add sys.unraisablehook()

[Python-Dev] bpo-36829: Add sys.unraisablehook() [Python-Dev] bpo-36829: Add sys.unraisablehook()Victor Stinner vstinner at redhat.com
Thu May 16 14:38:17 EDT 2019
> While I’m fine with the API you propose, you could consider keyword-only
arguments to help future proof the call signature.  I don’t like it as much
because it’s not as backward compatibility proof, but it’s an option to
perhaps consider.

Let's say that we have: hook(*, exc_type, exc_value, exc_tb, obj). Now we
pass a new err_msg keyword argument: the call fails with a TypeError :-(

Or do you mean using **kwargs? I don't think **kwargs is a good API :-(
Well, the same can be done using *args and positional arguments to ignore
new unknown arguments, but I also dislike such API.

Victor

-- 
Night gathers, and now my watch begins. It shall not end until my death.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20190516/cf786168/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4