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 paulhankin
Recipients
Date 2007-04-01.18:00:50
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Patched code compiles and passes test suite, and looks cleaner than the
code it replaces. It works on the cases the bug report.

There should be unit tests added to Lib/test/test_getargs2; I've skimmed
the tests in there and can't see any that test combinations of kw, tuple
and positional arguments. The patch replaces significant chunks of arg
parsing code, so I'd be more convinced of its correctness if there were
some unit tests. Certainly there should be at least one test for the
bug the patch fixes.

The code is 99% written in the prevailing style, but:
Source contains several over-long lines, and non-standard comments, ie
you should use
 /* XXX something .. */
and not
 /* ??? something .. ??? */
Also there are a few minor spacing inconsistencies which would be nice
to tidy up.

The diff is one level too high up - it contains the directory Python2.5/
It applies cleanly to the trunk though, it just makes it slightly more difficult
to apply the patch.

The original bug report requests a post to python-dev describing the new
error messages. I suggest this post includes all cases where
the new code produces a different message than the old.

I suggest to proceed:
1. Add unit tests, both for the bug-fix and for existing functionality
   which has been modified
2. Fix up comments and long lines
3. Check with python-dev about new error messages
History
Date User Action Args
2007-08-23 15:57:50adminlinkissue1691070 messages
2007-08-23 15:57:50admincreate