Ignore:
Timestamp:
05/29/11 22:51:30 (4 years ago)
Author:
xi
Message:

Clear cyclic references in the parser and the emitter to avoid extra GC calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/ext/_yaml.pyx

    r366 r377  
    311311        yaml_parser_delete(&self.parser) 
    312312        yaml_event_delete(&self.parsed_event) 
     313 
     314    def dispose(self): 
     315        pass 
    313316 
    314317    cdef object _parser_error(self): 
     
    993996    def __dealloc__(self): 
    994997        yaml_emitter_delete(&self.emitter) 
     998 
     999    def dispose(self): 
     1000        pass 
    9951001 
    9961002    cdef object _emitter_error(self): 
Note: See TracChangeset for help on using the changeset viewer.