[issue20349] Argument Clinic: error on __new__ or __init__ with no arguments

2014-01-31 Thread Larry Hastings

Larry Hastings added the comment:

parser_body_fields is initialized to () these days, which should make this 
problem go away.  Do you still have the issue in current trunk?

Again, if you'd attached a reproducable test case, I could have independently 
verified the problem, and that it was fixed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20349
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20349] Argument Clinic: error on __new__ or __init__ with no arguments

2014-01-31 Thread Tal Einat

Tal Einat added the comment:

This has indeed been fixed by the change you mentioned.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20349
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20349] Argument Clinic: error on __new__ or __init__ with no arguments

2014-01-22 Thread Tal Einat

New submission from Tal Einat:

This is caused by the code fields = list(parser_body_fields) under
if new_or_init: in CLanguage.output_templates().

'parser_body_fields' is initialized to None and may not be set before the
above mentioned code.

Attached is a patch which replaces the line with:

fields = list(parser_body_fields) if parser_body_fields is not None else []

--
components: Build, Demos and Tools
files: fix_new_or_init_without_arguments.clinic.py.patch
keywords: patch
messages: 208826
nosy: larry, taleinat
priority: normal
severity: normal
status: open
title: Argument Clinic: error on __new__ or __init__ with no arguments
type: behavior
versions: Python 3.4
Added file: 
http://bugs.python.org/file33626/fix_new_or_init_without_arguments.clinic.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20349
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com