One interesting feature of YAML is the ability to have custom operators. For example, with YAML used as a fixture, you might have an operator that turns a hex string into a MongoDB ObjectId on read, or a date string into a datetime object, meaning that you don't have to post process the data read. Other serializers can obviously be extended as well, but it seems to have been well provided for in YAML (at least in PyYAML).
On Sun, Aug 16, 2015 at 2:44 AM, James Schneider <jrschneide...@gmail.com> wrote: > Probably for the same reasons you might use XML, CSV, or JSON; data > exchange and serialization between systems. YAML is just another > standardized way to encapsulate data structures so that they can be passed > between systems or statically archived consistently. > > You could also not care at all if you have no data requirements on other > systems that use YAML. > > Without more context, though, there isn't really a proper way to answer > your question. > > -James > On Aug 15, 2015 9:10 PM, "Joshua Ellis" <sonikd...@gmail.com> wrote: > >> What purpose does it have? What kind of problem am I bound to solve in >> using it? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/3fc97528-4f61-42b4-91c0-ef6f02e2e800%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/3fc97528-4f61-42b4-91c0-ef6f02e2e800%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWrdFi_KuYgpb0EJug1Fw_PTWEZE34XF0%2BRgHAejfCoeA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWrdFi_KuYgpb0EJug1Fw_PTWEZE34XF0%2BRgHAejfCoeA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB%2BAj0ucJHTojaO9LPWAjSwm8e%2Bk%2BzFDh_2LEnL%3D3qv8iDPtaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.