Unicode problem with pyyaml 3.05

Joseph Turian <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
I have pyyaml 3.05. When I try to dump a unicode string obtained from 
BeautifulSoup, I get the following errors.

Why can I not dump these unicode strings?

Thanks,
    Joseph

Traceback (most recent call last):
   File "./extract-data.py", line 34, in <module>
     print yaml.dump(data)
   File "/usr/lib64/python2.5/site-packages/yaml/__init__.py", line 177, 
in dump
     return dump_all([data], stream, Dumper=Dumper, **kwds)
   File "/usr/lib64/python2.5/site-packages/yaml/__init__.py", line 167, 
in dump_all
     dumper.represent(data)
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
33, in represent
     node = self.represent_data(data)
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
62, in represent_data
     node = self.yaml_representers[data_types[0]](self, data)
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
228, in represent_dict
     return self.represent_mapping(u'tag:yaml.org,2002:map', data)
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
128, in represent_mapping
     node_value = self.represent_data(item_value)
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
66, in represent_data
     node = self.yaml_multi_representers[data_type](self, data)
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
451, in represent_object
     return self.represent_mapping(tag+function_name, value)
....
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
62, in represent_data
     node = self.yaml_representers[data_types[0]](self, data)
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
320, in represent_unicode
     return self.represent_scalar(tag, data)
   File "/usr/lib64/python2.5/site-packages/yaml/representer.py", line 
94, in represent_scalar
     node = ScalarNode(tag, value, style=style)
RuntimeError: maximum recursion depth exceeded while calling a Python object


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.