(self, ins)
return newline, prompt, following
Helper function for INPUT: parse prompt definition.
Helper function for INPUT: parse prompt definition.
Helper function for INPUT : parse prompt definition .
def _parse_prompt(self, ins):
        """Helper function for INPUT: parse prompt definition."""
        # ; to avoid echoing newline
        newline = not ins.skip_blank_read_if((b';',))
        # parse prompt
        prompt, following = b'', b';'
        if ins.skip_blank() == b'"':
            # only literal allowed, not a string expression
            prompt = ins.read_string().strip(b'"')
            following = ins.require_read((b';', b','))
        return newline, prompt, following
def _parse_prompt ( self , ins ) : # ; to avoid echoing newline newline = not ins . skip_blank_read_if ( ( b';' , ) ) # parse prompt prompt , following = b'' , b';' if ins . skip_blank ( ) == b'"' : # only literal allowed, not a string expression prompt = ins . read_string ( ) . strip ( b'"' ) following = ins . require_read ( ( b';' , b',' ) ) return newline , prompt , following