Re: [Twisted-Python] in a factory: assert not self.usedUp

2010-06-23 Thread exarkun
On 04:23 pm, jeandaniel.bro...@gmail.com wrote: >Hello, > >I have three questions on a code examples, and actually I have seen >this pattern in several places in Twisted. The code are copied from >twisted/doc/mail/examples/imap4client.py > >1. In the code below, what is the purpose of an assert che

[Twisted-Python] in a factory: assert not self.usedUp

2010-06-23 Thread Jean Daniel
Hello, I have three questions on a code examples, and actually I have seen this pattern in several places in Twisted. The code are copied from twisted/doc/mail/examples/imap4client.py 1. In the code below, what is the purpose of an assert checking that the member attribute promptDeferred is empty