![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Frankenstring
From: Peter Otten <__peter__@web.de>
Date: Wed Jul 13 2005 - 10:11:35 CEST
Thomas Lotze wrote:
> I think I need an iterator over a string of characters pulling them out
>>> from StringIO import StringIO
A non-intrusive alternative:
>>> def chariter(instream):
Performance is probably not so good, but if you really want to do it in C,
Peter
|