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 — Multiple class definitions in the same file raise error "invalid syntax" · Issue #257 · go-python/gpython Open DescriptionHey, there. It seems like it's not possible to define multiple classes in a single Python file with Go: context := py.NewContext(py.DefaultContextOpts()) data, _ := fs.ReadFile(g.FS, "math_stuff.py") _, err := py.RunSrc(context, string(data), "run", nil) log.Println(err)
class A: pass class B: pass Gives me the error: I'm testing with the latest commit. Activity
MetadataMetadataAssigneesLabelsNo 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. |