[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-03-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8e390e4784b0 by Brett Cannon in branch 'default':
Issue #17176: Document that imp.NullImporter is no longer inserted
http://hg.python.org/cpython/rev/8e390e4784b0

New changeset e470370b4701 by Brett Cannon in branch '3.3':
Issue #17176: Document that imp.NullImporter is no longer
http://hg.python.org/cpython/rev/e470370b4701

--
nosy: +python-dev

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



[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-03-13 Thread Brett Cannon

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


--
resolution:  - fixed
status: open - closed

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



[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-02-24 Thread Brett Cannon

Brett Cannon added the comment:

The docs for NullImporter need to not mention that it is used with 
sys.path_importer_cache since it isn't. As for sys.path_importer_cache, it 
should say that None is inserted and not NullImporter. Both need a 
versionchanged notation of the switch from None to NullImporter, but 
sys.path_importer_cache needs a special mention that to be fully 
backwards-compatible to check for both None and NullImporter.

And just to make sure you are looking at the right docs, Andreas, your links 
were to the Python 2.7 docs. If you look at the top of the docs you will see a 
dropdown which lets you switch to the 3.3 or 3.4 docs easily.

--

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



[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-02-23 Thread Andreas Pelme

Andreas Pelme added the comment:

This seems like an oversight from

http://bugs.python.org/issue15473

The release notes for 3.3 added a note about this:
Because None is now inserted into sys.path_importer_cache, if you are clearing 
out entries in the dictionary of paths that do not have a finder, you will need 
to remove keys paired with values of None and imp.NullImporter to be 
backwards-compatible. This will lead to extra overhead on older versions of 
Python that re-insert None into sys.path_importer_cache where it repesents the 
use of implicit finders, but semantically it should not change anything.

But the relevant docs for NullImporter 
(http://docs.python.org/2/library/imp.html#imp.NullImporter) and 
sys.path_importer_cache 
(http://docs.python.org/2/library/sys.html#sys.path_importer_cache) did not get 
updated.

We have verified that the release notes in 3.4 is correct, and NullImporter is 
never used.

We are however not sure about the correct wording for the documentation fix.

--
nosy: +Andreas.Pelme

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



[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-02-15 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
keywords: +easy
nosy: +ezio.melotti
type:  - enhancement

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



[issue17176] Document imp.NullImporter is NOT used anymore by import

2013-02-10 Thread Brett Cannon

New submission from Brett Cannon:

imp.NullImporter should not be claiming that it is still used to fill 
sys.path_importer_cache on misses.

--
assignee: brett.cannon
components: Documentation
messages: 181846
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Document imp.NullImporter is NOT used anymore by import
versions: Python 3.3, Python 3.4

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