[Jython-checkins] jython: Add get/set checkinterval to PySystemState.java (they do nothing as it's not
darjus.loktevic
jython-checkins at python.org
Sat Jan 9 08:38:27 EST 2016
https://hg.python.org/jython/rev/6cf77c44b3b9
changeset: 7862:6cf77c44b3b9
user: Darjus Loktevic <darjus at gmail.com>
date: Sun Jan 10 00:38:20 2016 +1100
summary:
Add get/set checkinterval to PySystemState.java (they do nothing as it's not applicable to Jython, but helps interop with CPython targeting libs)
files:
src/org/python/core/PySystemState.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/org/python/core/PySystemState.java b/src/org/python/core/PySystemState.java
--- a/src/org/python/core/PySystemState.java
+++ b/src/org/python/core/PySystemState.java
@@ -165,6 +165,8 @@
private int recursionlimit = 1000;
+ private int checkinterval = 100;
+
private codecs.CodecState codecState;
/** true when a SystemRestart is triggered. */
@@ -496,6 +498,12 @@
return Py.None;
}
+
+ /* get and setcheckinterval really do nothing, but it helps when some code tries to use these */
+ public PyInteger getcheckinterval() { return new PyInteger(checkinterval); }
+
+ public void setcheckinterval(int interval) { checkinterval = interval; }
+
/**
* Change the current working directory to the specified path.
*
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list