Changes between Version 17 and Version 18 of PyYAMLDocumentation
- Timestamp:
- 05/07/06 04:06:27 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PyYAMLDocumentation
v17 v18 1179 1179 ==== Emitter interface ==== 1180 1180 1181 {{{ 1182 #!python 1183 emit(events, stream=None, Dumper=Dumper, 1184 canonical=None, 1185 indent=None, 1186 width=None, 1187 allow_unicode=None, 1188 line_break=None) 1189 1190 Emitter.emit(event) 1191 }}} 1192 1193 '''`emit(events, stream=None)`''' serializes the given sequence of parsing `events` and 1194 write them to the `stream`. if `stream` is `None`, it returns the produced stream. 1195 1196 '''`Emitter.emit(event)`''' serializes the given `event` and write it to the output stream. 1197 1181 1198 1182 1199 ==== Serializer interface ==== 1200 1201 {{{ 1202 #!python 1203 serialize(node, stream=None, Dumper=Dumper, 1204 encoding='utf-8', 1205 explicit_start=None, 1206 explicit_end=None, 1207 version=None, 1208 tags=None, 1209 canonical=None, 1210 indent=None, 1211 width=None, 1212 allow_unicode=None, 1213 line_break=None) 1214 serialize_all(nodes, stream=None, Dumper=Dumper, ...) 1215 1216 Dumper.open() 1217 Dumper.serialize(node) 1218 Dumper.close() 1219 }}} 1220 1221 '''`serialize(node, stream=None)`''' serializes the given representation graph into the `stream`. 1222 If `stream` is `None`, it returns the produced stream. 1223 1224 '''`Dumper.open()`''' emits `StreamStartEvent`. 1225 1226 '''`Dumper.serialize(node)`''' serializes the given representation graph into the output stream. 1227 1228 '''`Dumper.close()`''' emits `StreamEndEvent`. 1183 1229 1184 1230
