Re: [Twisted-Python] Decorator @inlinecallbacks prohibiting memory profiling

2015-10-21 Thread Vikas
gen = f(*args, **kwargs) 1183 42.3 MiB 0.0 MiB if not isinstance(gen, types.GeneratorType): 1187 42.3 MiB 0.0 MiB return _inlineCallbacks(None, gen, Deferred()) I am investigating why the actual function(i.e. my_daemon_fun()) was not profiled? M

[Twisted-Python] Decorator @inlinecallbacks prohibiting memory profiling

2015-10-21 Thread Vikas
nt "Good bye!" after = hp.heap() => *end* memory profiling here leftover = after - before print leftover del hp So far works fine. But moment I introduce @inlineCallbacks before @profile(see below), I don't see memory getting profiled. Am I doing somet

[Twisted-Python] Deferring 201 status code

2015-06-23 Thread Vikas Kumar
control/defer sending out 201? Any sample code/link will be appreciated. Regards Vikas ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] Manhole info needed

2014-11-10 Thread Vikas Kumar
Hi, Can somebody tell me what is the need of manhole in twisted? Specially I've seen them in files like tap.py (twisted application process). One usecase I've seen them is wrt ShellFactory classes: manhole = ShellFactory() manhole.setService(self) internet.TCPServer(.config.dget('js

Re: [Twisted-Python] Return only when value/handle is available

2014-09-03 Thread vikas kumar
Hi Jonas, This is nice. But still we are retrying it repeatedly at regular interval(10). Can't we get the notified asynchronously as and when handle is available. Regards Vikas On 9/3/2014 6:10 PM, Jonas Brunsgaard wrote: I would fiddle around with something like this.

[Twisted-Python] Return only when value/handle is available

2014-09-03 Thread vikas kumar
le is available. How do I use deferred/reactor in this scenario? try: handle = yield self.get_handle() except SystemDelayException: // code to re-attempt get_handle and return only when handle is available Regards Vikas ___ Twisted-Python mailing