aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-20 00:39:41 -0500
committerBenjamin Peterson <benjamin@python.org>2013-03-20 00:39:41 -0500
commit605a774a98fa774b275e2813f4fee8c1d358d324 (patch)
tree3f15fa3fcc6a06f96cb207bdb09154a9eec3ffa3 /Grammar
parentfix compiler warning (diff)
downloadcpython-605a774a98fa774b275e2813f4fee8c1d358d324.tar.gz
cpython-605a774a98fa774b275e2813f4fee8c1d358d324.tar.bz2
cpython-605a774a98fa774b275e2813f4fee8c1d358d324.zip
Backed out changeset 521232b05b97
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar3
1 files changed, 1 insertions, 2 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index 2a361ece4e2..d7aaffd60e1 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -24,8 +24,7 @@ decorators: decorator+
decorated: decorators (classdef | funcdef)
funcdef: 'def' NAME parameters ['->' test] ':' suite
parameters: '(' [typedargslist] ')'
-typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])*
- [',' '/' (',' tfpdef ['=' test])*] [','
+typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [','
['*' [tfpdef] (',' tfpdef ['=' test])* [',' '**' tfpdef] | '**' tfpdef]]
| '*' [tfpdef] (',' tfpdef ['=' test])* [',' '**' tfpdef] | '**' tfpdef)
tfpdef: NAME [':' test]