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.
1 parent 7be3398 commit 252d2d9Copy full SHA for 252d2d9
src/Core/Py.jl
@@ -137,6 +137,7 @@ Py(x::Py) = x
137
Py(x::Nothing) = pybuiltins.None
138
Py(x::Bool) = x ? pybuiltins.True : pybuiltins.False
139
Py(x::Union{String,SubString{String},Char}) = pystr(x)
140
+Py(x::AbstractString) = Py(String(x))
141
Py(x::Base.CodeUnits{UInt8,String}) = pybytes(x)
142
Py(x::Base.CodeUnits{UInt8,SubString{String}}) = pybytes(x)
143
Py(x::Tuple) = pytuple_fromiter(x)
0 commit comments