From 9562e28a641a71f9d75fb739c8c00525ffd0ff9e Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Tue, 5 Jan 2016 11:26:13 +0100 Subject: Clarify comments --- pexpect/spawnbase.py | 10 ++++++---- 1 file 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) + '>' -- cgit v1.2.1