Skip to content

gh-74185: repr() of ImportError now contains attributes name and path.#1011

Closed
serhiy-storchaka wants to merge 9 commits into
python:mainfrom
serhiy-storchaka:importerror-repr
Closed

gh-74185: repr() of ImportError now contains attributes name and path.#1011
serhiy-storchaka wants to merge 9 commits into
python:mainfrom
serhiy-storchaka:importerror-repr

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Apr 5, 2017

Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka added the type-feature A feature request or enhancement label Apr 7, 2017

@auvipy auvipy left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re base plz

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Feb 19, 2022
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Jul 28, 2022
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Aug 28, 2022

@iritkatriel iritkatriel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has merge conflicts now.

@bedevere-bot

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Nov 30, 2022
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Dec 31, 2022
@arhadthedev arhadthedev changed the title bpo-29999: repr() of ImportError now contains attributes name and path. gh-74185: repr() of ImportError now contains attributes name and path. Feb 13, 2023
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Apr 6, 2023
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 11, 2023
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Jan 6, 2024
@github-actions

github-actions Bot commented Feb 5, 2024

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Feb 5, 2024
@MuhammadTausif

Copy link
Copy Markdown

Why this PR is still open?

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Aug 9, 2024
@github-actions

github-actions Bot commented Sep 8, 2024

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Sep 8, 2024
@encukou

encukou commented Dec 19, 2024

Copy link
Copy Markdown
Member

@serhiy-storchaka, do you want to finish this PR? Should I take over?

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Dec 19, 2024
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Jan 19, 2025
@auvipy

auvipy commented Feb 13, 2025

Copy link
Copy Markdown

@serhiy-storchaka, do you want to finish this PR? Should I take over?

I think you should take it over now

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Feb 13, 2025
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Mar 15, 2025
@vivodi

This comment was marked as abuse.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Apr 23, 2025
exc = ImportError('test', name='somename', path='somepath')
self.assertEqual(repr(exc),
"ImportError('test', name='somename', path='somepath')")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, but we might want a test that actually tries importing some nonexistent module and see if its __repr__ has those required attributes.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Jun 18, 2025
@serhiy-storchaka serhiy-storchaka deleted the importerror-repr branch August 14, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review stale Stale PR or inactive for long period of time. type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.