Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor edits to the Descriptor HowTo Guide #24901

Merged
merged 25 commits into from
Oct 9, 2022
Merged

Conversation

geryogam
Copy link
Contributor

@geryogam geryogam commented Mar 17, 2021

This PR provides the following changes to the Descriptor HowTo Guide:

  • fix a typo;
  • fix a Sphinx tag preventing syntax highlighting;
  • fix a bug in ClassMethod;
  • reuse an existing cls name in Object;
  • allow keyword arguments in Type.__new__ and Object.__new__;
  • allow attribute lookup from a class in Member.__get__;
  • use two more super() in Object and Type for consistency.

@geryogam geryogam changed the title Fix a bug in the ClassMethod Python equivalent of the Descriptor HowTo Guide Fix a few bugs in the Python equivalent code of the Descriptor HowTo Guide Mar 19, 2021
@geryogam geryogam changed the title Fix a few bugs in the Python equivalent code of the Descriptor HowTo Guide Fix a few bugs in the Python equivalents of the Descriptor HowTo Guide Mar 19, 2021
@geryogam geryogam changed the title Fix a few bugs in the Python equivalents of the Descriptor HowTo Guide Fix the Python equivalents of the Descriptor HowTo Guide Mar 31, 2021
@github-actions
Copy link

github-actions bot commented Jun 5, 2021

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

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jun 5, 2021
@merwok
Copy link
Member

merwok commented Feb 11, 2022

Can you open a ticket (with Raymond Hettinger in nosy) to discuss the problems you have identified here?

@geryogam
Copy link
Contributor Author

@merwok Thanks for the suggestion, that’s what I intended to do. The rest of the PR is completed but I still have to finish the last section on __slots__ (I completed my tests on it last year but I did not take the extra days necessary to update this PR). I will try to find a weekend shortly to do it.

Doc/howto/descriptor.rst Outdated Show resolved Hide resolved
Doc/howto/descriptor.rst Outdated Show resolved Hide resolved
Doc/howto/descriptor.rst Outdated Show resolved Hide resolved
Doc/howto/descriptor.rst Outdated Show resolved Hide resolved
Doc/howto/descriptor.rst Outdated Show resolved Hide resolved
Doc/howto/descriptor.rst Outdated Show resolved Hide resolved
Doc/howto/descriptor.rst Show resolved Hide resolved
Doc/howto/descriptor.rst Show resolved Hide resolved
Doc/howto/descriptor.rst Show resolved Hide resolved
Doc/howto/descriptor.rst Outdated Show resolved Hide resolved
@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 phrase I 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.

@merwok
Copy link
Member

merwok commented Oct 7, 2022

Please open a ticket to track this properly.

@geryogam
Copy link
Contributor Author

geryogam commented Oct 7, 2022

Please open a ticket to track this properly.

Done: #98038

Doc/howto/descriptor.rst Outdated Show resolved Hide resolved
@rhettinger rhettinger changed the title Improve the Descriptor HowTo Guide Minor edits to the Descriptor HowTo Guide Oct 7, 2022
@rhettinger rhettinger merged commit 2d2e01a into python:main Oct 9, 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-98112 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Oct 9, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 9, 2022
Co-authored-by: Raymond Hettinger <[email protected]>
(cherry picked from commit 2d2e01a)

Co-authored-by: Géry Ogam <[email protected]>
@rhettinger rhettinger added the needs backport to 3.10 only security fixes label Oct 9, 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.10.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-98114 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Oct 9, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 9, 2022
Co-authored-by: Raymond Hettinger <[email protected]>
(cherry picked from commit 2d2e01a)

Co-authored-by: Géry Ogam <[email protected]>
miss-islington added a commit that referenced this pull request Oct 9, 2022
Co-authored-by: Raymond Hettinger <[email protected]>
(cherry picked from commit 2d2e01a)

Co-authored-by: Géry Ogam <[email protected]>
carljm added a commit to carljm/cpython that referenced this pull request Oct 9, 2022
* main:
  Minor edits to the Descriptor HowTo Guide (pythonGH-24901)
  Fix link to Lifecycle of a Pull Request in CONTRIBUTING (python#98102)
  pythonGH-94597: deprecate `SafeChildWatcher`, `FastChildWatcher` and `MultiLoopChildWatcher` child watchers  (python#98089)
  Auto-cancel old builds when new commit pushed to branch (python#98009)
  pythongh-95011: Migrate syslog module to Argument Clinic (pythonGH-95012)
carljm added a commit to carljm/cpython that referenced this pull request Oct 9, 2022
* main: (5519 commits)
  Minor edits to the Descriptor HowTo Guide (pythonGH-24901)
  Fix link to Lifecycle of a Pull Request in CONTRIBUTING (python#98102)
  pythonGH-94597: deprecate `SafeChildWatcher`, `FastChildWatcher` and `MultiLoopChildWatcher` child watchers  (python#98089)
  Auto-cancel old builds when new commit pushed to branch (python#98009)
  pythongh-95011: Migrate syslog module to Argument Clinic (pythonGH-95012)
  pythongh-68686: Retire eptag ptag scripts (python#98064)
  pythongh-97922: Run the GC only on eval breaker (python#97920)
  GitHub Workflows security hardening (python#96492)
  Add `@ezio-melotti` as codeowner for `.github/`. (python#98079)
  pythongh-97913 Docs: Add walrus operator to the index (python#97921)
  [doc] Fix broken links to C extensions accelerating stdlib modules (python#96914)
  pythongh-97822: Fix http.server documentation reference to test() function (python#98027)
  pythongh-91052: Add PyDict_Unwatch for unwatching a dictionary (python#98055)
  pythonGH-98023: Change default child watcher to PidfdChildWatcher on supported systems (python#98024)
  pythonGH-94182: Run the PidfdChildWatcher on the running loop (python#94184)
  pythongh-92886: make test_ast pass with -O (assertions off) (pythonGH-98058)
  pythongh-92886: make test_coroutines pass with -O (assertions off) (pythonGH-98060)
  pythongh-57179: Add note on symlinks for os.walk (python#94799)
  pythongh-94808: Fix regex on exotic platforms (python#98036)
  pythongh-90085: Remove vestigial -t and -c timeit options (python#94941)
  ...
@geryogam
Copy link
Contributor Author

geryogam commented Oct 9, 2022

Thanks for the review.

@geryogam geryogam deleted the patch-14 branch October 10, 2022 21:53
mpage pushed a commit to mpage/cpython that referenced this pull request Oct 11, 2022
pablogsal pushed a commit that referenced this pull request Oct 22, 2022
Co-authored-by: Raymond Hettinger <[email protected]>
(cherry picked from commit 2d2e01a)

Co-authored-by: Géry Ogam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants