Message397663
> it would be nicer if the version with the suggestion were more like the version without the suggestion
Agreed, but that is actually not related with the suggestions. We only append a string at the end of whatever exception it was there. This difference is based on the attribute error for a slot not initialized vs an attribute error for something that is not there. For example, in 3.9:
---
class E:
__slots__=('blech')
E().blech
Traceback (most recent call last):
File "/home/pablogsal/github/cpython/lel.py", line 6, in <module>
E().blech
AttributeError: blech
while
class E:
__slots__=('blech')
E().bluch
Traceback (most recent call last):
File "/home/pablogsal/github/cpython/lel.py", line 4, in <module>
E().bluch
AttributeError: 'E' object has no attribute 'bluch' |
|
Date |
User |
Action |
Args |
2021-07-16 20:32:10 | pablogsal | set | recipients:
+ pablogsal, eric.smith |
2021-07-16 20:32:10 | pablogsal | set | messageid: <1626467530.13.0.138617768703.issue44655@roundup.psfhosted.org> |
2021-07-16 20:32:10 | pablogsal | link | issue44655 messages |
2021-07-16 20:32:10 | pablogsal | create | |
|