-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathJlWrap.jl
More file actions
75 lines (67 loc) · 1.24 KB
/
JlWrap.jl
File metadata and controls
75 lines (67 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
"""
module PythonCall.JlWrap
Defines the Python object wrappers around Julia objects (`juliacall.AnyValue` etc).
"""
module JlWrap
using ..PythonCall
using ..Utils
using ..NumpyDates: NumpyDates
using ..C
using ..Core
using ..Convert
using ..GC: GC
using ..GIL
import ..PythonCall:
pyfunc,
pyclassmethod,
pystaticmethod,
pyproperty,
pyjl,
pyjltype,
pyisjl,
pyjlvalue,
pyjlraw,
pybinaryio,
pytextio,
PyObjectVector,
PyObjectMatrix,
PyObjectArray
using Base: @propagate_inbounds, allocatedinline
import ..Core: Py
include("C.jl")
include("base.jl")
include("raw.jl")
include("any.jl")
include("iter.jl")
include("type.jl")
include("module.jl")
include("io.jl")
include("number.jl")
include("objectarray.jl")
include("array.jl")
include("vector.jl")
include("dict.jl")
include("set.jl")
include("callback.jl")
function __init__()
init_base()
init_raw()
init_any()
init_iter()
init_type()
init_module()
init_io()
init_number()
init_array()
init_vector()
init_dict()
init_set()
init_callback()
# add packages to juliacall
jl = pyjuliacallmodule
jl.Core = Base.Core
jl.Base = Base
jl.Main = Main
jl.PythonCall = PythonCall
end
end