Title: py/bind: better pythonization · Issue #2 · go-python/py · GitHub
Open Graph Title: py/bind: better pythonization · Issue #2 · go-python/py
X Title: py/bind: better pythonization · Issue #2 · go-python/py
Description: go functions returning an error such as: func Get() (int, error) { return 42, nil } should be wrapped as: def get(): return 42 where a python Exception is raised if the go error is non-nil.
Open Graph Description: go functions returning an error such as: func Get() (int, error) { return 42, nil } should be wrapped as: def get(): return 42 where a python Exception is raised if the go error is non-nil.
X Description: go functions returning an error such as: func Get() (int, error) { return 42, nil } should be wrapped as: def get(): return 42 where a python Exception is raised if the go error is non-nil.
Opengraph URL: https://github.com/go-python/py/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"py/bind: better pythonization","articleBody":"`go` functions returning an `error` such as:\n\n``` go\nfunc Get() (int, error) {\n return 42, nil\n}\n```\n\nshould be wrapped as:\n\n``` python\ndef get():\n return 42\n```\n\nwhere a `python` `Exception` is raised if the `go` `error` is non-`nil`.\n","author":{"url":"https://github.com/sbinet","@type":"Person","name":"sbinet"},"datePublished":"2015-01-30T17:16:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2/py/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8f40a067-93dc-dd17-5374-7526203eaeca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9D2:1B6BE9:A9BB9B7:DBF8FA7:69765550 |
| html-safe-nonce | 0fd67b01c1ab2cf19506bedb3d207230db8cbf46b47946009af39ea1e2183073 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUQyOjFCNkJFOTpBOUJCOUI3OkRCRjhGQTc6Njk3NjU1NTAiLCJ2aXNpdG9yX2lkIjoiMzU3NzYwNzQ0NjA4MTE5NzM5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 552e463117240171ad105d840a0c4410f4fe45a2553b2a90d7d8901f40d2c46e |
| hovercard-subject-tag | issue:56059824 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/go-python/py/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c9782f72be8cb89f81a28de2da6a2fdc965b4e10396554a3588d269edf4c452/go-python/py/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c9782f72be8cb89f81a28de2da6a2fdc965b4e10396554a3588d269edf4c452/go-python/py/issues/2 |
| og:image:alt | go functions returning an error such as: func Get() (int, error) { return 42, nil } should be wrapped as: def get(): return 42 where a python Exception is raised if the go error is non-nil. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sbinet |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/go-python/py git https://github.com/go-python/py.git |
| octolytics-dimension-user_id | 7604679 |
| octolytics-dimension-user_login | go-python |
| octolytics-dimension-repository_id | 30081959 |
| octolytics-dimension-repository_nwo | go-python/py |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 30081959 |
| octolytics-dimension-repository_network_root_nwo | go-python/py |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width