Bar Harel <bzvi7...@gmail.com> added the comment:

Regarding backwards compatibility, the only issue that can arise from solutions 
1 or 2, is if someone uses a bare `except` statement for finalization around 
`serve_forever` instead of using `finally`.

Keep in mind the function is not documented and there is no good solution for 
the breakage as you're generally not supposed to catch SystemExit either way. 
We can make a small search for open source usage of `serve_forever` and see if 
catching SystemExit is a common idiom. Even if it's common, I still believe 
this breakage is acceptable.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46022>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to