Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to do similar function as nextline() while using StreamTonenizer' next()  RSS feed

 
lixing1998
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,all
I want to use StreamTokenizer to pass tokens for a document. Inside its next(), I want to change it alittle bit, so when program read some specific character like '!', program will read next line instead of continue in reading this line.
Any way to do it?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!