Re: [Twisted-Python] Current callback best practices

2013-04-03 Thread Glyph
On Apr 3, 2013, at 4:25 AM, Hynek Schlawack wrote: > So you’re cool with calling callbacks after the event that triggered? That > would’ve been my second question but I didn’t want it to divert the > discussion. I kind of like `onData` et al too but the Twisted examples rather > shun it. The

Re: [Twisted-Python] Current callback best practices

2013-04-03 Thread Hynek Schlawack
Am 02.04.2013 um 16:32 schrieb Glyph : >> My question can be simplified to: Closures yes or no? > "As appropriate". I had that coming. :) […] Thanks for your verbose explanations! >> If “yes, closures”: Still using cb/eb prefixes? I don’t see them very often >> in recent examples. What about

Re: [Twisted-Python] Current callback best practices

2013-04-02 Thread Glyph
On Apr 2, 2013, at 4:11 AM, Laurens Van Houtven <_...@lvh.cc> wrote: > I use closures unless I use the same callback all the time. > Hey Laurens, On this list we prefer inline replies, not top-posting. Please stop top-posting. -glyph___ Twisted-Pyth

Re: [Twisted-Python] Current callback best practices

2013-04-02 Thread Glyph
On Apr 2, 2013, at 3:52 AM, Hynek Schlawack wrote: > My question can be simplified to: Closures yes or no? "As appropriate". > They seem *really* handy since they allow to have some data present without > handing it through all the time. Eg in my cred checker, I can refer to the > user name

Re: [Twisted-Python] Current callback best practices

2013-04-02 Thread Laurens Van Houtven
I use closures unless I use the same callback all the time. On Apr 2, 2013 1:04 PM, "Hynek Schlawack" wrote: > Hi, > > I’ve asked this one already at the Twisted dinner (thanks again for it, it > was probably my PyCon highlight) and got various answers from people > sitting around me. I’m still i

[Twisted-Python] Current callback best practices

2013-04-02 Thread Hynek Schlawack
Hi, I’ve asked this one already at the Twisted dinner (thanks again for it, it was probably my PyCon highlight) and got various answers from people sitting around me. I’m still indecisive so I’d like to gather even more opinions[1]. I already tried to ask on IRC but my time zone is just not ver