示例#1
0
文件: mouse16.py 项目: catb0t/mouse16
 def get_until(self):
     """( x -- y )
     get stdin until the character with codepoint x is read, pushing to y"""
     x = self.pop()
     if isnum(x):
         x = chr(x)
     elif isstr(x):
         x = x[0]
     from input_constrain import until
     self.push(until(x))
示例#2
0
 def get_until(self):
     """( x -- y )
     get stdin until the character with codepoint x is read, pushing to y"""
     x = self.pop()
     if isnum(x):
         x = chr(x)
     elif isstr(x):
         x = x[0]
     from input_constrain import until
     self.push(until(x))
示例#3
0
 def get_until(self):
     """( x -- y )
     get stdin until the character with codepoint x is read, pushing to y"""
     x = self.pop()
     if isnone(x):
         return
     elif isnum(x):
         x = chr(x)
     elif isstr(x):
         x = x[0]
     else:
         CatLogger.Crit("bad type for get_until_not; ignoring")
         return
     from input_constrain import until
     self.push(until(x))