[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Géry
Géry added the comment: Thanks for the review Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Géry. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 16bf9bd157c7bf5f9c60414fa8e0fe5047c55a9b by Géry Ogam in branch 'main': bpo-44024: Improve the TypeError message in getattr and hasattr (GH-25863) https://github.com/python/cpython/commit/16bf9bd157c7bf5f9c60414fa8e0fe5047c55a9b --

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good point. That code was originally added in issue420304 because every exception raised in PyObject_GetAttr() (including a TypeError for non-string name) was silenced in hasattr() and 3-argument getattr(). It was changed in Python 3, so this code

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-04 Thread Éric Araujo
Change by Éric Araujo : -- type: behavior -> enhancement versions: -Python 3.10, Python 3.9 ___ Python tracker ___ ___

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2021-05-22 Thread wyz23x2
Change by wyz23x2 : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2021-05-05 Thread Géry
Change by Géry : -- title: Improve the error message for non-string second arguments passed to the built-in functions getattr and hasattr -> Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr