-
Calling a function with a pointer parameter with a Python object implementing the buffer protocol does not appear to work when the object has zero elements. Is this intended behavior?
```pycon
>>>…
-
```
Traceback (most recent call last):
File "get_divs.py", line 27, in
divs[s_i, ti] = est.fit_transform(sub)
File "/zfsauton/home/dsutherl/scratch/anaconda/lib/python2.7/site-packages/sklear…
-
### 扁平序列
str、bytes、bytearray、memoryview、array.array
#### str
#### array.array
当list不好用的时候可以使用array.array,由于在内存中的紧凑结构,速度比list快很多,读写二进制文件速度很快,只能存储单一的基本数据类型
```python
array.array(typecode, iter…
-
https://github.com/micropython/micropython/releases/tag/v1.20
ISTM that the following changes might be interesting for us:
* addition of hex/fromhex methods to bytes/memoryview/bytearray (so we ca…
-
cdef struct Item:
double score
Item* left
Item* right
cdef Item[:,:,:] table = pool
^
---------------------------------------------------------…
-
What does this statement mean ' cdef double[:, ::1] Y = Y_np ' ? Why can't we directly use Y_np?
In line 338, Y_np -= np.mean(Y_np, 0). Shouldn't this be Y instead of Y_np?
-
I'd like to `Bitmap.deserialize` from a read-only mmap file which contains a large roaring bitmap. To do that I have to copy the bitmap in to a `bytes` by slicing it, because if I use a memoryview ins…
-
The type check for slice assignment to bytearray derived types seems to be a bit too strict:
```
class MyBytearray(bytearray): pass
a = MyBytearray(4)
b = MyBytearray(4)
a[0:4] = b
```
results in t…
-
**Version**: What redis-py and what redis version is the issue happening on?
I'm using redis-py 4.5.4, but I think all recent versions. The Redis version is not relevant, it'll be the same issue fo…
-
**Is your feature request related to a problem? Please describe.**
I'm writing some bindings for a C library called Miniaudio, where the user passes in a Python callback that gets called by my Cy…