how to create data to dump into yaml file

Discussion in 'Python' started by sibteym@infotechsw.com, Feb 2, 2009.

  1. Guest

    hi
    I have to create a yaml file using my list of objects.shall i need to
    create a string using my objects and then load and dump that string or
    is there any other way to create the yaml file.

    i want a yaml file to be created from [Text, Author,......]in this format
    Text:
    - value1
    - value2
    - value 3
    Author:
    name: bookName


    Thanks
    Sibtey Mehdi
    , Feb 2, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. halfdog
    Replies:
    12
    Views:
    12,433
  2. Chris Rebert
    Replies:
    0
    Views:
    486
    Chris Rebert
    Feb 2, 2009
  3. Trans
    Replies:
    2
    Views:
    300
    Trans
    Jan 29, 2005
  4. Paul Battley

    YAML.dump/YAML.load bug

    Paul Battley, Aug 3, 2005, in forum: Ruby
    Replies:
    0
    Views:
    176
    Paul Battley
    Aug 3, 2005
  5. Jonathan Gold
    Replies:
    0
    Views:
    136
    Jonathan Gold
    May 19, 2009
Loading...

Share This Page