Pull requests

#4 Open
Repository
xi
Branch
default

Update the docstring for load method to match actual behaviour

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r anentropic/update-the-docstring-for-load-method-to--1399563241109 https://bitbucket.org/anentropic/pyyaml
hg merge anentropic/update-the-docstring-for-load-method-to--1399563241109
hg commit -m 'Merged in anentropic/pyyaml/anentropic/update-the-docstring-for-load-method-to--1399563241109 (pull request #4)'
Author
  1. anentropic
Reviewers
Description

Update the docstring for load method to match actual behaviour

  • Learn about pull requests

Comments (1)

  1. anentropic author

    Currently if you pass a stream of a YAML file containing multiple documents to yaml.load you will get:

    ComposerError: expected a single document in the stream

    But the docstring made it sound like this should work but it would just load the first one.

    That would actually be useful but in Composer.get_single_node there seems to be deliberate validation to prevent this and I don't know what the implications are.