Rev 4717: Check _annotator_pyx for missing except clauses. in http://bazaar.launchpad.net/~jameinel/bzr/2.0.4-pyrex-propagation

John Arbash Meinel john at arbash-meinel.com
Mon Jan 4 22:30:12 GMT 2010


At http://bazaar.launchpad.net/~jameinel/bzr/2.0.4-pyrex-propagation

------------------------------------------------------------
revno: 4717
revision-id: john at arbash-meinel.com-20100104222957-qxulyfwqtb1s7hw7
parent: john at arbash-meinel.com-20100104222153-k9rs2murmdtthzkl
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.0.4-pyrex-propagation
timestamp: Mon 2010-01-04 16:29:57 -0600
message:
  Check _annotator_pyx for missing except clauses.
  
  Find one function, but document why it doesn't raise an exception.
-------------- next part --------------
=== modified file 'bzrlib/_annotator_pyx.pyx'
--- a/bzrlib/_annotator_pyx.pyx	2009-07-08 17:09:03 +0000
+++ b/bzrlib/_annotator_pyx.pyx	2010-01-04 22:29:57 +0000
@@ -84,6 +84,13 @@
 
 
 cdef PyObject *_next_tuple_entry(object tpl, Py_ssize_t *pos):
+    """Return the next entry from this tuple.
+
+    :param tpl: The tuple we are investigating, *must* be a PyTuple
+    :param pos: The last item we found. Will be updated to the new position.
+    
+    This cannot raise an exception, as it does no error checking.
+    """
     pos[0] = pos[0] + 1
     if pos[0] >= PyTuple_GET_SIZE(tpl):
         return NULL



More information about the bazaar-commits mailing list