Inline-Python icon indicating copy to clipboard operation
Inline-Python copied to clipboard

role Inline::Python::PythonParent can't be used in a class with :: in the name

Open drforr opened this issue 7 years ago • 1 comments

class Gtk::App does Inline::Python::PythonParent['main', 'gtk'] { }

Fails with:

invalid syntax (, line 1) trying to create subclass Gtk::App from main.gtk

Part of what needs to be done is probably:

$subclass_name ~~ s:g{'::'}='__'; # on line 450 Inline/Python.pm6

I'm working on a PR, you'll be notified if I get it working.

drforr avatar Mar 12 '17 17:03 drforr

https://github.com/niner/Inline-Python/pull/22 - Inline/Python.pm6 and t/inherit.t test added

drforr avatar Mar 12 '17 19:03 drforr