This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年05月31日 11:34 by Ronny.Pfannschmidt, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (6) | |||
|---|---|---|---|
| msg161990 - (view) | Author: Ronny Pfannschmidt (Ronny.Pfannschmidt) | Date: 2012年05月31日 11:34 | |
due to the lack of a marker that denotes where the module ends and the attribute starts, unrelated import errors can break the try&error chain at unexpected places and the code can pass on to the recursive getattr chain, giving a completely different error instead of the real error this is not solvable without a marker or really nasty hacks o track subsequent imports |
|||
| msg161991 - (view) | Author: Tarek Ziadé (tarek) * (Python committer) | Date: 2012年05月31日 12:01 | |
the current code works as expected. Why not leaving it like this since your change seem to be comsetics only ? |
|||
| msg161992 - (view) | Author: Tarek Ziadé (tarek) * (Python committer) | Date: 2012年05月31日 12:01 | |
can you give an example of a bad error ? |
|||
| msg161993 - (view) | Author: Ronny Pfannschmidt (Ronny.Pfannschmidt) | Date: 2012年05月31日 12:26 | |
to correctly implement it we need the : separator back with the separator the import specification is no longer ambigious, and we can use one exact import, and an error will always be an error |
|||
| msg161994 - (view) | Author: Ronny Pfannschmidt (Ronny.Pfannschmidt) | Date: 2012年05月31日 12:29 | |
an example of creating a wrong error would be something like the following: there is a package foo.bar, which does a wrong import in __init__.py we want to resolve the name foo.bar.something we'd get the error that foo has no attribute bar |
|||
| msg164568 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2012年07月03日 04:39 | |
Please keep the discussion in one place, the other bug report. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:31 | admin | set | github: 59172 |
| 2012年07月03日 04:39:03 | eric.araujo | set | status: open -> closed messages: + msg164568 stage: resolved |
| 2012年05月31日 12:29:03 | Ronny.Pfannschmidt | set | messages: + msg161994 |
| 2012年05月31日 12:26:52 | Ronny.Pfannschmidt | set | messages: + msg161993 |
| 2012年05月31日 12:03:42 | tarek | set | resolution: duplicate superseder: Improve error reporting for packaging.util.resolve_name |
| 2012年05月31日 12:01:57 | tarek | set | messages: + msg161992 |
| 2012年05月31日 12:01:25 | tarek | set | messages: + msg161991 |
| 2012年05月31日 11:34:36 | Ronny.Pfannschmidt | create | |