numpy/numpy — pull request #4113 by ahojnnes (2013-12-08 14:07:20+00:00)
Title: arraypad fixes

Previously it was not possible to do the following:

pad(array, 2, mode='constant', constant_values=1.1)
pad(array, 2.0, mode='constant', constant_values=1.1)
pad(array, np.array((2, 2)), mode='constant', constant_values=1.1)
pad(array, np.array((2, 2)), mode='constant', constant_values=np.array((1.1, 1.1)))
etc.