#5268: add yaml save_dump argument
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: jacob
Status: new | Component: Serialization
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------------+------------------------------------------
Comment (by [EMAIL PROTECTED]):
a unicode object for example is considered a 'arbitrary Python objects'.
this creates such nice looking dumps like:
https://db.leipzig.freifunk.net/dns/yaml/domain/list/
the !!python/unicode is not very portable. however, i asked the yaml
programmer about this issue befor filling this bug
and he said suggested using safe_dump.
i'm not so sure about this, using dump has many advantages when it comes
to terms of mapping verify presice things.
I'm thinking about writing a extended mapper that causes relations to be
mapped like the model.
But for portability reasons this is not suggested, therefor I suggest this
argument.
--
Ticket URL: <http://code.djangoproject.com/ticket/5268#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---