Modify

Ticket #4 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Inf and NaN handling needs re-vamp

Reported by: murphy@… Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:
Cc:

Description

Try:

yaml.load('...')

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\__init__.py", line 73, in load
    return loader.get_data()
  File "c:\Python\Lib\site-packages\yaml\constructor.py", line 40, in get_data
    return self.construct_document(self.get_node())
  File "c:\Python\Lib\site-packages\yaml\composer.py", line 24, in get_node
    return self.compose_document()
  File "c:\Python\Lib\site-packages\yaml\composer.py", line 38, in compose_document
    self.get_event()
  File "c:\Python\Lib\site-packages\yaml\parser.py", line 102, in get_event
    self.current_event = self.event_generator.next()
  File "c:\Python\Lib\site-packages\yaml\parser.py", line 123, in parse_stream
    StreamEndToken):
  File "c:\Python\Lib\site-packages\yaml\scanner.py", line 116, in check_token
    self.fetch_more_tokens()
  File "c:\Python\Lib\site-packages\yaml\scanner.py", line 191, in fetch_more_tokens
    if ch == u'.' and self.check_document_end():
  File "c:\Python\Lib\site-packages\yaml\scanner.py", line 704, in check_document_end
    prefix = self.peek(4)
  File "c:\Python\Lib\site-packages\yaml\reader.py", line 125, in peek
    return self.buffer[self.pointer+index]
IndexError: string index out of range

Attachments

Change History

comment:1 Changed 8 years ago by xi

  • Status changed from new to closed
  • Resolution set to fixed

Thanks. Fixed in [138].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.