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))
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))