| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8b54ce6b-ba35-4d47-02f7-5c7fbe3db694 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A3FA:1A29F8:17D96A4:20290A2:6A596C5A |
| html-safe-nonce | 979cab933c16092a873327d5d86fcd1fb0cec43de7fb57aad81a9078a54d9cff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0ZBOjFBMjlGODoxN0Q5NkE0OjIwMjkwQTI6NkE1OTZDNUEiLCJ2aXNpdG9yX2lkIjoiNjcwMjg1NDUzODA2MjgxODM5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b9dc2d27d9536566dfbf907fea9602c6bd972e713ce75c8bebd4d0edab230831 |
| hovercard-subject-tag | pull_request:253679022 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/488/files |
| twitter:image | https://avatars.githubusercontent.com/u/7391596?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7391596?s=400&v=4 |
| og:image:alt | I have made changes to allow weak references to have callbacks, but I have ran into a problem about how to run these callbacks during drop as we have no reference in the virual machine within the d... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624bb50a7497aa346bef8cc3743af408a9ea10ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/RustPython/RustPython/pull/488/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F488%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2FRustPython%2FRustPython%2Fpull%2F488%2Ffiles |
|
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython |
| Reload | https://github.com/RustPython/RustPython/pull/488/files |
| Reload | https://github.com/RustPython/RustPython/pull/488/files |
| Reload | https://github.com/RustPython/RustPython/pull/488/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/488/files |
|
RustPython
| https://github.com/RustPython |
| RustPython | https://github.com/RustPython/RustPython |
|
Notifications
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Fork
1.5k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Star
22.2k
| https://github.com/login?return_to=%2FRustPython%2FRustPython |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
287
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
104
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
0
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
|
Code
| https://github.com/RustPython/RustPython |
|
Issues
| https://github.com/RustPython/RustPython/issues |
|
Pull requests
| https://github.com/RustPython/RustPython/pulls |
|
Discussions
| https://github.com/RustPython/RustPython/discussions |
|
Actions
| https://github.com/RustPython/RustPython/actions |
|
Projects
| https://github.com/RustPython/RustPython/projects |
|
Models
| https://github.com/RustPython/RustPython/models |
|
Wiki
| https://github.com/RustPython/RustPython/wiki |
|
Security and quality
| https://github.com/RustPython/RustPython/security |
|
Insights
| https://github.com/RustPython/RustPython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| BenLewis-Seequent | https://github.com/BenLewis-Seequent |
| RustPython:master | https://github.com/RustPython/RustPython/tree/master |
| BenLewis-Seequent:weakref_callback | https://github.com/BenLewis-Seequent/RustPython/tree/weakref_callback |
|
Conversation
9
| https://github.com/RustPython/RustPython/pull/488 |
|
Commits
10
| https://github.com/RustPython/RustPython/pull/488/commits |
|
Checks
0
| https://github.com/RustPython/RustPython/pull/488/checks |
|
Files changed
| https://github.com/RustPython/RustPython/pull/488/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/488/files |
|
Weakref callback
| https://github.com/RustPython/RustPython/pull/488/files#top |
|
Show all changes
10 commits
| https://github.com/RustPython/RustPython/pull/488/files |
|
8dd5810
Make PyObjectRef and PyObjectWeakRef it's own type.
skinnyBat Feb 13, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/8dd58108485224bce8eeb672ad77468add7510f5 |
|
0c1bee9
Move weakref type to obj folder, as it's a core type and needs to be
skinnyBat Feb 16, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/0c1bee994627f9af3dce46f03532397a0779ccb5 |
|
eab6e2f
Add callback to object being reference.
skinnyBat Feb 17, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/eab6e2f3b2bfe27c773c9c45426cb22fc3ac2d33 |
|
6a13a83
Merge branch 'master' into weakref_callback
skinnyBat Feb 18, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/6a13a83e2d3de0888526aabefb7c0c60e4520b23 |
|
4355105
Queue up objects to be deleted to allow for weakref callbacks
skinnyBat Feb 19, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/435510570cfd5559a8de4d35117354c0f4f87294 |
|
195a56a
Add more tests for weakref and fix objects not holding there weak
skinnyBat Feb 19, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/195a56a66b67f117471057589872ab407f72703f |
|
80c72d0
Merge branch 'master' into weakref_callback
skinnyBat Feb 19, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/80c72d0f6ef75411a7f423c013c0b403666327ef |
|
e89f8fa
Fix clippy warning
skinnyBat Feb 19, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/e89f8fafe55082143b231b79098d0643e2b1c82c |
|
b6d28cf
Formatting
skinnyBat Feb 19, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/b6d28cf425de8dd68a6bb12f7dfdea3ee300dc17 |
|
350bc30
Move weak_refs attribute into Instance payload
skinnyBat Feb 20, 2019
| https://github.com/RustPython/RustPython/pull/488/commits/350bc30311ef76fcbcfaf34a3521edd5c71eaa34 |
|
Clear filters
| https://github.com/RustPython/RustPython/pull/488/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/488/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/488/files |
|
weakrefs.py
| https://github.com/RustPython/RustPython/pull/488/files#diff-1f79d2f60188b8d87e9d16e8d3c634f4515beffaa4ea3b6930ad649e1de90f52 |
|
builtins.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-2fb46e28bfa853775da229c10cd0c32c3b093d30bf4ff26abaa6caeac035ea00 |
|
frame.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-b12bfe4c8654c4d3a81839ecf8fe1e9f41a1bac245ef944a0e3d8639a252ad15 |
|
mod.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-cb3f6c41256bb969446b58293c3ac50ccca42261ef0b04671401eec0ed8c1bde |
|
objstr.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-5959b66a45a435519c5d9ab11fd775670a67b19cb079f0025a673c87849da0ea |
|
objtype.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-46a1291f828c8e7ed91d6c0f019c80b93cd33405254b258cf89cfc2f53d7f2b5 |
|
objweakref.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-a276a0ac998c01613d6cdb5687babdb77cde8a56502cf2a5527ac4ada3452b40 |
|
pyobject.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-84524dac95852f23d03df0b427c833911eb825066c10e1bbeac03a99db0d5caa |
|
weakref.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-e53b406e90801c6b61a5ee6c3aff4d1218bb364b5d343f1dda92a1643567705c |
|
sysmodule.rs
| https://github.com/RustPython/RustPython/pull/488/files#diff-7ad0f3f4e1f2215afb4494dc68b35d8591a499c318f1618cec56aecee0fbdc4a |
| tests/snippets/weakrefs.py | https://github.com/RustPython/RustPython/pull/488/files#diff-1f79d2f60188b8d87e9d16e8d3c634f4515beffaa4ea3b6930ad649e1de90f52 |
|
View file
| https://github.com/BenLewis-Seequent/RustPython/blob/350bc30311ef76fcbcfaf34a3521edd5c71eaa34/tests/snippets/weakrefs.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/488/{{ revealButtonHref }} |
| vm/src/builtins.rs | https://github.com/RustPython/RustPython/pull/488/files#diff-2fb46e28bfa853775da229c10cd0c32c3b093d30bf4ff26abaa6caeac035ea00 |
|
View file
| https://github.com/BenLewis-Seequent/RustPython/blob/350bc30311ef76fcbcfaf34a3521edd5c71eaa34/vm/src/builtins.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/488/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-2fb46e28bfa853775da229c10cd0c32c3b093d30bf4ff26abaa6caeac035ea00 |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-2fb46e28bfa853775da229c10cd0c32c3b093d30bf4ff26abaa6caeac035ea00 |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-2fb46e28bfa853775da229c10cd0c32c3b093d30bf4ff26abaa6caeac035ea00 |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-2fb46e28bfa853775da229c10cd0c32c3b093d30bf4ff26abaa6caeac035ea00 |
| vm/src/frame.rs | https://github.com/RustPython/RustPython/pull/488/files#diff-b12bfe4c8654c4d3a81839ecf8fe1e9f41a1bac245ef944a0e3d8639a252ad15 |
|
View file
| https://github.com/BenLewis-Seequent/RustPython/blob/350bc30311ef76fcbcfaf34a3521edd5c71eaa34/vm/src/frame.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/488/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-b12bfe4c8654c4d3a81839ecf8fe1e9f41a1bac245ef944a0e3d8639a252ad15 |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-b12bfe4c8654c4d3a81839ecf8fe1e9f41a1bac245ef944a0e3d8639a252ad15 |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-b12bfe4c8654c4d3a81839ecf8fe1e9f41a1bac245ef944a0e3d8639a252ad15 |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-b12bfe4c8654c4d3a81839ecf8fe1e9f41a1bac245ef944a0e3d8639a252ad15 |
| vm/src/obj/mod.rs | https://github.com/RustPython/RustPython/pull/488/files#diff-cb3f6c41256bb969446b58293c3ac50ccca42261ef0b04671401eec0ed8c1bde |
|
View file
| https://github.com/BenLewis-Seequent/RustPython/blob/350bc30311ef76fcbcfaf34a3521edd5c71eaa34/vm/src/obj/mod.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/488/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-cb3f6c41256bb969446b58293c3ac50ccca42261ef0b04671401eec0ed8c1bde |
| vm/src/obj/objstr.rs | https://github.com/RustPython/RustPython/pull/488/files#diff-5959b66a45a435519c5d9ab11fd775670a67b19cb079f0025a673c87849da0ea |
|
View file
| https://github.com/BenLewis-Seequent/RustPython/blob/350bc30311ef76fcbcfaf34a3521edd5c71eaa34/vm/src/obj/objstr.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/488/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-5959b66a45a435519c5d9ab11fd775670a67b19cb079f0025a673c87849da0ea |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-5959b66a45a435519c5d9ab11fd775670a67b19cb079f0025a673c87849da0ea |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-5959b66a45a435519c5d9ab11fd775670a67b19cb079f0025a673c87849da0ea |
| vm/src/obj/objtype.rs | https://github.com/RustPython/RustPython/pull/488/files#diff-46a1291f828c8e7ed91d6c0f019c80b93cd33405254b258cf89cfc2f53d7f2b5 |
|
View file
| https://github.com/BenLewis-Seequent/RustPython/blob/350bc30311ef76fcbcfaf34a3521edd5c71eaa34/vm/src/obj/objtype.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/488/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-46a1291f828c8e7ed91d6c0f019c80b93cd33405254b258cf89cfc2f53d7f2b5 |
|
| https://github.com/RustPython/RustPython/pull/488/files#diff-46a1291f828c8e7ed91d6c0f019c80b93cd33405254b258cf89cfc2f53d7f2b5 |
| vm/src/obj/objweakref.rs | https://github.com/RustPython/RustPython/pull/488/files#diff-a276a0ac998c01613d6cdb5687babdb77cde8a56502cf2a5527ac4ada3452b40 |
|
View file
| https://github.com/BenLewis-Seequent/RustPython/blob/350bc30311ef76fcbcfaf34a3521edd5c71eaa34/vm/src/obj/objweakref.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/488/{{ revealButtonHref }} |
| Please reload this page | https://github.com/RustPython/RustPython/pull/488/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |