[Python-ideas] Json object-level serializer (original) (raw)
Alexandre Conrad alexandre.conrad at gmail.com
Thu Jul 29 16:14:39 CEST 2010
- Previous message: [Python-ideas] Json object-level serializer
- Next message: [Python-ideas] Json object-level serializer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2010/7/29 Tarek Ziadé <ziade.tarek at gmail.com>:
On Thu, Jul 29, 2010 at 3:51 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
Le jeudi 29 juillet 2010 à 15:47 +0200, Tarek Ziadé a écrit :
On Thu, Jul 29, 2010 at 3:42 PM, Tarek Ziadé <ziade.tarek at gmail.com> wrote: >> And I don't see how
_json_
is more annoying than e.g.tojson
.Its easier to override Could you expand a little bit? If you want to override tojson in a subclass, to slightly adapt it, its easier because the json name is mangled by Python
I believe that mangling will not be performed if the identifier ends with more than one underscore. So json won't be mangled.
Regards,
Alex twitter.com/alexconrad
- Previous message: [Python-ideas] Json object-level serializer
- Next message: [Python-ideas] Json object-level serializer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]