Custom Query (121 matches)


Show under each result:

Results (1 - 3 of 121)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#3 fixed allow_unicode missing in emitter? xi tim@…

Reported by tim@…, 11 years ago.


Trying to emit plain chars in utf8 (£ symbol for instance - \xc2\xa3) isn't working.. I think I've tracked it down to missing allow_unicode passing through to emitter and possibly the emit events resetting allow_unicode (I won't say I've fixed it as I've forced allow_unicode to True in various places to get it to emit plain's in utf-8 rather than double quoted escaped unicode). I'll post more tomorrow if I can get my fix cleaner. Looking good btw!!

#4 fixed Inf and NaN handling needs re-vamp xi murphy@…

Reported by murphy@…, 11 years ago.




On Python 2.3.5 (on Windows) it gives:

>>> yaml.load('...')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "c:\Python\Lib\site-packages\yaml\", line 73, in load
    return loader.get_data()
  File "c:\Python\Lib\site-packages\yaml\", line 40, in get_data
    return self.construct_document(self.get_node())
  File "c:\Python\Lib\site-packages\yaml\", line 24, in get_node
    return self.compose_document()
  File "c:\Python\Lib\site-packages\yaml\", line 38, in compose_document
  File "c:\Python\Lib\site-packages\yaml\", line 102, in get_event
    self.current_event =
  File "c:\Python\Lib\site-packages\yaml\", line 123, in parse_stream
  File "c:\Python\Lib\site-packages\yaml\", line 116, in check_token
  File "c:\Python\Lib\site-packages\yaml\", line 191, in fetch_more_tokens
    if ch == u'.' and self.check_document_end():
  File "c:\Python\Lib\site-packages\yaml\", line 704, in check_document_end
    prefix = self.peek(4)
  File "c:\Python\Lib\site-packages\yaml\", line 125, in peek
    return self.buffer[self.pointer+index]
IndexError: string index out of range
#5 fixed PYYAML3000 does not load recursive structures. xi pkmurphy@…

Reported by pkmurphy@…, 11 years ago.


PYYAML does not load any structure with an anchor that contains its own alias. For example:

ourconst2 = "---\n!!seq &base [ *base ] \n...\n"; print ourconst2; for event in yaml.parse(ourconst2): print event ourload = yaml.safe_load(ourconst2) print ourload;

1 2 3 4 5 6 7 8 9 10 11
Note: See TracQuery for help on using queries.