Changes between Version 6 and Version 7 of PyYAMLDocumentation


Ignore:
Timestamp:
04/23/06 14:27:04 (8 years ago)
Author:
xi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PyYAMLDocumentation

    v6 v7  
    238238Here we present most common YAML constructs together with the corresponding Python objects. 
    239239 
     240 
    240241=== Documents === 
    241242 
     
    277278}}} 
    278279 
     280 
    279281=== Block sequences === 
    280282 
     
    348350}}} 
    349351 
     352 
    350353=== Block mappings === 
    351354 
     
    420423}}} 
    421424 
     425 
    422426=== Flow collections === 
    423427 
     
    434438}}} 
    435439 
     440 
    436441=== Scalars === 
    437442 
     443There are 5 styles of scalars in YAML: plain, single-quoted, double-quoted, literal, and folded: 
     444{{{ 
     445# YAML 
     446plain: Scroll of Remove Curse 
     447single-quoted: 'EASY_KNOW' 
     448double-quoted: "?" 
     449literal: |    # Borrowed from http://www.kersbergen.com/flump/religion.html 
     450  by hjw              ___ 
     451     __              /.-.\ 
     452    /  )_____________\\  Y 
     453   /_ /=== == === === =\ _\_ 
     454  ( /)=== == === === == Y   \ 
     455   `-------------------(  o  ) 
     456                        \___/ 
     457folded: > 
     458  It removes all ordinary curses from all equipped items. 
     459  Heavy or permanent curses are unaffected. 
     460}}} 
     461{{{ 
     462#!python 
     463# Python 
     464{'folded': 'It removes all ordinary curses from all equipped items. \ 
     465Heavy or permanent curses are unaffected.\n', 
     466'literal': 'by hjw              ___\n   __              /.-.    /  )_____________\\  Y\n\ 
     467 /_ /=== == === === =\\ _\\_\n( /)=== == === === == Y      `-------------------(  o  )\n\ 
     468                      \\___/\n', 
     469'single-quoted': 'EASY_KNOW', 'double-quoted': '?', 'plain': 'Scroll of Remove Curse'} 
     470}}} 
     471 
     472 
    438473=== Aliases === 
    439474 
     475 
    440476=== Tags === 
    441477 
     478 
    442479== YAML tags and Python types == 
    443480 
     481 
    444482== Reference == 
    445483 
    446484'''Warning: API stability is not guaranteed!''' 
    447485 
     486 
    448487=== YAMLError === 
    449488 
     489 
    450490=== Tokens === 
    451491 
     492 
    452493=== Events === 
    453494 
     495 
    454496=== Nodes === 
    455497 
     498 
    456499=== Loader === 
    457500 
     501 
    458502==== Scanner interface ==== 
    459503 
     504 
    460505==== Parser interface ==== 
    461506 
     507 
    462508==== Composer interface ==== 
    463509 
     510 
    464511==== Constructor interface ==== 
    465512 
     513 
    466514==== Resolver interface ==== 
    467515 
     516 
    468517=== Dumper === 
    469518 
     519 
    470520==== Emitter interface ==== 
    471521 
     522 
    472523==== Serializer interface ==== 
    473524 
     525 
    474526==== Representer interface ==== 
    475527 
     528 
    476529==== Resolver interface ==== 
    477530 
     531 
    478532=== YAMLObject === 
    479533 
     534 
    480535=== The yaml package === 
    481536 
     537 
    482538== Deviations from the specification == 
     539 
    483540 
    484541== Download and installing ==