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 larry
Recipients larry, zach.ware
Date 2014-01-24.21:26:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <52e2da77.2597420a.3347.ffffdb2f@mx.google.com>
In-reply-to
Content
Remove the winreg.

On Jan 24, 2014 8:02 AM, Zachary Ware <report@bugs.python.org> wrote:
>
>
> New submission from Zachary Ware: 
>
> The fix for #20189 broke simple expression defaults.  Specifically, with the latest #20172 patch applied, Clinic fails on winreg.c at winreg line 1351 with this traceback: 
>
> Error in file "PC\winreg.c" on line 1351: 
> Exception raised during parsing: 
> Traceback (most recent call last): 
>   File "Tools\clinic\clinic.py", line 1541, in parse 
>     parser.parse(block) 
>   File "Tools\clinic\clinic.py", line 2942, in parse 
>     self.state(line) 
>   File "Tools\clinic\clinic.py", line 3482, in state_parameter_docstring 
>     return self.next(self.state_parameter, line) 
>   File "Tools\clinic\clinic.py", line 2975, in next 
>     self.state(line) 
>   File "Tools\clinic\clinic.py", line 3321, in state_parameter 
>     bad = default != repr(eval(default)) 
>   File "<string>", line 1, in <module> 
> NameError: name 'winreg' is not defined 
>
> In this case, 'default' is 'winreg.KEY_WRITE'.  The 'default != repr(eval(default))' check cannot succeed with such a default even if winreg were defined, as it will return an int, 131078. 
>
> ---------- 
> assignee: larry 
> components: Demos and Tools 
> messages: 209094 
> nosy: larry, zach.ware 
> priority: normal 
> severity: normal 
> stage: needs patch 
> status: open 
> title: Argument Clinic: expression default arguments broken 
> type: behavior 
> versions: Python 3.4 
>
> _______________________________________ 
> Python tracker <report@bugs.python.org> 
> <http://bugs.python.org/issue20381> 
> _______________________________________
History
Date User Action Args
2014-01-24 21:26:19larrysetrecipients: + larry, zach.ware
2014-01-24 21:26:19larrylinkissue20381 messages
2014-01-24 21:26:18larrycreate