Re: [Twisted-Python] AMPBox as an Argument?

2012-08-05 Thread Eric P. Mangold
On Tue, Jul 24, 2012 at 01:29:51PM -, exar...@twistedmatrix.com wrote: > On 12:48 pm, _...@lvh.cc wrote: > >Sure, I just ended up doing that. > > > >Would it be worth creating a ticket, or am I seriously the first person > >to want this? > > Some general dict argument types would be great. T

Re: [Twisted-Python] AMPBox as an Argument?

2012-08-05 Thread Eric P. Mangold
Hi Lauren On Fri, Jul 20, 2012 at 10:11:17AM +0200, Laurens Van Houtven wrote: > Hi, > > > Apparently AMPBoxes aren't Arguments. However, I kind of want an AMPBox (like > an AMPList, but only one). Yes it's a pretty common use-case. Right now you may use an AMPList with a single element. Thi

Re: [Twisted-Python] AMPBox as an Argument?

2012-08-05 Thread Laurens Van Houtven
That might be a preferable general case yes :) For future reference here's the NestedAMPBox I wrote as Glyph suggested: https://gist.github.com/3263629 cheers lvh On 24 Jul 2012, at 15:29, exar...@twistedmatrix.com wrote: > On 12:48 pm, _...@lvh.cc wrote: >> Sure, I just ended up doing that