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 <rep...@bugs.python.org>
<http://bugs.python.org/issue28302>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to