- Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The package does not allow to use a more general string type (such as InlineSring, which are often used by CSV.jl )
using InlineStrings using PythonCall re = pyimport("re") # s is a String and all is fine: s = "abc123def456ghi789" re.findall("[a-z]", s) # s is an InlineString s = InlineString("abc123def456ghi789") re.findall("[a-z]", s) The last line errors with:
ERROR: Python: TypeError: expected string or bytes-like object
A simple
Py(s::AbstractString) = Py(String(s)) should do the trick.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working