René's URL Explorer Experiment


Title: Network instance is optional in many classes, which requires lot of checking · Issue #511 · canopen-python/canopen · GitHub

Open Graph Title: Network instance is optional in many classes, which requires lot of checking · Issue #511 · canopen-python/canopen

X Title: Network instance is optional in many classes, which requires lot of checking · Issue #511 · canopen-python/canopen

Description: With reference to #509 - lots of classes depend on an instance of class Network and have it as an attribute in order to communicate with the CAN bus. Examples are SdoBase(), PdoBase(), NmtBase() and others. Their constructor does not req...

Open Graph Description: With reference to #509 - lots of classes depend on an instance of class Network and have it as an attribute in order to communicate with the CAN bus. Examples are SdoBase(), PdoBase(), NmtBase() an...

X Description: With reference to #509 - lots of classes depend on an instance of class Network and have it as an attribute in order to communicate with the CAN bus. Examples are SdoBase(), PdoBase(), NmtBase() an...

Opengraph URL: https://github.com/canopen-python/canopen/issues/511

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Network instance is optional in many classes, which requires lot of checking","articleBody":"With reference to #509 - lots of classes depend on an instance of `class Network` and have it as an attribute in order to communicate with the CAN bus. Examples are `SdoBase()`, `PdoBase()`, `NmtBase()` and others. Their constructor does not require a `Network` argument so the formal type of the attribute is `network: Optional[Network] = None`.\r\n\r\nThese attributes are set when a `RemoteNode()` is created and the reference to the network is injected from `RemoteNode.associate_network()`.\r\n\r\nThe effect of this is that we'll need a lot of checks all over the code to ensure network is properly set. E.g. as here from `class EmcyProducer`:\r\n\r\n```python\r\n    def send(self, code: int, register: int = 0, data: bytes = b\"\"):\r\n        payload = EMCY_STRUCT.pack(code, register, data)\r\n        if self.network is None:   # This is needed to not fail the send_message line\r\n            raise RuntimeError(\"A Network is required\")\r\n        self.network.send_message(self.cob_id, payload)\r\n```\r\n\r\nIs is a requirement to be able to create these class instances without a functional Network? We could make a default Network-like object that will emulate network operations if we need it to work without an actual CAN bus network.\r\n\r\nWhat do you think we should do here?","author":{"url":"https://github.com/sveinse","@type":"Person","name":"sveinse"},"datePublished":"2024-07-10T09:56:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/511/canopen/issues/511"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2e70471f-01e5-cf37-ef23-effb53b3b9ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id85E2:355826:650E5A6:8670D79:6A5DE43C
html-safe-nonced28e2f390fa26e6d41416c59fd4d8e2fb4efce0b17712885cbfdc9f0dca7c972
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUUyOjM1NTgyNjo2NTBFNUE2Ojg2NzBENzk6NkE1REU0M0MiLCJ2aXNpdG9yX2lkIjoiNjEwNDg2MTI2MzU3MzkzNTE2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace1e08055ea0d10ae4a2a58770c8306d666168c55a21f198f6be7b6da7c0a2ea4
hovercard-subject-tagissue:2400288588
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/canopen-python/canopen/511/issue_layout
twitter:imagehttps://opengraph.githubassets.com/adad7fc40a899dd1acd866b5875f02424b3c3db2326633d009ed74cf0f8b3223/canopen-python/canopen/issues/511
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/adad7fc40a899dd1acd866b5875f02424b3c3db2326633d009ed74cf0f8b3223/canopen-python/canopen/issues/511
og:image:altWith reference to #509 - lots of classes depend on an instance of class Network and have it as an attribute in order to communicate with the CAN bus. Examples are SdoBase(), PdoBase(), NmtBase() an...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesveinse
hostnamegithub.com
expected-hostnamegithub.com
Nonef068985268f2a1e272fe40dd37a3352a16d337d57ec570e56da6c2346e179f59
turbo-cache-controlno-preview
go-importgithub.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git
octolytics-dimension-user_id200581454
octolytics-dimension-user_logincanopen-python
octolytics-dimension-repository_id68737600
octolytics-dimension-repository_nwocanopen-python/canopen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id68737600
octolytics-dimension-repository_network_root_nwocanopen-python/canopen
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee36408244bcd0ded36f1cfba5db8e97f99c2117e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/canopen-python/canopen/issues/511#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcanopen-python%2Fcanopen%2Fissues%2F511
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcanopen-python%2Fcanopen%2Fissues%2F511
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=canopen-python%2Fcanopen
Reloadhttps://github.com/canopen-python/canopen/issues/511
Reloadhttps://github.com/canopen-python/canopen/issues/511
Reloadhttps://github.com/canopen-python/canopen/issues/511
Please reload this pagehttps://github.com/canopen-python/canopen/issues/511
canopen-python https://github.com/canopen-python
canopenhttps://github.com/canopen-python/canopen
Notifications https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Fork 359 https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Star 560 https://github.com/login?return_to=%2Fcanopen-python%2Fcanopen
Code https://github.com/canopen-python/canopen
Issues 53 https://github.com/canopen-python/canopen/issues
Pull requests 20 https://github.com/canopen-python/canopen/pulls
Discussions https://github.com/canopen-python/canopen/discussions
Actions https://github.com/canopen-python/canopen/actions
Projects https://github.com/canopen-python/canopen/projects
Security and quality 0 https://github.com/canopen-python/canopen/security
Insights https://github.com/canopen-python/canopen/pulse
Code https://github.com/canopen-python/canopen
Issues https://github.com/canopen-python/canopen/issues
Pull requests https://github.com/canopen-python/canopen/pulls
Discussions https://github.com/canopen-python/canopen/discussions
Actions https://github.com/canopen-python/canopen/actions
Projects https://github.com/canopen-python/canopen/projects
Security and quality https://github.com/canopen-python/canopen/security
Insights https://github.com/canopen-python/canopen/pulse
#525https://github.com/canopen-python/canopen/pull/525
Network instance is optional in many classes, which requires lot of checkinghttps://github.com/canopen-python/canopen/issues/511#top
#525https://github.com/canopen-python/canopen/pull/525
discussionhttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22discussion%22
https://github.com/sveinse
sveinsehttps://github.com/sveinse
on Jul 10, 2024https://github.com/canopen-python/canopen/issues/511#issue-2400288588
#509https://github.com/canopen-python/canopen/issues/509
discussionhttps://github.com/canopen-python/canopen/issues?q=state%3Aopen%20label%3A%22discussion%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.