FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-98831: Get rid of super(), just use macro() by gvanrossum · Pull Request #100095 · python/cpython · GitHub

/ cpython Public

GH-98831: Get rid of super(), just use macro() - #100095

Closed
gvanrossum wants to merge 26 commits into
python:mainfrom
gvanrossum:super-is-macro
Closed

GH-98831: Get rid of super(), just use macro()#100095
gvanrossum wants to merge 26 commits into
python:mainfrom
gvanrossum:super-is-macro

Conversation

gvanrossum commented Dec 8, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Instead of super(X) = Y + Z write macro(X) = Y + JOIN + Z and get rid of the code duplication for super and macro.

This doesn't really make things much cleaner, but it works.
This was more convoluted than I expected.
Also removed some dead code from the former
(somehow the case for CacheEffect had crept back in).
This makes the PEEK/POKE sequences less jarring.
STORE_SUBSCR was alread half converted,
but wasn't using cache effects yet.
The original had mysterious `SET_TOP(NULL)` before `goto error`.
I assume those just account for `obj` having been decref'ed,
so I got rid of them in favor of the cleanup implied by `ERROR_IF()`.
This should fix the build crash on Windows.

netlify Bot commented Dec 8, 2022
edited
Loading

Copy link
Copy Markdown

Deploy Preview for python-cpython-preview ready!

Name Link
🔨 Latest commit 248ecfe
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/63912b17d4612d0009b1995a
😎 Deploy Preview https://deploy-preview-100095--python-cpython-preview.netlify.app
📱 Preview on mobile Toggle QR Code...



Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Copy Markdown
Member Author

Closing in favor of #100124.

gvanrossum closed this Dec 8, 2022
gvanrossum deleted the super-is-macro branch December 8, 2022 23:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL