[Twisted-Python] AMPBox as an Argument?

Laurens Van Houtven _ at lvh.cc
Fri Jul 20 04:11:17 EDT 2012


Apparently AMPBoxes aren't Arguments. However, I kind of want an AMPBox (like an AMPList, but only one).

Use case: my responses have a "location", but a location is composed of several sub-things: place name, country and postal code. {"location": {"placeName": "Krakow", "countryCode": "PL", postalCode: "30-015"}} would be a lot nicer  than having those keys in the top level namespace :)


More information about the Twisted-Python mailing list