[issue35421] Expected result is not clear in case of list.append(list)

Lingaraj Gowdar report at bugs.python.org
Wed Dec 5 14:36:51 EST 2018


New submission from Lingaraj Gowdar <lings143 at gmail.com>:

Currently the output of below append cannot be used for practical purpose, This jira is to get the expectation for a case in append.

>>> a=[1,2]
>>> a.append(a)
>>> a
[1, 2, [...]]
>>>

----------
assignee: terry.reedy
components: IDLE
messages: 331148
nosy: Lingaraj Gowdar, terry.reedy
priority: normal
severity: normal
status: open
title: Expected result is not clear in case of list.append(list)
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35421>
_______________________________________


More information about the Python-bugs-list mailing list