Skip to content

Commit a4ff793

Browse files
author
Christopher Doris
committed
PyArray supports buffer protocol, object items, static unicode items
1 parent a61e8be commit a4ff793

File tree

4 files changed

+180
-407
lines changed

4 files changed

+180
-407
lines changed

src/old/PyArray.jl

Lines changed: 0 additions & 334 deletions
This file was deleted.

src/old/utils.jl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,6 @@ else
2222
end
2323

2424

25-
pybufferformat_to_type(fmt::AbstractString) =
26-
fmt == "b" ? Cchar :
27-
fmt == "B" ? Cuchar :
28-
fmt == "h" ? Cshort :
29-
fmt == "H" ? Cushort :
30-
fmt == "i" ? Cint :
31-
fmt == "I" ? Cuint :
32-
fmt == "l" ? Clong :
33-
fmt == "L" ? Culong :
34-
fmt == "q" ? Clonglong :
35-
fmt == "Q" ? Culonglong :
36-
fmt == "e" ? Float16 :
37-
fmt == "f" ? Cfloat :
38-
fmt == "d" ? Cdouble :
39-
fmt == "?" ? Bool :
40-
fmt == "P" ? Ptr{Cvoid} :
41-
fmt == "O" ? C.PyObjectRef :
42-
fmt == "=e" ? Float16 :
43-
fmt == "=f" ? Float32 : fmt == "=d" ? Float64 : error("not implemented: $(repr(fmt))")
4425

4526

4627
### TYPE UTILITIES

0 commit comments

Comments
 (0)