diff options
author | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2016-01-05 11:26:13 +0100 |
---|---|---|
committer | Jeroen Demeyer <jdemeyer@cage.ugent.be> | 2016-01-05 11:29:45 +0100 |
commit | 9562e28a641a71f9d75fb739c8c00525ffd0ff9e (patch) | |
tree | 6c9822785f783449cf0ace4329c3f0b469b1aa45 | |
parent | 98c7d93491625828dcd69dede151f4342ea333ab (diff) | |
download | pexpect-9562e28a641a71f9d75fb739c8c00525ffd0ff9e.tar.gz |
Clarify comments
-rw-r--r-- | pexpect/spawnbase.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pexpect/spawnbase.py b/pexpect/spawnbase.py index 4664884..5dd24b5 100644 --- a/pexpect/spawnbase.py +++ b/pexpect/spawnbase.py @@ -62,7 +62,7 @@ class SpawnBase(object): # Data before searchwindowsize point is preserved, but not searched. self.searchwindowsize = searchwindowsize # Delay used before sending data to child. Time in seconds. - # Most Linux machines don't like this to be below 0.03 (30 ms). + # Set this to None to skip the time.sleep() call completely. self.delaybeforesend = 0.05 # Used by close() to give kernel time to update process status. # Time in seconds. @@ -70,9 +70,11 @@ class SpawnBase(object): # Used by terminate() to give kernel time to update process status. # Time in seconds. self.delayafterterminate = 0.1 - # After each call to read_nonblocking(), pexpect releases the GIL - # through a time.sleep(0.0001) call by default since version 2.1. - # When set as value 'None', the old 2.0 behavior is restored. + # Delay in seconds to sleep after each call to read_nonblocking(). + # Set this to None to skip the time.sleep() call completely: that + # would restore the behavior from pexpect-2.0 (for performance + # reasons or because you don't want to release Python's global + # interpreter lock). self.delayafterread = 0.0001 self.softspace = False self.name = '<' + repr(self) + '>' |