[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-04 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file40126/odict-correct-resize.diff ___ Python tracker <http://bugs.python.org/issue24667> ___ ___ Python-bug

[issue24792] zipimporter masks import errors

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, eric.snow, gregory.p.smith, ncoghlan, superluser, twouters ___ Python tracker <http://bugs.python.org/issue24

[issue19699] Update zipimport for PEP 451

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith, superluser, twouters ___ Python tracker <http://bugs.python.org/issue19699> ___ ___ Python-bugs-list mailin

[issue23734] zipimport should not check pyc timestamps against zipped py files

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, eric.snow, ncoghlan, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker <http://bugs.python.org/issue23

[issue24792] zipimporter masks import errors

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.5, Python 3.6 ___ Python tracker <http://bugs.python.org/issue24792> ___ ___ Python-bugs-list mailing list Unsub

[issue23327] zipimport to import from non-ascii pathname on Windows

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow, superluser ___ Python tracker <http://bugs.python.org/issue23327> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5950] Make zipimport work with zipfile containing comments

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue5950> ___ ___ Python-bugs-list mailin

[issue19883] Integer overflow in zipimport.c

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.6 ___ Python tracker <http://bugs.python.org/issue19883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19699] Update zipimport for PEP 451

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker <http://bugs.python.org/issue19699> ___ ___ Python-bugs-list mailing list Unsub

[issue19883] Integer overflow in zipimport.c

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow, superluser ___ Python tracker <http://bugs.python.org/issue19883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23327] zipimport to import from non-ascii pathname on Windows

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- type: crash -> behavior versions: +Python 3.5, Python 3.6 ___ Python tracker <http://bugs.python.org/issue23327> ___ ___ Python-

[issue21062] Evalute all import-related modules for best practices

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser ___ Python tracker <http://bugs.python.org/issue21062> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17004] Expand zipimport to include other compression methods

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue17004> ___ ___ Pytho

[issue1116520] Prefix search is filesystem-centric

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker <http://bugs.python.org/issue1116520> ___ ___

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Python-bugs-list m

[issue14678] Update zipimport to support importlib.invalidate_caches()

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue14678> ___ ___ Python-bugs-list m

[issue16651] Find out what stdlib modules lack a pure Python implementation

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue16651> ___ ___ Python-bugs-list m

[issue15713] PEP 3121, 384 Refactoring applied to zipimport module

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, gregory.p.smith, superluser stage: -> patch review versions: +Python 3.6 -Python 3.4 ___ Python tracker <http://bugs.python.org/issu

[issue8400] zipimporter find_module fullname mis-documented

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue8400> ___ ___ Python-bug

[issue8400] zipimporter find_module fullname mis-documented

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, gregory.p.smith, superluser ___ Python tracker <http://bugs.python.org/issue8400> ___ ___ Python-bugs-list mailin

[issue17633] zipimport's handling of namespace packages is incorrect

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- stage: -> patch review type: -> behavior ___ Python tracker <http://bugs.python.org/issue17633> ___ ___ Python-bugs-list

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser versions: +Python 3.6 -Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue14905> ___ ___ Python-bug

[issue17633] zipimport's handling of namespace packages is incorrect

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith, superluser versions: +Python 3.6 -Python 3.5 ___ Python tracker <http://bugs.python.org/issue17633> ___ ___ Pytho

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2015-08-05 Thread Eric Snow
Changes by Eric Snow : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue14905> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24370] OrderedDict behavior is unclear with misbehaving keys.

2015-08-05 Thread Eric Snow
Eric Snow added the comment: Fair enough. -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-05 Thread Eric Snow
Eric Snow added the comment: @Fabian, hey, thanks for bringing it to our attention! -- ___ Python tracker <http://bugs.python.org/issue24667> ___ ___ Python-bug

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-05 Thread Eric Snow
Eric Snow added the comment: If I don't get any feedback before then, I'll commit the patch on Friday. -- ___ Python tracker <http://bugs.python.o

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-06 Thread Eric Snow
Eric Snow added the comment: That's good to know. Thanks. -- ___ Python tracker <http://bugs.python.org/issue24667> ___ ___ Python-bugs-list mailing list

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-07 Thread Eric Snow
Eric Snow added the comment: I've pushed the fix for RC1. Thanks again Fabian for bringing it to our attention. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.pyth

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-09 Thread Eric Snow
Eric Snow added the comment: > Yeah, I stopped it at 300k iterations. No problems. Glad this fix got in for rc1. Thanks for the double-check, Larry. I'd done similar testing, though not as exhaustively. :) Getting a fix in for RC1 was pretty important to me. It stretched me a bit, b

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Eric Snow
Eric Snow added the comment: patch LGTM. Presumably the divergence between importlib (in _handle_fromlist) and import.c was strictly accidental (i.e. lack of test coverage). -- stage: patch review -> commit review ___ Python tracker &l

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-10 Thread Eric Snow
Eric Snow added the comment: Looks fine to me. Nick had suggested calling exec_builtin from exec_dynamic (to the same effect as your patch), but I don't consider that much of an issue. :) -- stage: -> commit review ___ Python tracke

[issue24846] Add tests for ``from ... import ...` code

2015-08-12 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue24846> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24897] Add new attribute decorator (akin to property)?

2015-08-20 Thread Eric Snow
Eric Snow added the comment: This sort of thread belongs on python-id...@python.org, not on the tracker. Please post there (feel free to reference this issue; also add a link to the thread here). TBH, I think there's a larger discussion to be had regarding the topic of other u

[issue24897] Add new attribute decorator (akin to property)?

2015-08-20 Thread Eric Snow
Eric Snow added the comment: That said... What's the benefit of it being a decorator? The docstring? Access to func.__name__? It could just as well be: class attribute: _name = None def __get__(self, instance, owner): if instance is

[issue24897] Add new attribute decorator (akin to property)?

2015-08-20 Thread Eric Snow
Eric Snow added the comment: No worries, Emanuel. Thanks for bringing it up. I'd still be interested to see what sort discussion ensued if you took this to python-ideas. Starting a thread on the topic has been on my todo list for a while but other matters always end up taking prece

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-20 Thread Eric Snow
Eric Snow added the comment: "Hybrid Nathaniel/Brett approach" LGTM -- ___ Python tracker <http://bugs.python.org/issue24305> ___ ___ Python-bugs-l

[issue24941] Add classproperty as builtin class

2015-08-29 Thread Eric Snow
Eric Snow added the comment: I've posted a counter-proposal on python-ideas: https://mail.python.org/pipermail/python-ideas/2015-August/035614.html Basically: instead of "classproperty", add a more lenient alternative to classmethod which allows composition. I called it

[issue24941] Add classproperty as builtin class

2015-08-29 Thread Eric Snow
Eric Snow added the comment: I also posted a broader proposal: https://mail.python.org/pipermail/python-ideas/2015-August/035615.html -- ___ Python tracker <http://bugs.python.org/issue24

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-08-31 Thread Eric Snow
Eric Snow added the comment: Doesn't the fix mean that `vars(MyNamedtuple)` will no longer work? While I personally don't mind (though I prefer that spelling) and appreciate the benefit of simpler code, isn't there a backward-compatibility issue here? I do concede that

[issue24992] collections.OrderedDict constructor (odict_new) doesn't handle PyDict_New() failure

2015-09-03 Thread Eric Snow
Eric Snow added the comment: Thanks for taking care of this, Victor (and Serhiy). :) -- stage: -> resolved type: -> behavior ___ Python tracker <http://bugs.python.org/i

[issue24991] Define instance mutability explicitly on type objects

2015-09-03 Thread Eric Snow
Eric Snow added the comment: Yeah, this definitely relates to the project I'm working on. -- ___ Python tracker <http://bugs.python.org/issue24991> ___ ___

[issue24912] The type of cached objects is mutable

2015-09-05 Thread Eric Snow
Eric Snow added the comment: While I recognize the practicality/purity argument here, I somewhat agree with Mark. Assigning to module.__class__ makes sense for the use case, but it does open up a number of negative possible side effects (e.g. changing sys.__class__). Ideally it would be

[issue25147] Enum: remove dependency on OrderedDict

2015-09-17 Thread Eric Snow
Eric Snow added the comment: OrderedDict has a C implementation now. So try the following: try: from _collections import OrderedDict except ImportError: from collections import OrderedDict -- nosy: +eric.snow ___ Python tracker <h

[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-22 Thread Eric Snow
Eric Snow added the comment: I'm fairly sure this was just an oversight on my part. -- ___ Python tracker <http://bugs.python.org/issue25186> ___ ___ Pytho

[issue25268] Support pointing frozen modules to the corresponding source files, if available.

2015-09-29 Thread Eric Snow
New submission from Eric Snow: (a generalization of issue #21335) One way or another, we should be able to record the appropriate path in the resulting data when a module is frozen. Keeping track of the source location is useful when debugging, especially with tracebacks. Also see a related

[issue21335] Update importlib.__init__ to reset _frozen_importlib's loader to SourceFileLoader

2015-09-29 Thread Eric Snow
Eric Snow added the comment: The underlying issue extends to all frozen modules. I've opened #25268 to consider how we might address it. -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/is

[issue25268] Support pointing frozen modules to the corresponding source files, if available.

2015-09-29 Thread Eric Snow
Changes by Eric Snow : -- nosy: +lemburg ___ Python tracker <http://bugs.python.org/issue25268> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12238] Readline module loading in interactive mode

2015-10-01 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue12238> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25406] OrderedDict.move_to_end may cause crash in python 3.5

2015-10-14 Thread Eric Snow
Changes by Eric Snow : -- assignee: -> serhiy.storchaka ___ Python tracker <http://bugs.python.org/issue25406> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25406] OrderedDict.move_to_end may cause crash in python 3.5

2015-10-14 Thread Eric Snow
Eric Snow added the comment: @Serhiy, patch LGTM. Thanks for taking care of it. -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issu

[issue25410] Clean up and fix OrderedDict

2015-10-16 Thread Eric Snow
Eric Snow added the comment: Thanks for working on this, Serhiy. I've left a review. As to the points you outlined, I have concerns with the impact of #3 and #5 on subclasses. Notably od.__class__ is not necessarily the same as type(od). Also #7 may introduce an unhandled re-ent

[issue25410] Clean up and fix OrderedDict

2015-10-17 Thread Eric Snow
Eric Snow added the comment: Regarding Py_TYPE(od) vs. od.__class__, there is a difference for subclasses, as you demonstrated in your example. [1] Thanks for explaining your rationale. I now understand your argument about using PyTYPE() for repr and pickle in C types. I still have

[issue25410] Clean up and fix OrderedDict

2015-10-17 Thread Eric Snow
Eric Snow added the comment: Regarding #5, you're right about OrderedDict().__dict__ being empty for the C implementation. (Nice observation!) So I'm okay with ripping all that code out of odict_reduce(). Since we're still accessing od.__dict__ through _PyObject_GetAttrId()

[issue25410] Clean up and fix OrderedDict

2015-10-17 Thread Eric Snow
Eric Snow added the comment: Regarding #7, I see what you did now. That looks fine to me. -- ___ Python tracker <http://bugs.python.org/issue25410> ___ ___ Pytho

[issue25410] Clean up and fix OrderedDict

2015-10-17 Thread Eric Snow
Eric Snow added the comment: new patch LGTM -- ___ Python tracker <http://bugs.python.org/issue25410> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25410] Clean up and fix OrderedDict

2015-10-17 Thread Eric Snow
Eric Snow added the comment: > Backward compatibility related to __class__ assignment was already broken in C > implementation. In 3.4 following code works: [snip] > In 3.5 it doesn't. Depending on what feedback we get from python-dev, that may need to be fixed. I'd be in

[issue25410] Clean up and fix OrderedDict

2015-10-17 Thread Eric Snow
Eric Snow added the comment: Posted to python-dev: https://mail.python.org/pipermail/python-dev/2015-October/141953.html https://mail.python.org/pipermail/python-dev/2015-October/141954.html -- stage: patch review -> commit review ___ Pyt

[issue25410] Clean up and fix OrderedDict

2015-10-20 Thread Eric Snow
Eric Snow added the comment: both patches* LGTM * odict_type.patch and odict_add_new_node_leak.patch -- ___ Python tracker <http://bugs.python.org/issue25

[issue25410] Clean up and fix OrderedDict

2015-10-20 Thread Eric Snow
Eric Snow added the comment: And thanks again, Serhiy, for taking the time on this. :) -- ___ Python tracker <http://bugs.python.org/issue25410> ___ ___ Python-bug

[issue25395] SIGSEGV using json.tool: highly nested OrderedDict

2015-10-20 Thread Eric Snow
Eric Snow added the comment: Thanks for solving this! odict-trashcan.v3.patch LGTM -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issu

[issue25410] Clean up and fix OrderedDict

2015-10-20 Thread Eric Snow
Eric Snow added the comment: Since the python-dev discussion about __class__, leaving the Python implementation alone is fine with me. -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issu

[issue25449] Test OrderedDict subclass

2015-10-20 Thread Eric Snow
Eric Snow added the comment: LGTM as long as you also add PurePythonOrderedDictSubclassTests to match CPythonOrderedDictSubclassTests (per PEP 399). -- nosy: +eric.snow stage: -> commit review ___ Python tracker <http://bugs.python.org/issu

[issue25449] Test OrderedDict subclass

2015-10-21 Thread Eric Snow
Eric Snow added the comment: Regarding dict.__setitem__, see issue #24726. Raymond outlined what needs to be fixed. -- ___ Python tracker <http://bugs.python.org/issue25

[issue25449] Test OrderedDict subclass

2015-10-21 Thread Eric Snow
Changes by Eric Snow : -- stage: commit review -> patch review ___ Python tracker <http://bugs.python.org/issue25449> ___ ___ Python-bugs-list mailing list Un

[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

2015-10-21 Thread Eric Snow
Eric Snow added the comment: FTR, this will likely involve more than just fixing odict_repr(). -- ___ Python tracker <http://bugs.python.org/issue24726> ___ ___

[issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

2015-11-04 Thread Eric Snow
Eric Snow added the comment: Review posted. Aside from a couple minor comments, LGTM. Thanks for doing this. Incidentally, it should be possible to auto-detect independent changes to the underlying dict and sync the odict with those changes. However, doing so likely isn't wor

[issue25410] Clean up and fix OrderedDict

2015-11-04 Thread Eric Snow
Eric Snow added the comment: I will review those patches soon. -- ___ Python tracker <http://bugs.python.org/issue25410> ___ ___ Python-bugs-list mailin

[issue25410] Clean up and fix OrderedDict

2015-11-05 Thread Eric Snow
Eric Snow added the comment: All 3 patches look fine to me. In "odict_resize_sentinel.patch", it would be nice if you could accomplish that with a single sentinel. However, fixing the bug is more critical. -- ___ Python trac

[issue25410] Clean up and fix OrderedDict

2015-11-05 Thread Eric Snow
Changes by Eric Snow : -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue25410> ___ ___ Python-bugs-list mailing list Un

[issue25462] Avoid repeated hash calculation in C implementation of OrderedDict

2015-11-07 Thread Eric Snow
Eric Snow added the comment: I agree with Raymond. -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue25462> ___ ___ Py

[issue25616] Extract OrderedDict tests into separate file

2015-11-13 Thread Eric Snow
Eric Snow added the comment: FWIW, I totally support this. I originally had a patch up that did so but Raymond indicated that he'd rather not split the tests out though I made exactly the same arguments that you have. Perhaps he's changed his mind in the intervening y

[issue25623] Keep the link to Python implementation of OrderedDict

2015-11-20 Thread Eric Snow
Eric Snow added the comment: I agree with Raymond. -- ___ Python tracker <http://bugs.python.org/issue25623> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25711] Rewrite zipimport from scratch

2015-11-23 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow, superluser ___ Python tracker <http://bugs.python.org/issue25711> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25710] zipimport is not PEP 3147 or PEP 488 compliant

2015-11-23 Thread Eric Snow
Changes by Eric Snow : -- nosy: +superluser ___ Python tracker <http://bugs.python.org/issue25710> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25914] Fix OrderedDict.__sizeof__

2015-12-21 Thread Eric Snow
Eric Snow added the comment: LGTM Thanks for doing that. It's definitely cleaner. :) -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org

[issue26042] Consider dropping magic number for more detailed .pyc file name

2016-01-07 Thread Eric Snow
Eric Snow added the comment: That's an interesting thought. My intuition is that it wouldn't be worth doing. It would certainly trade one development overhead for another, so it's a bit of a wash there, I think. Are there other spots in the stdlib that rely on the magic numb

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-18 Thread Eric Snow
Eric Snow added the comment: python-dev thread: https://mail.python.org/pipermail/python-dev/2016-February/143374.html Notably: https://github.com/pantsbuild/pex/pull/211 -- nosy: +eric.snow ___ Python tracker <http://bugs.python.

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Eric Snow
Eric Snow added the comment: (Note that PathFinder.invalidate_caches() loops over sys.path_importer_cache and invalidates the cache of each path entry finder therein. What you're suggesting is clearing sys.path_importer_cache after the loop finishes.) Hmm. The distinction is be

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Eric Snow
Eric Snow added the comment: Re: the kw-only arg, it seems weird to accommodate the implementation of one meta-path finder in the signature of importlib.invalidate_caches(). Here's an alternative: Use a different sys.path_importer_cache sentinel internally (in PathFinder) and never

[issue26495] super() does not work in nested functions, genexps, listcomps, and gives misleading exceptions

2016-03-10 Thread Eric Snow
Changes by Eric Snow : -- nosy: +benjamin.peterson, rhettinger ___ Python tracker <http://bugs.python.org/issue26495> ___ ___ Python-bugs-list mailing list Unsub

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-18 Thread Eric Snow
Eric Snow added the comment: Oh, and spec.loader for namespace package is set to None. -- ___ Python tracker <http://bugs.python.org/issue26569> ___ ___ Python-bug

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread Eric Snow
Eric Snow added the comment: Also, beside namespace packages, custom loaders may run into a similar problem with get_filename() and probably other code in there. It looks like the pyclbr module assumes that modules will be either builtin or loaded through SourceFileLoader. For example, you

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread Eric Snow
Eric Snow added the comment: Ah, you're talking about deleting Lib/test/__init__.py. Doing so makes it a namespace package. The loader we use for namespace packages [1] does not have a get_filename() method. So the problem to solve is supporting namespace packages in Lib/pycl

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread Eric Snow
Eric Snow added the comment: Well, your patch is correct even if not ideal. :) Landing it as a short-term solution is fine. Just keep this issue open so we can address the problem more completely later. -- components: +Interpreter Core stage: -> commit review type: -> be

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread Eric Snow
Eric Snow added the comment: And thanks for addressing this here. :) -- ___ Python tracker <http://bugs.python.org/issue26569> ___ ___ Python-bugs-list mailin

[issue26584] pyclbr module needs to be more flexible on loader support

2016-03-19 Thread Eric Snow
New submission from Eric Snow: (see issue26569) The pyclbr module is showing its age (born 1995). It assumes there are only 2 module types (builtin and source-based), particularly in readmodule() and readmodule_ex(). Really it should be source-based and "everything else". For in

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread Eric Snow
Eric Snow added the comment: Yeah, I've opened issue26584 to keep the matters separate. We can address a more comprehensive cleanup there. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support packages

2016-03-20 Thread Eric Snow
Eric Snow added the comment: Hmm. These two should be equivalent: if spec.loader.is_package(fullmodule): dict['__path__'] = [os.path.dirname(fname)] if spec.submodule_search_locations is not None: dict['__path__'] = spec.submodule_search_locations Do you

[issue19944] Make importlib.find_spec load packages as needed

2016-04-04 Thread Eric Snow
Eric Snow added the comment: Yeah, I'm pretty sure that TODO is out of date. -- ___ Python tracker <http://bugs.python.org/issue19944> ___ ___ Python-bugs-l

[issue23496] Steps for Android Native Build of Python 3.4.2

2016-04-25 Thread Eric Snow
Eric Snow added the comment: FYI: https://mail.python.org/pipermail/python-dev/2016-April/144320.html -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue23

[issue26865] Meta-issue: support of the android platform

2016-04-26 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue26865> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19711] add test for changed portions after reloading a namespace package

2016-05-10 Thread Eric Snow
Eric Snow added the comment: I've gone ahead and pushed the patch. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker <http://bugs.pyth

[issue21099] Switch applicable importlib tests to use PEP 451 API

2016-05-10 Thread Eric Snow
Eric Snow added the comment: Could I get a quick review on this. There shouldn't be anything surprising or controversial here. I'm pretty confident about the patch and it's pretty low-impact so if I don't hear back in the next day or two I'll merge it. Note: the po

[issue21099] Switch applicable importlib tests to use PEP 451 API

2016-05-12 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 -Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.or

[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2016-05-12 Thread Eric Snow
Eric Snow added the comment: The last dependencies have now been closed! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue19711] add test for changed portions after reloading a namespace package

2016-05-12 Thread Eric Snow
Changes by Eric Snow : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker <http://bugs.python.org/issue19711> ___ ___ Python-bugs-list mailing list Unsub

[issue24254] Make class definition namespace ordered by default

2016-05-12 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file39456/just-default-to-odict.diff ___ Python tracker <http://bugs.python.org/issue24254> ___ ___ Python-bug

[issue24254] Make class definition namespace ordered by default

2016-05-12 Thread Eric Snow
Eric Snow added the comment: Here's a refresh of the patch that only sets the default definition namespace (and does not introduce __definition_order__). -- Added file: http://bugs.python.org/file42834/just-default-to-odict.diff ___ Python tr

[issue20703] RuntimeError caused by lazy imports in pdb

2015-02-26 Thread Eric Snow
Eric Snow added the comment: I haven't looked to closely but I'm guessing that pdb.set_trace() causes something to get imported (i.e. there's an import statement in a function body somewhere). Consequently sys.modules is updated (by that "distant" import statement

<    20   21   22   23   24   25   26   27   >