This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nnorwitz
Recipients christian.heimes, nnorwitz, paulhankin, rupole
Date 2008-02-26.05:38:41
SpamBayes Score 4.2394706e-05
Marked as misclassified No
Message-id <1204004327.0.0.366800703821.issue1691070@psf.upfronthosting.co.za>
In-reply-to
Content
I looked over the new patch Christian uploaded and I think I understand
what's going on.  I didn't do a through comparison, but if all the tests
pass, I think that's good enough.  Good work!

Here are the issues I would like to see fixed before check in (all small
and easy):
 * Fix the format nits.  There were missing spaces around = and ==.
 * Remove the comment that says:
+				 * XXX TypeError doesn't seem right for this,
+				 * maybe create an ArgumentError ???
+				 * XXX Arg positions currently reported as
+				 * 1-based, contrary to most things in
+				 * python ???

    The first line of that comment should stay.
 * Expand the comment that says: Maybe skip this in debug build ?
    Add a XXX or TODO and explain why.  I think it's just that it would
give extra testing.  I'm not sure it's worth it since that would be
added code, but it's a valid question.

 * Verify that it's faster by compiling python in a release build (ie,
optimized, not debug with assertions) and do something that would
trivially execute the code.  For example:

  * ''.split()
  * ''.split('', 1)
  * (1,).index(1)
  * (1,).index(1, 0, 1)

That might be a decent set.  I just grepped for PyArg_ParseTuple
Objects/*.c and found some common cases where this code would be used. 
It would be great to add the timing info from the test cases above (as
well as the pybench results) to the check in message.

 * In the test do a single import at the top of the file.
 * Use raise Error('') instead of raise Error, '' in the test.  Actually
instead of raising an exception, call self.fail(error_message)
History
Date User Action Args
2008-02-26 05:38:47nnorwitzsetspambayes_score: 4.23947e-05 -> 4.2394706e-05
recipients: + nnorwitz, rupole, christian.heimes, paulhankin
2008-02-26 05:38:47nnorwitzsetspambayes_score: 4.23947e-05 -> 4.23947e-05
messageid: <1204004327.0.0.366800703821.issue1691070@psf.upfronthosting.co.za>
2008-02-26 05:38:45nnorwitzlinkissue1691070 messages
2008-02-26 05:38:43nnorwitzcreate