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: patch-diff.githubusercontent.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:712ca90c-b556-fd76-53d5-2c1b7199d419 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B734:2B060B:832F12:B26E9D:696E7E23 |
| html-safe-nonce | f095e659a17f6045346239b2921ac74bb654029c7c034a384b8ae42be0fe6f6f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzM0OjJCMDYwQjo4MzJGMTI6QjI2RTlEOjY5NkU3RTIzIiwidmlzaXRvcl9pZCI6IjYxOTYzNjA5NzE5NTQzMjI5NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b6360b6663e39bf9a03cf3597e5ddbe15ffa4a79e74345d058d49360f89e3446 |
| 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 | fdad15fd2ad43212aa8b8be5f2c2725550f8374ceeeb154a999ad9145b43f3f7 |
| 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 | 27b23bc056eb973d350fc95afc848757edb9e7a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width