[New-bugs-announce] [issue30399] Get rid of trailing comma if the repr() of BaseException
Serhiy Storchaka
report at bugs.python.org
Thu May 18 11:32:17 EDT 2017
New submission from Serhiy Storchaka:
The repr() of BaseException (and all exceptions that don't override __repr__) with a single argument contains a redundant trailing comma:
>>> BaseException('spam')
BaseException('spam',)
This is just an artefact of the implementation.
Proposed patch removes this comma.
----------
components: Interpreter Core
messages: 293928
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Get rid of trailing comma if the repr() of BaseException
type: enhancement
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30399>
_______________________________________
More information about the New-bugs-announce
mailing list