Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
|
python3:recursion_depth [2019/05/07 13:08] jguerin Added a note about safety. |
python3:recursion_depth [2019/05/07 13:10] (current) jguerin Modified footnote to reference "production" rather than "contests." |
| |
===== Safety ===== | ===== Safety ===== |
Note that the [[https://docs.python.org/3.7/library/sys.html#sys.setrecursionlimit|official Python3 documentation]] describes an implicit danger in this function, with little guidance as to safe use other than a "platform-dependent" limit.((I.e., It is unlikely that this is a good idea in many practical settings outside of a programming contest setting.)) Exceeding this limit will lead to a crash. | Note that the [[https://docs.python.org/3.7/library/sys.html#sys.setrecursionlimit|official Python3 documentation]] describes an implicit danger in this function, with little guidance as to safe use other than a "platform-dependent" limit.((I.e., It is unlikely that this is a good idea in most/all production settings.)) Exceeding this limit will lead to a crash. |