René's URL Explorer Experiment


Title: TypeManager.pointer_attribute cannot be safely used in nested CustomType. · Issue #480 · Source-Python-Dev-Team/Source.Python · GitHub

Open Graph Title: TypeManager.pointer_attribute cannot be safely used in nested CustomType. · Issue #480 · Source-Python-Dev-Team/Source.Python

X Title: TypeManager.pointer_attribute cannot be safely used in nested CustomType. · Issue #480 · Source-Python-Dev-Team/Source.Python

Description: This is partially related to #472 and #474 though. The values set in the TypeManager.pointer_attribute are managed by CustomType._allocated_pointers or CustomType._pointer_values, but if the original CustomType is managed by another obje...

Open Graph Description: This is partially related to #472 and #474 though. The values set in the TypeManager.pointer_attribute are managed by CustomType._allocated_pointers or CustomType._pointer_values, but if the origin...

X Description: This is partially related to #472 and #474 though. The values set in the TypeManager.pointer_attribute are managed by CustomType._allocated_pointers or CustomType._pointer_values, but if the origin...

Opengraph URL: https://github.com/Source-Python-Dev-Team/Source.Python/issues/480

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeManager.pointer_attribute cannot be safely used in nested CustomType.","articleBody":"This is partially related to #472 and #474 though.\r\n\r\nThe values set in the `TypeManager.pointer_attribute` are managed by `CustomType._allocated_pointers` or `CustomType._pointer_values`, but if the original CustomType is managed by another object, they will be deallocated instantly. This means that pointer manipulation is not possible on nested CustomTypes.\r\n\r\nMy advice is we should stop using `TypeManager.pointer_attribute`. This feature has not been tested for a long time(#391) and should only be used in situations where you have full control over the memory of the values you are setting. (i.e. only non-native_type that you can manage yourself.) I found this out the hard way.\r\n\r\n```python\r\nfrom memory.manager import CustomType\r\nfrom memory.manager import TypeManager\r\n\r\nmanager = TypeManager()\r\n\r\nclass Test(CustomType, metaclass=manager):\r\n    _size = 12\r\n\r\n    test2 = manager.instance_attribute(\"Test2\", 4)\r\n\r\nclass Test2(CustomType, metaclass=manager):\r\n    _size = 8\r\n    size = manager.pointer_attribute(Type.INT, 0)\r\n    other_test = manager.pointer_attribute(\"Test\", 4)\r\n\r\ntest = Test()\r\ntest.test2.size = 1 # BROKEN!, the memory of size is already deallocated.\r\ntest.test2.other_test = Test() # BROKEN!, the memory of Test is already deallocated.\r\n```","author":{"url":"https://github.com/CookStar","@type":"Person","name":"CookStar"},"datePublished":"2023-06-28T14:14:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/480/Source.Python/issues/480"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:942fae96-f7fb-bd92-2ccc-d9ef3468fd82
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9962:16F17F:195AFEE:2367099:6970DF62
html-safe-nonce633fe76fb18430c22b2916affb5668fa3e2e3be5670a46067db21a91aa8de8f8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTYyOjE2RjE3RjoxOTVBRkVFOjIzNjcwOTk6Njk3MERGNjIiLCJ2aXNpdG9yX2lkIjoiNDAzMDk0ODA5NDY0NjQ3NjY0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4a46439d1855d0caf7aaa2212f1f65627cef49d69e4be009a034581099958cad
hovercard-subject-tagissue:1779047747
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/Source-Python-Dev-Team/Source.Python/480/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f9ca2ae76ff8b0cbab7e84337301a1905c0f900bd2a12d9039e0f122cf09cfbf/Source-Python-Dev-Team/Source.Python/issues/480
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f9ca2ae76ff8b0cbab7e84337301a1905c0f900bd2a12d9039e0f122cf09cfbf/Source-Python-Dev-Team/Source.Python/issues/480
og:image:altThis is partially related to #472 and #474 though. The values set in the TypeManager.pointer_attribute are managed by CustomType._allocated_pointers or CustomType._pointer_values, but if the origin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCookStar
hostnamegithub.com
expected-hostnamegithub.com
Noneb9203e7efc62065329c3b7015a1e6d16fc14bce440abec7b0d3cbe9e4fb1e2e4
turbo-cache-controlno-preview
go-importgithub.com/Source-Python-Dev-Team/Source.Python git https://github.com/Source-Python-Dev-Team/Source.Python.git
octolytics-dimension-user_id5440368
octolytics-dimension-user_loginSource-Python-Dev-Team
octolytics-dimension-repository_id12771934
octolytics-dimension-repository_nwoSource-Python-Dev-Team/Source.Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id12771934
octolytics-dimension-repository_network_root_nwoSource-Python-Dev-Team/Source.Python
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
releaseeb3c92b74ae48a78cffd8700b8eb5f60bad61528
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/issues/480#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSource-Python-Dev-Team%2FSource.Python%2Fissues%2F480
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSource-Python-Dev-Team%2FSource.Python%2Fissues%2F480
Sign up https://patch-diff.githubusercontent.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=Source-Python-Dev-Team%2FSource.Python
Reloadhttps://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/issues/480
Reloadhttps://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/issues/480
Reloadhttps://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/issues/480
Source-Python-Dev-Team https://patch-diff.githubusercontent.com/Source-Python-Dev-Team
Source.Pythonhttps://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FSource-Python-Dev-Team%2FSource.Python
Fork 37 https://patch-diff.githubusercontent.com/login?return_to=%2FSource-Python-Dev-Team%2FSource.Python
Star 170 https://patch-diff.githubusercontent.com/login?return_to=%2FSource-Python-Dev-Team%2FSource.Python
Code https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python
Issues 7 https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/issues
Pull requests 7 https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/pulls
Discussions https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/discussions
Actions https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/security
Please reload this pagehttps://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/issues/480
Insights https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/pulse
Code https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python
Issues https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/issues
Pull requests https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/pulls
Discussions https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/discussions
Actions https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/actions
Security https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/security
Insights https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/Source-Python-Dev-Team/Source.Python/issues/480
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/Source-Python-Dev-Team/Source.Python/issues/480
TypeManager.pointer_attribute cannot be safely used in nested CustomType.https://patch-diff.githubusercontent.com/Source-Python-Dev-Team/Source.Python/issues/480#top
https://github.com/CookStar
https://github.com/CookStar
CookStarhttps://github.com/CookStar
on Jun 28, 2023https://github.com/Source-Python-Dev-Team/Source.Python/issues/480#issue-1779047747
#472https://github.com/Source-Python-Dev-Team/Source.Python/issues/472
#474https://github.com/Source-Python-Dev-Team/Source.Python/pull/474
#391https://github.com/Source-Python-Dev-Team/Source.Python/pull/391
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.