The Python Oracle

Raise warning in Python without interrupting program

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping

--

Chapters
00:00 Question
01:17 Accepted answer (Score 236)
01:34 Answer 2 (Score 492)
01:48 Answer 3 (Score 104)
03:03 Answer 4 (Score 6)
03:48 Thank you

--

Full question
https://stackoverflow.com/questions/3891...

Accepted answer links:
[warnings]: http://docs.python.org/library/warnings....

Answer 2 links:
[here]: http://docs.python.org/library/warnings....

Answer 3 links:
[Warnings]: https://docs.python.org/library/exceptio...
[UserWarning]: https://docs.python.org/library/exceptio...
[DeprecationWarning]: https://docs.python.org/library/exceptio...
[assertWarns]: https://docs.python.org/library/unittest...
[assertWarnsRegex]: https://docs.python.org/library/unittest...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #exception #errorhandling #warnings

#avk47