Index: branches/pyyaml3000/lib/yaml/parser.py
===================================================================
--- branches/pyyaml3000/lib/yaml/parser.py	(revision 52)
+++ branches/pyyaml3000/lib/yaml/parser.py	(revision 53)
@@ -99,4 +99,13 @@
                     return True
         return False
+
+    def peek(self):
+        # Get the next event.
+        if self.current_event is None:
+            try:
+                self.current_event = self.event_generator.next()
+            except StopIteration:
+                pass
+        return self.current_event
 
     def get(self):
