[pypy-issue] [issue864] numpy: initialize empty/zeros/ones with a tuple as size argument - with test

timo tracker at bugs.pypy.org
Wed Sep 7 03:23:53 CEST 2011


New submission from timo <timonator at perpetuum-immobile.de>:

hello,

i just hacked together support for calling np.zeros((size,)) instead of 
np.zeros(size). feel free to clean up the helper function and please merge it 
for 1.6.1 :)

cheers
  - Timo

----------
files: pypy_numpy_tuples_shape_init.patch
messages: 3102
nosy: pypy-issue, timo
priority: feature
status: unread
title: numpy: initialize empty/zeros/ones with a tuple as size argument - with test

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue864>
________________________________________


More information about the pypy-issue mailing list