[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 149be7000c11 by Brett Cannon in branch '3.4':
Issue #20763: Fix importlib.machinery.PathFinder to support
http://hg.python.org/cpython/rev/149be7000c11

--

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-03-13 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: commit review - committed/rejected

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-26 Thread Yukihiro Nakadaira

Yukihiro Nakadaira added the comment:

It works fine.  Thank you!

--

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5dec1604322c by Brett Cannon in branch 'default':
Issue #20763: Fix importlib.machinery.PathFinder to support
http://hg.python.org/cpython/rev/5dec1604322c

--
nosy: +python-dev

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-26 Thread Brett Cannon

Brett Cannon added the comment:

Cherrypick bug is http://bugs.python.org/issue20789

--

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-26 Thread Brett Cannon

Brett Cannon added the comment:

Committed for Larry to cherrypick into 3.4.0. No Misc/NEWS so that Larry 
doesn't have merge issues and since it will be covered by 3.4.0.

--
resolution:  - fixed
status: open - closed

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +eric.snow

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +larry
priority: normal - release blocker

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread jan matejek

Changes by jan matejek jmate...@suse.cz:


--
nosy: +matejcik

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon

Brett Cannon added the comment:

The problem is that the PEP 451 switch accidentally cut out compatibility code 
for PathEntryFinder.find_module() since Python 3.3 started the transition to 
find_loader(). Adding a bit of code to 
http://hg.python.org/cpython/file/8ac9c3754d33/Lib/importlib/_bootstrap.py#l1865
 and a test will fix it.

--

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon

Brett Cannon added the comment:

I should also mention that subclassing importlib.abc.PathEntryFinder solves 
this coding problem.

--

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon

Brett Cannon added the comment:

I have a fix, I just need to create a test.

--

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon

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


--
assignee:  - brett.cannon

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Brett Cannon

Brett Cannon added the comment:

Fix and test is attached. Can someone review it so I can check it in and get a 
cherrypick?

--
keywords: +patch
stage:  - commit review
Added file: http://bugs.python.org/file34225/issue_20763.diff

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Eric Snow

Eric Snow added the comment:

LGTM

--

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-24 Thread Yukihiro Nakadaira

New submission from Yukihiro Nakadaira:

Steps to reproduce:

$ cat a.py
import sys

class MyFinder:
def __init__(self, path):
if path != __myfinder__:
raise ImportError()

def find_module(self, fullname, path=None):
return None

sys.path_hooks.append(MyFinder)
sys.path.insert(0, '__myfinder__')

import time
print('OK')

$ python3.3 -V
Python 3.3.2+

$ python3.3 a.py
OK

$ python3.4 -V
Python 3.4.0rc1

$ python3.4 a.py
Traceback (most recent call last):
  File a.py, line 14, in module
import time
ImportError: spec missing loader


On Ubuntu 13.10.
python3.3 is ubuntu's package.
python3.4.0rc1 is built by myself.

Vim's custom importer does not work for it.

[vim_dev] Problem with Python 3.4
https://groups.google.com/d/msg/vim_dev/RfuOG7_Jabs/h3YzLTsRgv0J

--
messages: 212158
nosy: ynkdir
priority: normal
severity: normal
status: open
title: old sys.path_hooks importer does not work with Python 3.4.0rc1
versions: Python 3.4

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-24 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
nosy: +brett.cannon

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-24 Thread Yury Selivanov

Changes by Yury Selivanov yselivanov...@gmail.com:


--
nosy: +yselivanov

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