Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
deff(a,b):returndict((k.lower(),v)fork,vina.items())==dict( (k.lower(),v)fork,vinb.items() )f({"a":5}, {1:1})
output:
Traceback (mostrecentcalllast):File"/home/frank/projects/executing/test8.py",line8,in<module>f({"a":5}, {1:1})File"/home/frank/projects/executing/test8.py",line2,infreturndict((k.lower(),v)fork,vina.items())==dict(^^^^^File"/home/frank/projects/executing/test8.py",line2,in<genexpr>returndict((k.lower(),v)fork,vina.items())==dict(^^^^^^^AttributeError:'int'objecthasnoattribute'lower'
The error should be reported at line 3 and not at line 2, because the integer is passed tob
Your environment
- current cpython 3.11 branch (3a33e9b)
- and the Python 3.11.0b4
Metadata
Metadata
Assignees
Labels
Projects
Status
Done