On 2014-06-14 14:40:29, Nadav Horesh wrote:
> TypeError: pad() missing 1 required positional argument: 'pad_width'
I've added a PR here for further discussion:
https://github.com/numpy/numpy/pull/4808
Stéfan
___
NumPy-Discussion mailing list
NumPy-Dis
On 2014-06-14 14:40:29, Nadav Horesh wrote:
> This is most likely a documentation error since:
>
> In [7]: np.pad(a)
> ---
> TypeError Traceback (most recent call last)
> in ()
> > 1 np.pad
nal argument: 'pad_width'
Nadav
From: numpy-discussion-boun...@scipy.org
on behalf of Stéfan van der Walt
Sent: 14 June 2014 13:39
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] numpy 1.9b1 bug in pad function?
Hi Nadav
O
Hi Nadav
On Sat, Jun 14, 2014 at 8:11 AM, Nadav Horesh wrote:
> In [4]: np.__version__
> Out[4]: '1.9.0b1'
>
> The documentation specify that the mode parameter is optional
I don't see the optional specification in the docstring. Perhaps
because mode=None in the signature?
The reason is that t
In [1]: import numpy as np
In [2]: a = np.arange(4)
In [3]: np.pad(a,2)
---
ValueError Traceback (most recent call last)
in ()
> 1 np.pad(a,2)
/usr/lib64/python3.3/site-packages/numpy/lib