Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-125608: Trigger dictionary watchers when inline values change#125611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
colesbury merged 1 commit intopython:mainfromcolesbury:gh-125608-dict-watchers
Oct 21, 2024

Conversation

colesbury
Copy link
Contributor

@colesburycolesbury commentedOct 16, 2024
edited by bedevere-appbot
Loading

Dictionary watchers on an object's attributes dictionary (object.__dict__) were not triggered when the managed dictionary used the object's inline values.

@colesburycolesbury added the needs backport to 3.13bugs and security fixes labelOct 16, 2024
@colesburycolesbury changed the titlegh-125608: Trigger dictionary watchers when inline values cahngegh-125608: Trigger dictionary watchers when inline values changeOct 16, 2024
Dictionary watchers on an object's attributes dictionary(`object.__dict__`) were not triggered when the managed dictionary usedthe object's inline values.
@markshannon
Copy link
Member

Looks good.
The change is not on a fast path, but might be worth benchmarking just in case.

@colesburycolesbury marked this pull request as ready for reviewOctober 17, 2024 13:57
@colesburycolesbury merged commit5989eb7 intopython:mainOct 21, 2024
40 checks passed
@miss-islington-app
Copy link

Thanks@colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@colesburycolesbury deleted the gh-125608-dict-watchers branchOctober 21, 2024 12:23
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 22, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 22, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 22, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 22, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 22, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 22, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 22, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 22, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
@colesbury
Copy link
ContributorAuthor

Hmmm... Miss Islington forgot to finish the backport.

@colesburycolesbury removed the needs backport to 3.13bugs and security fixes labelOct 25, 2024
@colesburycolesbury added the needs backport to 3.13bugs and security fixes labelOct 25, 2024
@miss-islington-app
Copy link

Thanks@colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestOct 25, 2024
pythonGH-125611)Dictionary watchers on an object's attributes dictionary(`object.__dict__`) were not triggered when the managed dictionary usedthe object's inline values.(cherry picked from commit5989eb7)Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app
Copy link

GH-125982 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelOct 25, 2024
colesbury added a commit that referenced this pull requestOct 25, 2024
…ge (GH-125611) (GH-125982)Dictionary watchers on an object's attributes dictionary(`object.__dict__`) were not triggered when the managed dictionary usedthe object's inline values.(cherry picked from commit5989eb7)Co-authored-by: Sam Gross <colesbury@gmail.com>
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 25, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
williamwen42 added a commit to pytorch/pytorch that referenced this pull requestOct 25, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec[ghstack-poisoned]
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull requestOct 28, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.Pull Requestresolved:#138284Approved by:https://github.com/janselghstack dependencies:#138030
rahulsingh-intel pushed a commit to rahulsingh-intel/pytorch that referenced this pull requestOct 29, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.Pull Requestresolved:pytorch#138284Approved by:https://github.com/janselghstack dependencies:pytorch#138030
rahulsingh-intel pushed a commit to rahulsingh-intel/pytorch that referenced this pull requestNov 5, 2024
python/cpython#116115 introduced a bug (python/cpython#125608) where changing the attributes of an object may not fire the dict watchers registered to the object's `__dict__`. It has been fixed bypython/cpython#125611 but will only be in 3.13.1+.This PR disables the dict watcher guard shortcut for `__dict__`s on 3.13.0 and warns the user to try using 3.13.1+ instead. We also added a simple test to check for this functionality in the future.Pull Requestresolved:pytorch#138284Approved by:https://github.com/janselghstack dependencies:pytorch#138030
ebonnal pushed a commit to ebonnal/cpython that referenced this pull requestJan 12, 2025
python#125611)Dictionary watchers on an object's attributes dictionary(`object.__dict__`) were not triggered when the managed dictionary usedthe object's inline values.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@markshannonmarkshannonmarkshannon approved these changes

@brandtbucherbrandtbucherAwaiting requested review from brandtbucher

@methanemethaneAwaiting requested review from methanemethane is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@colesbury@markshannon

[8]ページ先頭

©2009-2025 Movatter.jp