User Tools

Site Tools


python3:recursion_depth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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."
Line 35: Line 35:
  
 ===== 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.
python3/recursion_depth.1557252507.txt.gz ยท Last modified: 2019/05/07 13:08 by jguerin