News for hackers. Stuff that matters.
Re:Grumpy: Go running Python by weberc2 on Wednesday January 04, 2017 @01:56PM (#13321022)
I tried a simple `http.Get()` example, but the resultant `Response` object appears to not allow access to any of the struct fields as attributes. How does one access a Go object's fields from Python? For example, I want to `io.Copy(os.Stdout, rsp.Body)`.
Re:Grumpy: Go running Python by trotterdylan on Wednesday January 04, 2017 @03:20PM (#13321714)
Unfortunately the native interface is still pretty immature so I can't guarantee things will work as they should. In this case, I think the problem is that you have a *Response object which is not itself a struct. I've rewritten this part of the code a couple times and I think this functionality was lost. I've filed: https://github.com/google/grumpy/issues/13
Re:Grumpy: Go running Python by trotterdylan on Wednesday January 04, 2017 @03:25PM (#13321752)
Whoops, just noticed you (or somebody) had already filed it: https://github.com/google/grumpy/issues/12
Re:Grumpy: Go running Python by weberc2 on Wednesday January 04, 2017 @03:27PM (#13321758)
Yeah, that was me. I should have updated my post here accordingly. Apologies for the inconvenience!
Re:Grumpy: Go running Python by trotterdylan on Wednesday January 04, 2017 @03:29PM (#13321772)
It's all good. Thanks for filing the issue. I'll get that fixed.