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

Show value in error of list.remove #96844

Closed
Labels
type-featureA feature request or enhancement
@tdegeus

Description

@tdegeus

Consider

foo= ["a","b"]foriin ["c"]:foo.remove(i)

This throws with a useless error message:

Traceback (most recent call last):  File "/Users/tdegeus/Downloads/t.py", line 3, in <module>    foo.remove(i)ValueError: list.remove(x): x not in list

Instead it would be very helpful to show the value ofx. Now one needs extra manual debugging, or extra lines of code.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp