GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Support inheriting Go objects in Python and overriding methods/attributes? · Issue #247 · go-python/gpython Open DescriptionI am exploring gpython to embed Python scripting in a Go project. I have the following question regarding object interoperability:
For example, in Python I would like to do something like: # Hypothetical example class PyVacation(MyGoVacation): def new_method(self): return "Python override" @property def new_attr(self): return "Python attribute" Currently, I am able to expose Go objects to gpython and call Go methods, but I am unsure if inheritance is supported. Could you clarify whether this is possible, and if not, are there recommended workarounds (e.g., composition or monkey-patching) to extend Go objects in Python? Thank you for your help! ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |