Re: [Twisted-Python] Twisted-related talks and tutorials at PyCon

2013-01-28 Thread Itamar Turner-Trauring
On Mon, Jan 28, 2013 at 10:15 AM, Laurens Van Houtven <_...@lvh.cc> wrote: > My crypto 101 talk is probably going to be pretty light on the twisted: > right now there's nothing in it, I'm considering adding some, but I'm also > strapped for time :( > I should clarify that some of these talks may

Re: [Twisted-Python] inlineCallbacks: multiple yielding same Defferred behaviour

2013-01-28 Thread exarkun
On 09:52 am, ser...@gmail.com wrote: >My target is just to deny request duplications. > >Reg. inlineCallbacks.. What do you think is it possible to implement >inlineCallbacks generator in the way allows multiple yields? (but do >not >modify Defferred) No, this isn't possible. Single-use is a fun

Re: [Twisted-Python] Twisted-related talks and tutorials at PyCon

2013-01-28 Thread Laurens Van Houtven
My crypto 101 talk is probably going to be pretty light on the twisted: right now there's nothing in it, I'm considering adding some, but I'm also strapped for time :( On Mon, Jan 28, 2013 at 3:56 PM, Itamar Turner-Trauring < ita...@futurefoundries.com> wrote: > Hi, > > Thought I'd point out som

[Twisted-Python] Twisted-related talks and tutorials at PyCon

2013-01-28 Thread Itamar Turner-Trauring
Hi, Thought I'd point out some Twisted-related talks at PyCon; I may have missed a few. *Tutorials* Jessica "jesstess" McKellar is teaching two tutorials, one of which teaches the basics of contributing to open source projects, in case you've wanted to contribute to Twisted but haven't yet figu

Re: [Twisted-Python] inlineCallbacks: multiple yielding same Defferred behaviour

2013-01-28 Thread Sergey V. Gerasimov
My target is just to deny request duplications. Reg. inlineCallbacks.. What do you think is it possible to implement inlineCallbacks generator in the way allows multiple yields? (but do not modify Defferred) From: Laurens Van Houtven [mailto:_...@lvh.cc] Sent: Monday, January 28, 2013 1:43

Re: [Twisted-Python] inlineCallbacks: multiple yielding same Defferred behaviour

2013-01-28 Thread Sergey V. Gerasimov
Hi Laurens, Thanks for your reply! I need something like this. A server that processes requests and handles situation when there are 2 requests with same key. class Server(object): def __init__(self): self.requestsInProgress = {} # dict

Re: [Twisted-Python] inlineCallbacks: multiple yielding same Defferred behaviour

2013-01-28 Thread Laurens Van Houtven
I'm not entirely sure why you feel this is unintuitive or why you should need a workaround; in any other case, deferreds work pretty much the same way. When reading this code, the first question that pops up in my head is: why are you doing this instead of just using the result that you already ha