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 robin.stocker
Recipients robin.stocker
Date 2008-01-06.16:03:59
SpamBayes Score 0.0044235634
Marked as misclassified No
Message-id <1199635442.3.0.37215467231.issue1745@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch ports the implementation of keyword-only arguments
from revision 52491 back to trunk.

This is the first time I've worked on the C internals, so here are some
notes:

- test_collections is the only test which fails, because it tries to
call a function with more than 255 arguments, which results in a
SyntaxError because of the following added code in Python/ast.c. What
should be done about it?

    if (nposargs + nkwonlyargs > 255) {
        ast_error(n, "more than 255 arguments");
        return NULL;
    }

- The patch only adds what's in revision 52491. There is at least one
more change involving keyword-only arguments, for example issue1573. Are
there others? Should they be included in this patch or in a separate one?

- There are some changes which were generated, like Python/Python-ast.c
(which needs to be checked in separately).

- Is there documentation which needs to be updated?
History
Date User Action Args
2008-01-06 16:04:02robin.stockersetspambayes_score: 0.00442356 -> 0.0044235634
recipients: + robin.stocker
2008-01-06 16:04:02robin.stockersetspambayes_score: 0.00442356 -> 0.00442356
messageid: <1199635442.3.0.37215467231.issue1745@psf.upfronthosting.co.za>
2008-01-06 16:04:01robin.stockerlinkissue1745 messages
2008-01-06 16:04:00robin.stockercreate