ungetc in python
Erik Max Francis
max at alcyone.com
Fri Jan 31 08:15:59 EST 2003
Scott Fenton wrote:
> Hello. I was wondering if anyone knew if there was
> an equivilant of ungetc in Python. I Googled for it
> and didn't find anything, and I need it for a parser
> I'm working on.
Not natively, though it would be quite straightforward to write your own
wrapper around a file object that implemented a pushback ability.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Don't ever get discouraged / There's always / A better day
\__/ TLC
ZOE / http://www.alcyone.com/pyos/zoe/
A simple Python OpenGL rendering engine.
More information about the Python-list
mailing list