Skip to content

Comments

misoperation #145138

Closed
tanloong wants to merge 24 commits intopython:mainfrom
tanloong:jobe-special-method-lookup-1
Closed

misoperation #145138
tanloong wants to merge 24 commits intopython:mainfrom
tanloong:jobe-special-method-lookup-1

Conversation

@tanloong
Copy link
Contributor

@tanloong tanloong commented Feb 23, 2026

This is a misoperation when I was trying to merge a branch to my own fork. I am really sorry. Apology for my mistake.

tanloong and others added 24 commits February 19, 2026 15:26
…thod() on classmethod, staticmethod, and property
…ethod;

2. raise AttributeError instead of returning None;
3. add optional `default` parameter, similar to `getattr`: lookup_special(object, name[, default])
4. There are different opinions on which module should the function be
   in. Leave it in `types` until there is consensus.
This is temporary as which module should the function be put is not determined yet in the discourse discussion.
This is temporary as which module should the function be put is not determined yet in the discourse discussion.
@python-cla-bot
Copy link

python-cla-bot bot commented Feb 23, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@tanloong tanloong closed this Feb 23, 2026
@tanloong tanloong deleted the jobe-special-method-lookup-1 branch February 23, 2026 14:07
@tanloong tanloong changed the title Added default parameter to lookup_special in types.py. misoperation Feb 23, 2026
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