Skip to content
murmot

Results for “python numpy array example api code cap open site:mail.python.org file”

  • mail.python.org

    [Numpy-discussion] NEP: array API standard adoption (NEP 47)

    Feb 21, 2021 · The main > > purpose of this API is to be able to write code that is portable to > > other > > array/tensor libraries like CuPy, PyTorch, JAX, TensorFlow, Dask, and > > MXNet. > > > > We expect this NEP to remain in draft state for quite a while, while > > we're > > gaining experience with using it in downstream libraries, discuss > > adding it ...

  • mail.python.org

    [Numpy-discussion] NEP: array API standard adoption (NEP 47)

    The reason to add more than the minimum required functionality would be that it's too hard to hide the numpy-specific extras. E.g., if we'd do `np.array_api.int32 = np.int32` then that dtype would have methods and behavior that's NumPy-specific.

  • mail.python.org

    Mailman 3 Search results for "closing csv file in numpy ...

    I ran the tests using the `runtests.py` script: *seed+1000, using 'python runtests.py -n' in the source directory:* 236 failed, 12881 passed, 1248 skipped, 585 deselected, 84 xfailed, 7 xpassed Most of the failures are in scipy.stats: *seed+1000, using 'python runtests.py -n -s stats' in the source directory:* 203 failed, 1034 passed, 4 skipped ...

  • mail.python.org

    [Numpy-discussion] example reading binary Fortran file

    Next message (by thread): [Numpy-discussion] example reading binary Fortran file.def lread(f,fourBeginning,fourEnd,*tuple): from struct import unpack """Reading a Fortran binary file in litte-endian""". if fourBeginning: f.seek(4,1) for array in tuple

  • mail.python.org

    [Numpy-svn] r2924 - in trunk/numpy: . core/src

    Inputs: + object - an array, any object exposing the array interface, any + object whose __array__ method returns an array, or any + (nested) sequence. + dtype - The desired data-type for the array.+The file argument can be an open file or a string with the name of a +file to read from.

  • mail.python.org

    [Python-bugs-list] [ python-Bugs-548651 ] Fix the METH_CLASS ...

    Dec 9, 2002 · The docs indeed > disagree with the code, and we agree that the code should > be fixed. This requires some work: we'll have to introduce a > new kind of descriptor that wraps a PyMethodDef pointer > and creates a PyCFunction in response to the p_descr_get > call with the type as self.

  • mail.python.org

    [python-win32] How to write a COM Server implementing ...

    It seems I *can* make this work with the pythoncom test object. I created a structure with no GUID in a TLB with a name StructWithoutUUID. Then, I used the code at the end of this message as a quick hack to try out the SetGuid and the output is: """ as expected, failed to create the record normally: The structure 'StructWithoutUUID' is not defined in module '<module 'win32com.gen_py.6BCD ...