[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2021-10-03 Thread Laurent Gautier
Laurent Gautier added the comment: Bump. I am still stumbling on that issue. I have a workaround by importing numpy but that's a rather large dependency for that one little thing. I see that the related issue https://bugs.python.org/issue35845 opened later has later discussion en

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2019-08-31 Thread Laurent Gautier
Laurent Gautier added the comment: Bump. Is there anything I could do to move this forward (as in write and submit a patch for review) ? -- ___ Python tracker <https://bugs.python.org/issue34

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2019-02-02 Thread Laurent Gautier
Laurent Gautier added the comment: > General support for strides in cast(), i.e. a zero-copy view for > non-contiguous arrays does not seem possible because buf.ptr is > moved around. Even NumPy does not support that: I'd be happy enough with zero-copy `cast()` of f-continguou

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2018-12-30 Thread Laurent Gautier
Laurent Gautier added the comment: Wait. Isn't a `memoryview` memerely a Python object for a buffer inferface, whatever its valid attributes or flags might be ? The perceived oddness that lead to the addition of the keyword 'shape' was a good initial instinct that somethi

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2018-12-29 Thread Laurent Gautier
Laurent Gautier added the comment: Bump. What are the next steps here ? -- ___ Python tracker <https://bugs.python.org/issue34778> ___ ___ Python-bugs-list m

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2018-09-29 Thread Laurent Gautier
Laurent Gautier added the comment: Wouldn't a contiguity argument ('C' or 'F') be simpler ? (Independently, an argument strides is likely also missing from "cast"). Do you know what are the next possible steps here ? Bring this to th

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2018-09-28 Thread Laurent Gautier
Laurent Gautier added the comment: @mattip : do you mean that it can currently be achieved by calling `cast` with a specific shape parameter ? If the case, how so ? -- ___ Python tracker <https://bugs.python.org/issue34

[issue34778] Memoryview for column-major (f_contiguous) arrays from bytes impossible to achieve

2018-09-23 Thread Laurent Gautier
New submission from Laurent Gautier : The buffer protocol is accounting for the row-major or column-major arrays, and that information is shown in the attributes, `c_contiguous` and `f_contiguous` respectively, of a memoryview object. Using the method `cast` allows one to specify a shape but

[issue18323] 'GzipFile' object has no attribute 'extrastart'

2013-06-28 Thread Laurent Gautier
New submission from Laurent Gautier: When creating a `gzip.GzipFile` using the named parameter `fileobj` rather than filename, iterating over it is broken: ``` AttributeError: 'GzipFile' object has no attribute 'extrastart' ``` The short example below is demon

[issue14398] bz2.BZ2DEcompressor.decompress fail on large files

2012-03-24 Thread Laurent Gautier
Laurent Gautier added the comment: Wow! Quick follow-up. The data file is about 1.6Gb. Is there a preferred way to pass it on (I suspect that the bug tracker is not the preferred way). The code goes like: import bz2 f = file("foobar.bz2", mode="rb") src_buf = f

[issue14398] bz2.BZ2DEcompressor.decompress fail on large files

2012-03-24 Thread Laurent Gautier
New submission from Laurent Gautier : The call ends with: Objects/stringobject.c:3884: bad argument to internal function sys.version: '2.7.2 (default, Jun 13 2011, 15:14:50) \n[GCC 4.4.5]' (on 64bit Linux) -- messages: 156698 nosy: Laurent.Gautier priority: normal severi

[issue2437] Distutils runtime_library_dirs broken on Windows

2008-05-18 Thread Laurent Gautier
Laurent Gautier <[EMAIL PROTECTED]> added the comment: The bug is still here with Python 2.5.2. I anyone want to have it work urgently, there is a quick but very ugly fix: add g['CC'] = 'gcc' into the function _init_nt() in the file Lib\distutils\sysconfi