[New-bugs-announce] [issue28302] Unpacking numpy array give list

RAMESH PAMPANA report at bugs.python.org
Wed Sep 28 10:07:24 EDT 2016


New submission from RAMESH PAMPANA:

Unpacking numpy array gives list rather numpy array.

>>> import numpy as np
>>> a = np.array([1,2,3,4])
>>> x, *y, z = a
>>> type(a)
<class 'numpy.ndarray'>
>>> type(y)
<class 'list'>>
>> type(x)
<class 'numpy.int32'>

----------
components: Regular Expressions
messages: 277622
nosy: ezio.melotti, mrabarnett, rpampana
priority: normal
severity: normal
status: open
title: Unpacking numpy array give list
type: behavior
versions: Python 3.5

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


More information about the New-bugs-announce mailing list