Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue37173

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:inspect.getfile error names module instead of passed class
Type:Stage:resolved
Components:Library (Lib)Versions:Python 3.9, Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: asvetlov, flying sheep, miss-islington, terry.reedy
Priority:normalKeywords:patch

Created on2019-06-06 11:08 byflying sheep, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 13861mergedflying sheep,2019-06-06 11:08
PR 13913mergedmiss-islington,2019-06-08 12:06
PR 13918mergedmiss-islington,2019-06-08 15:02
Messages (7)
msg344799 -(view)Author: (flying sheep)*Date: 2019-06-06 11:08
Currently, inspect.getfile(str) will report nonsense:>>> inspect.getfile(str)TypeError: <module 'builtins' (built-in)> is a built-in class
msg345018 -(view)Author: Terry J. Reedy (terry.reedy)*(Python committer)Date: 2019-06-08 02:47
The correct message would be"<class 'str'> is a built-in class"We do not backport exception message changes unless 'buggy enough'.  I asked on core-mentorship whether this fix qualifies.
msg345032 -(view)Author: Andrew Svetlov (asvetlov)*(Python committer)Date: 2019-06-08 12:04
I think landing the fix to 3.8 only is just fine
msg345033 -(view)Author: miss-islington (miss-islington)Date: 2019-06-08 12:05
New changesetd407d2a7265f6102e51a1d62b3fd28b4f7a78d16 by Miss Islington (bot) (Philipp A) in branch 'master':bpo-37173: Show passed class in inspect.getfile error (GH-13861)https://github.com/python/cpython/commit/d407d2a7265f6102e51a1d62b3fd28b4f7a78d16
msg345034 -(view)Author: miss-islington (miss-islington)Date: 2019-06-08 12:25
New changesetc5daae4ef6d09269c95ed1023e76932cc179f309 by Miss Islington (bot) in branch '3.8':bpo-37173: Show passed class in inspect.getfile error (GH-13861)https://github.com/python/cpython/commit/c5daae4ef6d09269c95ed1023e76932cc179f309
msg345043 -(view)Author: Terry J. Reedy (terry.reedy)*(Python committer)Date: 2019-06-08 14:58
Right, 3.8 not being released yet makes it different.
msg345050 -(view)Author: miss-islington (miss-islington)Date: 2019-06-08 15:27
New changeset51c9cc73cb8768a691688755af0a8b6b12cf712c by Miss Islington (bot) in branch '3.7':bpo-37173: Show passed class in inspect.getfile error (GH-13861)https://github.com/python/cpython/commit/51c9cc73cb8768a691688755af0a8b6b12cf712c
History
DateUserActionArgs
2022-04-11 14:59:16adminsetgithub: 81354
2019-06-08 15:27:09miss-islingtonsetmessages: +msg345050
2019-06-08 15:02:52miss-islingtonsetpull_requests: +pull_request13791
2019-06-08 14:58:49terry.reedysetmessages: +msg345043
2019-06-08 12:25:04miss-islingtonsetmessages: +msg345034
2019-06-08 12:15:47asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-06-08 12:06:23miss-islingtonsetpull_requests: +pull_request13786
2019-06-08 12:05:51miss-islingtonsetnosy: +miss-islington
messages: +msg345033
2019-06-08 12:04:44asvetlovsetversions: - Python 3.7
2019-06-08 12:04:37asvetlovsetnosy: +asvetlov
messages: +msg345032
2019-06-08 02:47:09terry.reedysetnosy: +terry.reedy
messages: +msg345018
2019-06-06 11:08:35flying sheepsetkeywords: +patch
stage: patch review
pull_requests: +pull_request13736
2019-06-06 11:08:14flying sheepcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp