[Numpy-discussion] Python 3 porting

Dag Sverre Seljebotn dagss@student.matnat.uio...
Sun Feb 21 13:45:16 CST 2010


Pauli Virtanen wrote:
> Hi,
>
> The test suite passes now on Pythons 2.4 - 3.1. Further testing is very
> welcome -- also on Python 2.x. Please check that your favourite software
> still builds and works with SVN trunk Numpy.
>
> Currently, Scipy has some known failures because of
>
> (i) removed new= keyword in numpy.histogram
> (ii) Cython supports only native size/alignment PEP 3118 buffers, and
>      Numpy arrays are most naturally expressed in the standardized
>      sizes. Supporting the full struct module alignment stuff appears
>      to be a slight PITA. I'll try
Hmm. How much would it help if Cython dealt with standardized sizes when 
possible? Is Cython the only reason to have NumPy export native 
size/alignment?

Also, wouldn't it be a pain to export align=True dtypes in standard 
size/alignment?

(As a quick hack in SciPy, there's always np.ndarray[int, cast=True] to 
skip the format string checking (size is still checked).)

Dag Sverre


More information about the NumPy-Discussion mailing list