[issue12599] Use 'is not None' where appropriate in importlib

2012-04-17 Thread Brett Cannon

Changes by Brett Cannon :


--
resolution:  -> fixed
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue12599] Use 'is not None' where appropriate in importlib

2012-04-17 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset c1399cf7bd6a by Brett Cannon in branch 'default':
Issue #12599: Be more strict in accepting None vs. a false-like object
http://hg.python.org/cpython/rev/c1399cf7bd6a

--
nosy: +python-dev

___
Python tracker 

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



[issue12599] Use 'is not None' where appropriate in importlib

2012-04-17 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue12599] Use 'is not None' where appropriate in importlib

2012-04-17 Thread Brett Cannon

Changes by Brett Cannon :


--
components: +Library (Lib)
keywords: +easy
priority: normal -> low
versions:  -Python 3.2

___
Python tracker 

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



[issue12599] Use 'is not None' where appropriate in importlib

2011-07-22 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue12599] Use 'is not None' where appropriate in importlib

2011-07-22 Thread Petri Lehtinen

Changes by Petri Lehtinen :


--
nosy: +petri.lehtinen

___
Python tracker 

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



[issue12599] Use 'is not None' where appropriate in importlib

2011-07-22 Thread Daniel Urban

Changes by Daniel Urban :


--
nosy: +durban

___
Python tracker 

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



[issue12599] Use 'is not None' where appropriate in importlib

2011-07-20 Thread Nick Coghlan

New submission from Nick Coghlan :

Problems noted by PJE on import-sig:

For example, PathFinder's find_module treats an empty path the same as 
sys.path, and will also fail if for some reason the bool() of a PEP 302 finder 
or loader object is False.  Also, module_for_loader() will create a new module 
object, if you have a False module subclass in sys.modules.

...

These distinctions could be more problematic than they appear, as it's possible 
to inadvertently make your loader or your module subclass capable of being 
False (for example, if you subclassed a sequence type or implemented a 
__len__), and this could lead to some very subtle bugs, albeit very rare ones 
as well.  ;-)
===

The import test cases should include some examples of such pathological 
objects, with importlib then updated appropriately.

--
assignee: brett.cannon
messages: 140770
nosy: brett.cannon, ncoghlan
priority: normal
severity: normal
stage: test needed
status: open
title: Use 'is not None' where appropriate in importlib
type: behavior
versions: Python 3.2, Python 3.3

___
Python tracker 

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