Edgewall Software

Changes between Version 45 and Version 46 of GenshiFaq


Ignore:
Timestamp:
Sep 3, 2010, 6:43:45 PM (14 years ago)
Author:
anatoly techtonik <techtonik@…>
Comment:

add note about itertools

Legend:

Unmodified
Added
Removed
Modified
  • GenshiFaq

    v45 v46  
    214214stream = Stream(list(stream))
    215215}}}
    216 Note that if you rename left `stream` to `streamdbg` or something - this won't work anymore.
     216Note that if you rename left `stream` to `streamdbg` or something - this won't work anymore. If you need a renamed stream, use standard Python `itertools` module.
     217{{{
     218#!python
     219stream, dbgstream = [Stream(s) for s in itertools.tee(stream)]
     220}}}
    217221
    218222----