~mnordhoff/bzr/st-size-exceptions

Viewing all changes in revision 4764.

  • Committer: Matt Nordhoff
  • Date: 2009-10-22 08:22:27 UTC
  • Revision ID: mnordhoff@mattnordhoff.com-20091022082227-tje25q23zvcpaqfp
Make the Python version raise a TypeError, and do the length check before the type checks, as the C version does.

Use the C version's error message too; I like it better.

Adjust the test suite as well.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: