[New-bugs-announce] [issue26316] Probable typo in Arg Clinic’s linear_format()

Martin Panter report at bugs.python.org
Mon Feb 8 21:32:33 EST 2016


New submission from Martin Panter:

The curly bracket separator is assigned to “curl”, but then the previous “curly” variable is tested:

https://hg.python.org/cpython/annotate/3.5/Tools/clinic/clinic.py#l202

name, curl, trailing = trailing.partition('}')
if not curly or name not in kwargs:
    ...

I presume the fix is to assign to “curly”, but I haven’t had a chance to figure out how to test it yet.

----------
components: Argument Clinic
messages: 259908
nosy: larry, martin.panter
priority: normal
severity: normal
stage: needs patch
status: open
title: Probable typo in Arg Clinic’s linear_format()
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26316>
_______________________________________


More information about the New-bugs-announce mailing list