Title: Allow @constant to apply constants to other modules · Issue #40 · scijava/scyjava · GitHub
Open Graph Title: Allow @constant to apply constants to other modules · Issue #40 · scijava/scyjava
X Title: Allow @constant to apply constants to other modules · Issue #40 · scijava/scyjava
Description: I am finding myself duplicating the constant function to our other python components. This is WET. It would be cool if, in imglyb, we could write @scyjava.constant def some_constant(): return "the constant" And then access it with imglyb...
Open Graph Description: I am finding myself duplicating the constant function to our other python components. This is WET. It would be cool if, in imglyb, we could write @scyjava.constant def some_constant(): return "the ...
X Description: I am finding myself duplicating the constant function to our other python components. This is WET. It would be cool if, in imglyb, we could write @scyjava.constant def some_constant(): return "...
Opengraph URL: https://github.com/scijava/scyjava/issues/40
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow @constant to apply constants to other modules","articleBody":"I am finding myself duplicating the `constant` function to our other python components. This is WET.\r\n\r\nIt would be cool if, in imglyb, we could write\r\n\r\n```python3\r\n@scyjava.constant\r\ndef some_constant():\r\n return \"the constant\"\r\n```\r\nAnd then access it with `imglyb.some_constant`.","author":{"url":"https://github.com/gselzer","@type":"Person","name":"gselzer"},"datePublished":"2022-06-07T18:15:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/40/scyjava/issues/40"}
| 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:05a598a5-bbb7-b9d8-7b46-e42b51f298e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A67C:31F0A2:1777AF6:20EB06B:696A48B9 |
| html-safe-nonce | abc903d8d78f5eb5b66fca5a8b275f1ca9820619db968e7f8e2c4ca17cae7c9b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjdDOjMxRjBBMjoxNzc3QUY2OjIwRUIwNkI6Njk2QTQ4QjkiLCJ2aXNpdG9yX2lkIjoiNDI0Njk1MTI0MjczMTUwNTg0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 31e7d71db0a2dd45c0c30cc75a6f78f97754a6c5c9ec68326a9bf88539da34c1 |
| hovercard-subject-tag | issue:1263689215 |
| 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/scijava/scyjava/40/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7ea0053258aa598027a405ee906171af5fe2f679b5bd91f9572696bd4d74f87/scijava/scyjava/issues/40 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7ea0053258aa598027a405ee906171af5fe2f679b5bd91f9572696bd4d74f87/scijava/scyjava/issues/40 |
| og:image:alt | I am finding myself duplicating the constant function to our other python components. This is WET. It would be cool if, in imglyb, we could write @scyjava.constant def some_constant(): return "the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gselzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scyjava git https://github.com/scijava/scyjava.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 113442144 |
| octolytics-dimension-repository_nwo | scijava/scyjava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113442144 |
| octolytics-dimension-repository_network_root_nwo | scijava/scyjava |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width