[Twisted-Python] Re: Re: Re: rewrite of flow.py completed
    Philippe Lafoucrière 
    lafou at wanadoo.fr
       
    Wed Apr 16 07:55:53 EDT 2003
    
    
  
Wow, strange :
*****************************************************************
def consumer():
    query = flow.Generator(QueryIterator(dbpool, sql))
    print "here"
    while 1:
        print "there"
        yield query
        if query.stop: break
        print query.result
[...]
*****************************************************************
I never get "here" and "there" !
Moreover :
*****************************************************************
def consumer():
    query = flow.Generator(QueryIterator(dbpool, sql))
    zorglub
    while 1:
        yield query
        if query.stop: break
        print query.result
*****************************************************************
still outputs
[]
(-> zorglub is anything you want)
    
    
More information about the Twisted-Python
mailing list