Message120231
| Author |
llnik |
| Recipients |
barry, bob.ippolito, docs@python, fdrake, llnik, pitrou |
| Date |
2010年11月02日.15:33:04 |
| SpamBayes Score |
8.016249e-07 |
| Marked as misclassified |
No |
| Message-id |
<1288711987.81.0.567678697514.issue10038@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
There is even more inconsistency here.
As already mentioned, we have this:
>>> import json
>>> json.loads(json.dumps("abc"))
'abc'
If, however, I am evil and hide _json.so (which is the C-part of the json module for speedup), the JSON code falls back to its python implementation and voila:
>>> import json
>>> json.loads(json.dumps("abc"))
u'abc'
Not so neat, if your fallback is not a fallback but shows such different behaviour. |
|