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 — "static type has not been initialized" when type lives in another module · Issue #5210 · RustPython/RustPython Open Labels C-bugSomething isn't workingSomething isn't working DescriptionSummaryLet's say we have two separate native modules, import things my_things = things.get_all() for thing in my_things: thing.do_stuff() ExpectedI would expect this to work just fine, for ActualAn error occurs when calling WorkaroundA workaround here is to import ContextI'm creating a set of native modules to be provided to a rustpython interpreter as a sandbox for users. Asking users to import everything, even if they don't need it, is a little awkward. If there was a way I could, in my pymodule itself, intialize the static type easily, I would be happy to do that; I just couldn't find a way in the docs or examples or my journey through the source code (admittedly, my journey through the source code was to figure out the Activity
MetadataMetadataAssigneesLabelsC-bugSomething isn't workingSomething isn't working 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. |