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
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
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
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
Laurent Gautier added the comment:
Bump.
What are the next steps here ?
--
___
Python tracker
<https://bugs.python.org/issue34778>
___
___
Python-bugs-list m
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
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
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
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
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
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
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
12 matches
Mail list logo