Python's JSON module doesn't use __get__?
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-02-10T17:18:49Z
Indexed on
2010/05/02
3:07 UTC
Read the original article
Hit count: 272
When I serialize a list of objects with a custom __get__
method, __get__
is not called and the raw (unprocessed by custom __get__
) value from __set__
is used. How does Python's json
module iterate over an item?
Note: if I iterate over the list before serializing, the correct value returned by __get__
is used.
© Stack Overflow or respective owner