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

bpo-47220: Document the optional callback parameter of weakref.WeakMethod#25491

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
rhettinger merged 14 commits intopython:mainfromgeryogam:patch-25
Nov 30, 2022

Conversation

geryogam
Copy link
Contributor

@geryogamgeryogam commentedApr 20, 2021
edited
Loading

This PR will bring the following changes to theweakref documentation:

  • document the optionalcallback parameter ofweakref.WeakMethod;
  • normalise the use of ‘proxy’, replacing the mix of ‘proxy’ (8 occurrences) and ‘proxy object’ (3 occurrences);
  • normalise the use of ‘weak reference’, replacing the mix of ‘weak reference’ (37 occurrences), ‘weak reference object’ (7 occurrences), ‘reference’ (7 occurrences), ‘reference object’ (6 occurrences), ‘weakref’ (3 occurrences), and ‘weakref object’ (1 occurrence).

https://bugs.python.org/issue47220

domdfcoding reacted with thumbs up emoji
@geryogamgeryogam marked this pull request as ready for reviewApril 23, 2021 22:03
@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsbot added the staleStale PR or inactive for long period of time. labelJun 3, 2021
@JelleZijlstraJelleZijlstra self-requested a reviewApril 2, 2022 23:20
@JelleZijlstra
Copy link
Member

Sorry this had to wait for so long!

  • Documenting thecallback parameter toWeakMethod requires an issue and a NEWS entry in my view. Also, the documentation should say what the parameter does.
  • Some of the wording changes feel gratuitous (e.g. "proxy objects" vs. "proxies"). I don't know if the original authors had reasons for using one form or the other, so I'd be hesitant to make changes without a strong reason.

@JelleZijlstraJelleZijlstra removed their request for reviewApril 3, 2022 03:30
@geryogamgeryogam changed the titleUpdate weakref.rstbpo-47220: Document the optional callback parameter of weakref.WeakMethodApr 4, 2022
@geryogamgeryogam changed the titlebpo-47220: Document the optional callback parameter of weakref.WeakMethodDocument the optional callback parameter of weakref.WeakMethodApr 4, 2022
@geryogamgeryogam changed the titleDocument the optional callback parameter of weakref.WeakMethodbpo-47220: Document the optional callback parameter of weakref.WeakMethodApr 4, 2022
@geryogam
Copy link
ContributorAuthor

geryogam commentedApr 4, 2022
edited
Loading

@JelleZijlstra@merwok Thanks for the review.

  • Documenting thecallback parameter toWeakMethod requires an issue and a NEWS entry in my view. Also, the documentation should say what the parameter does.

Done.

  • Some of the wording changes feel gratuitous (e.g. "proxy objects" vs. "proxies"). I don't know if the original authors had reasons for using one form or the other, so I'd be hesitant to make changes without a strong reason.

I normalised the use of ‘proxy’ because a mix of ‘proxy’ (8 occurrences) and ‘proxy object’ (3 occurrences) was used.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phraseI have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@geryogam
Copy link
ContributorAuthor

Please remove all unrelated changes.

Reverted. I have made the requested changes; please review again.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@erlend-aasland: please review the changes made to this pull request.

@rhettingerrhettinger removed the needs backport to 3.10only security fixes labelNov 30, 2022
@rhettingerrhettinger merged commit9628136 intopython:mainNov 30, 2022
@miss-islington
Copy link
Contributor

Thanks @maggyero for the PR, and@rhettinger for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @maggyero and@rhettinger, I had trouble checking out the3.11 backport branch.
Please retry by removing and re-adding the "needs backport to 3.11" label.
Alternatively, you can backport usingcherry_picker on the command line.
cherry_picker 9628136fac997847b4662e6a17faf06d2a0507eb 3.11

@rhettingerrhettinger added needs backport to 3.11only security fixes and removed needs backport to 3.11only security fixes labelsNov 30, 2022
@miss-islington
Copy link
Contributor

Thanks @maggyero for the PR, and@rhettinger for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-99909 is a backport of this pull request to the3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11only security fixes labelNov 30, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestNov 30, 2022
…thod (pythonGH-25491)(cherry picked from commit9628136)Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
miss-islington added a commit that referenced this pull requestNov 30, 2022
…thod (GH-25491)(cherry picked from commit9628136)Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
@geryogam
Copy link
ContributorAuthor

Thanks for the review!

@geryogamgeryogam deleted the patch-25 branchNovember 30, 2022 20:00
carljm added a commit to carljm/cpython that referenced this pull requestDec 1, 2022
* main: (112 commits)pythongh-99894: Ensure the local names don't collide with the test file in traceback suggestion error checking (python#99895)pythongh-99612: Fix PyUnicode_DecodeUTF8Stateful() for ASCII-only data (pythonGH-99613)  Doc: Add summary line to isolation_level & autocommit sqlite3.connect params (python#99917)pythonGH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (pythonGH-98916)pythongh-89189: More compact range iterator (pythonGH-27986)  bpo-47220: Document the optional callback parameter of weakref.WeakMethod (pythonGH-25491)pythonGH-99905: Fix output of misses in summarize_stats.py execution counts (pythonGH-99906)pythongh-99845: PEP 670: Convert PyObject macros to functions (python#99850)pythongh-99845: Use size_t type in __sizeof__() methods (python#99846)pythonGH-99877)  Fix typo in exception message in `multiprocessing.pool` (python#99900)pythongh-87092: move all localsplus preparation into separate function called from assembler stage (pythonGH-99869)pythongh-99891: Fix infinite recursion in the tokenizer when showing warnings (pythonGH-99893)pythongh-99824: Document that sqlite3.connect implicitly open a transaction if autocommit=False (python#99825)pythonGH-81057: remove static state from suggestions.c (python#99411)  Improve zip64 limit error message (python#95892)pythongh-98253: Break potential reference cycles in external code worsened by typing.py lru_cache (python#98591)pythongh-99127: Allow some features of syslog to the main interpreter only (pythongh-99128)pythongh-82836: fix private network check (python#97733)  Docs: improve accuracy of socketserver reference (python#24767)  ...
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@merwokmerwokmerwok left review comments

@rhettingerrhettingerrhettinger approved these changes

@pitroupitrouAwaiting requested review from pitrou

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aasland

Assignees

@rhettingerrhettinger

Labels
docsDocumentation in the Doc dir
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

12 participants
@geryogam@JelleZijlstra@rhettinger@MaxwellDupre@bedevere-bot@miss-islington@merwok@pitrou@erlend-aasland@serhiy-storchaka@the-knights-who-say-ni@ezio-melotti

[8]ページ先頭

©2009-2025 Movatter.jp