[issue19720] suppress context for some exceptions in importlib?

2014-11-21 Thread Brett Cannon

Brett Cannon added the comment:

LGTM

--
assignee: brett.cannon - serhiy.storchaka
stage: patch review - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19720] suppress context for some exceptions in importlib?

2014-11-21 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2de3c659a979 by Serhiy Storchaka in branch 'default':
Issue #19720: Suppressed context for some exceptions in importlib.
https://hg.python.org/cpython/rev/2de3c659a979

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19720] suppress context for some exceptions in importlib?

2014-11-21 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8f77f7bb46c7 by Serhiy Storchaka in branch 'default':
Issue #19720: Suppressed context for some exceptions in importlib.
https://hg.python.org/cpython/rev/8f77f7bb46c7

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19720] suppress context for some exceptions in importlib?

2014-11-21 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
resolution:  - fixed
stage: commit review - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19720] suppress context for some exceptions in importlib?

2014-11-21 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, 8f77f7bb46c7 is related to issue17293, not this issue. I have copied 
wrong commit message from clipboard.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19720] suppress context for some exceptions in importlib?

2014-11-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Yes, suppressing context was introduced for such cases.

Here is a patch.

--
keywords: +patch
nosy: +serhiy.storchaka
stage: needs patch - patch review
Added file: http://bugs.python.org/file37226/importlib_suppress_context.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19720] suppress context for some exceptions in importlib?

2014-11-19 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - brett.cannon

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19720] suppress context for some exceptions in importlib?

2013-11-22 Thread Eric Snow

New submission from Eric Snow:

Some exceptions in importlib are raised from within except blocks, resulting in 
chained tracebacks. [1]  For at least some of these we should consider 
suppressing the exception context.

For example (for [1]):

try:
path = parent_module.__path__
except AttributeError:
msg = (_ERR_MSG + '; {} is not a package').format(name, parent)
raise ImportError(msg, name=name) from None

[1] http://hg.python.org/cpython/file/default/Lib/importlib/_bootstrap.py#l2088

--
messages: 203830
nosy: brett.cannon, eric.snow
priority: low
severity: normal
stage: needs patch
status: open
title: suppress context for some exceptions in importlib?
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com