Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Code objects with non-equalco_linetables compare equal #95150

Closed
Labels
3.11only security fixes3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertriagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error
@15r10nk

Description

@15r10nk

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

No one assigned

    Labels

    3.11only security fixes3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertriagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp