method

ungetc

v2_4_6 - Show latest stable - Class: StringIO
ungetc(p1)
public

Pushes back one character (passed as a parameter) onto strio such that a subsequent buffered read will return it. There is no limitation for multiple pushbacks including pushing back behind the beginning of the buffer string.