python Programming Glossary: self.buf
Simple regex-based lexer in Python http://stackoverflow.com/questions/133886/simple-regex-based-lexer-in-python self buf Initialize the lexer with a buffer as input. self.buf buf self.pos 0 def token self Return the next token a Token.. is raised with the position of the error. if self.pos len self.buf return None else if self.skip_whitespace m self.re_ws_skip.search.. else if self.skip_whitespace m self.re_ws_skip.search self.buf self.pos if m self.pos m.start else return None for token_regex..
Problems with Python in Google App Engine - UTF-8 and ASCII http://stackoverflow.com/questions/7138797/problems-with-python-in-google-app-engine-utf-8-and-ascii File D Python25 lib StringIO.py line 270 in getvalue self.buf ''.join self.buflist UnicodeDecodeError 'ascii' codec can't.. lib StringIO.py line 270 in getvalue self.buf ''.join self.buflist UnicodeDecodeError 'ascii' codec can't decode byte 0xc3..
Python: Optimizing Code Using SQLite3 + Mutagen http://stackoverflow.com/questions/8640701/python-optimizing-code-using-sqlite3-mutagen u INSERT INTO song VALUES self.buf except Exception e print e.__unicode__ finally del self.buf.. except Exception e print e.__unicode__ finally del self.buf self.buf # wipe the buffers clean so we can repeat a batch.. Exception e print e.__unicode__ finally del self.buf self.buf # wipe the buffers clean so we can repeat a batch parse again...
|