We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@py
1 parent e9277ef commit d93e99aCopy full SHA for d93e99a
src/PyMacro/PyMacro.jl
@@ -899,18 +899,6 @@ macro py(ex)
899
esc(py_macro(ex, __module__, __source__))
900
end
901
902
-macro py(keyword, modulename, ex)
903
- keyword == :from || return :( nothing )
904
-
905
- d = Dict(isa(a.args[1], Symbol) ? a.args[1] => a.args[1] : a.args[1].args[1] => a.args[2] for a in ex.args)
906
- vars = Expr(:tuple, values(d)...)
907
- imports = Tuple(keys(d))
908
909
- esc(quote
910
- $vars = pyimport($(string(modulename)) => $(string.(imports)))
911
- end)
912
-end
913
914
export @py
915
916
0 commit comments