[issue19621] Reimporting this and str.translate()

2013-11-15 Thread Eric Snow
Eric Snow added the comment: The this module was actually the subject of a similar proposal recently: issue19499. The same arguments there for leaving the module alone apply here. (Amon other things, it's a neat little artifact: http://www.wefearchange.org/2010/06/import-this-and-z

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-18 Thread Eric Snow
Eric Snow added the comment: I left a review relative to the use of the _path attribute (which shouldn't be used). -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/is

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-11-18 Thread Eric Snow
Eric Snow added the comment: Sorry for any confusion, Claudiu. the_module.__path__ only indicates that the module is a package. So until you can take advantage of PEP 451, you're stuck with the _path check (or several other unappealing hack) on line 224 of unittest-17457-3.patch. Ho

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

2013-11-18 Thread Eric Snow
Eric Snow added the comment: Brett: looks like something frozen-related broke due to 6d1656ab2c85a527c. test_frozen in test_frozen.py is failing now because frozen modules no longer have a __cached__ attribute (which was previously set to None). Previously it was set in

[issue19655] Replace the ASDL parser carried with CPython

2013-11-19 Thread Eric Snow
Changes by Eric Snow : -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue19655> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19653] Generalize usage of _PyUnicodeWriter for repr(obj): add _PyObject_ReprWriter()

2013-11-19 Thread Eric Snow
Eric Snow added the comment: As far as I'm aware, the performance of __repr__() for any object is not much of a concern. Repr is mostly for debugging and interactive use, so it's already fast/efficient enough for the target consumers: us. :) Making __repr__() easier to write or m

[issue3158] Doctest fails to find doctests in extension modules

2013-11-19 Thread Eric Snow
Eric Snow added the comment: Larry: thoughts? -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue3158> ___ ___ Python-bugs-list mailing list Unsub

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread Eric Snow
Eric Snow added the comment: > they make the decorator harder to read. I agree. -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issu

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

2013-11-20 Thread Eric Snow
Eric Snow added the comment: I've updated the TODO a little as well as cleaning up the XXX markers. The relevant ones are mostly just open questions on implementation tweaks, so nothing major. Otherwise my goal is to finish as much as possible of the non-critical items before the

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-11-21 Thread Eric Snow
Eric Snow added the comment: FYI, the C OrderedDict implementation in #16991 implements its own doubly-linked list, built around the needs of OrderedDict. I looked into BSD's queue.h [1], but it ended up simpler to roll my own. [1] http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/queue.

[issue19640] Drop _source attribute of namedtuple

2013-11-21 Thread Eric Snow
Eric Snow added the comment: As an alternative, how about turning _source into a property? -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue19

[issue19700] Update runpy for PEP 451

2013-11-22 Thread Eric Snow
New submission from Eric Snow: This is closely related to issue #19697. -- ___ Python tracker <http://bugs.python.org/issue19700> ___ ___ Python-bugs-list mailin

[issue19709] Check pythonrun.c is fully using PEP 451

2013-11-22 Thread Eric Snow
New submission from Eric Snow: Isn't this basically the same thing as issue #19697? -- ___ Python tracker <http://bugs.python.org/issue19709> ___ ___ Pytho

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-11-22 Thread Eric Snow
Eric Snow added the comment: See http://www.python.org/dev/peps/pep-0451/#deprecations. -- ___ Python tracker <http://bugs.python.org/issue19713> ___ ___ Pytho

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

2013-11-22 Thread Eric Snow
Eric Snow added the comment: Failing buildbot: http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/9630/steps/test/logs/stdio test.test_module.ModuleTests.test_module_repr_source test.test_pkgutil.ExtendPathTests.test_iter_importers (passed when retried

[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

[issue19709] Check pythonrun.c is fully using PEP 451

2013-11-22 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> duplicate status: pending -> closed superseder: -> refactor pythonrun.c to make use of specs (__main__.__spec__) ___ Python tracker <http://bugs.python.or

[issue19701] Update multiprocessing for PEP 451

2013-11-22 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue19701> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2013-11-22 Thread Eric Snow
Eric Snow added the comment: +1 -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue19696> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-11-22 Thread Eric Snow
Eric Snow added the comment: I was thinking the same thing as Antoine. 18 fits in more closely to what I understand is the purpose of asyncio (the focus on IO). -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue19

[issue19721] Move all test_importlib utility code into test_importlib.util

2013-11-22 Thread Eric Snow
Eric Snow added the comment: +1 -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue19721> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Eric Snow
Eric Snow added the comment: FWIW, I agree with Antoine about making those PyCompile_ functions private (leading "_"). -- nosy: +eric.snow ___ Python tracker <http://bugs.python.o

[issue19724] test_pkgutil buildbot failure (related to PEP 451)

2013-11-22 Thread Eric Snow
New submission from Eric Snow: http://buildbot.python.org/all/builders/x86%20Gentoo%203.x/builds/5448/steps/test/logs/stdio == ERROR: test_iter_importers (test.test_pkgutil.ExtendPathTests

[issue19724] test_pkgutil buildbot failure (related to PEP 451)

2013-11-22 Thread Eric Snow
Eric Snow added the comment: This appears to be order-related, like the last failure was. To reproduce: $ ./python -m test test_importlib test_pkgutil -- ___ Python tracker <http://bugs.python.org/issue19

[issue19724] test_pkgutil buildbot failure (related to PEP 451)

2013-11-22 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue19724> ___ ___ Python-bugs-list

[issue19640] Drop _source attribute of namedtuple

2013-11-22 Thread Eric Snow
Eric Snow added the comment: A while back, because of those python-ideas discussions, Raymond added a link at the bottom of the namedtuple section of the docs at http://docs.python.org/3.4/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields. The link points to a

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-11-22 Thread Eric Snow
Eric Snow added the comment: It's definitely worth it to be more explicit. (Brett had referenced msg202663.) When I get some time I'll update this ticket with a list of the specific deprecation items. -- ___ Python trac

[issue19697] refactor pythonrun.c to make use of specs (__main__.__spec__)

2013-11-22 Thread Eric Snow
Eric Snow added the comment: I've already started on this somewhat. However, I'm going to close out more of the other PEP 451 issues before going any further. Nick: when do you think things will settle down that you could field a question or two and some reviews relative to th

[issue19655] Replace the ASDL parser carried with CPython

2013-11-25 Thread Eric Snow
Eric Snow added the comment: The concern, as far as I understand it, is that any change might introduce regressions or even new bugs in the next beta. Something like swapping out the parser generator implementation isn't a bug fix, but it isn't a new language (incl. stdlib) feat

[issue19820] docs are missing info about module attributes

2013-11-27 Thread Eric Snow
Changes by Eric Snow : -- keywords: +easy ___ Python tracker <http://bugs.python.org/issue19820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19820] docs are missing info about module attributes

2013-11-27 Thread Eric Snow
New submission from Eric Snow: The docs for the inspect module and the types module do not list all the import-related module attributes. I'm guessing they've been out of sync a while. The docstring for for inspect.ismodule() is likewise missing information. -- assignee: d

[issue19706] Check if inspect needs updating for PEP 451

2013-11-27 Thread Eric Snow
New submission from Eric Snow: The inspect module doesn't need any changes. -- resolution: -> works for me stage: -> committed/rejected type: -> enhancement ___ Python tracker <http://bugs.pyth

[issue19702] Update pickle to PEP 451

2013-11-27 Thread Eric Snow
New submission from Eric Snow: I don't recall the specifics of how we'd talked about making use of module specs in pickle. I vaguely remember (or misremember ) something related to saving __main__.__spec__.name in the pickle rather than __main__.__name__. Anyone have anything mor

[issue19821] pydoc.ispackage() could be more accurate

2013-11-27 Thread Eric Snow
New submission from Eric Snow: pydoc.ispackage() is a best-effort guess at whether or not a path is the location of a package. However, it uses hard-coded suffixes when matching file names, which can miss files (e.g. extension modules and sourceless packages on Windows). It should probably

[issue19703] Upate pydoc to PEP 451

2013-12-05 Thread Eric Snow
New submission from Eric Snow: Here are the functions that should (?) be updated: synopsis() importfile() safeimport()? HTMLDoc.docmodule() HTMLDoc.index() TextDoc.docmodule() ModuleScanner.run()? -- ___ Python tracker <http://bugs.python.

[issue19701] Update multiprocessing for PEP 451

2013-12-05 Thread Eric Snow
Eric Snow added the comment: In Lib/multiprocessing/spawn.py the following need changing: get_preparation_data() import_main_path() -- dependencies: +refactor pythonrun.c to make use of specs (__main__.__spec__) ___ Python tracker <h

[issue19703] Update pydoc to PEP 451

2013-12-05 Thread Eric Snow
Changes by Eric Snow : -- title: Upate pydoc to PEP 451 -> Update pydoc to PEP 451 ___ Python tracker <http://bugs.python.org/issue19703> ___ ___ Python-

[issue19697] refactor pythonrun.c to make use of specs (__main__.__spec__)

2013-12-05 Thread Eric Snow
Changes by Eric Snow : -- dependencies: +Update runpy for PEP 451 ___ Python tracker <http://bugs.python.org/issue19697> ___ ___ Python-bugs-list mailin

[issue19698] Implement _imp.exec_builtin and exec_dynamic

2013-12-05 Thread Eric Snow
Eric Snow added the comment: Is the problem here that builtins (and extension modules) don't necessarily obey the rules to the letter? load_module() is supposed to use whatever is in sys.modules. [1] (BuiltinImporter.load_module() is essentially a synonym for _imp.init_builtin(),

[issue19700] Update runpy for PEP 451

2013-12-05 Thread Eric Snow
Eric Snow added the comment: _run_module_as_main() is particularly related to #19697. -- ___ Python tracker <http://bugs.python.org/issue19700> ___ ___ Python-bug

[issue19851] reload problem with submodule

2013-12-07 Thread Eric Snow
Eric Snow added the comment: This is actually a problem with importlib.reload() (which imp.reload() simply wraps). The attached patch provides a test that reproduces the error. I'll work on a fix ASAP. Interestingly, the kind of failure depends on frozen vs. source impo

[issue19851] reload problem with submodule

2013-12-07 Thread Eric Snow
Eric Snow added the comment: Actually, they're both getting the same error: AttributeError: 'NoneType' object has no attribute 'name' I forgot to clear the submodule from sys.modules first. -- ___ Python tracker <http:

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.ModuleSpec.__eq__() is highly sensitive to loader.__eq__()

2013-12-07 Thread Eric Snow
New submission from Eric Snow: ModuleSpec.__eq__() does a comparision of its various attributes, one of them being the loader. However, the __eq__() of the path-based loaders is just the stock one that compares object identity. So most -- messages: 205515 nosy: brett.cannon

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-07 Thread Eric Snow
Eric Snow added the comment: (my browser farted the half finished report into existence :P ) The __eq__() implementation of the path-based loaders in importlib is just the stock one that compares object identity. So two that are effectively the same compare unequal. This has a material

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-07 Thread Eric Snow
Changes by Eric Snow : -- Removed message: http://bugs.python.org/msg205515 ___ Python tracker <http://bugs.python.org/issue19927> ___ ___ Python-bugs-list mailin

[issue19851] reload problem with submodule

2013-12-07 Thread Eric Snow
Eric Snow added the comment: The problem was that importlib.reload() was not passing the parent's __path__ to importlib._bootstrap._find_spec(). This was a consequence of us restoring the pre-3.3 reload semantics. Patch attached. (Note to self: add Misc/NEWS entry) -- stage:

[issue19851] reload problem with submodule

2013-12-07 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file33033/issue19851-test.diff ___ Python tracker <http://bugs.python.org/issue19851> ___ ___ Python-bug

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-07 Thread Eric Snow
Eric Snow added the comment: Here's a patch. -- keywords: +patch stage: test needed -> patch review Added file: http://bugs.python.org/file33038/issue19927-loader-eq.diff ___ Python tracker <http://bugs.python.org

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

2013-12-07 Thread Eric Snow
Eric Snow added the comment: Good catch. My preference would be for (c) simply add a setter for the property that sets the underlying private variable to True or False. -- ___ Python tracker <http://bugs.python.org/issue18

[issue19851] reload problem with submodule

2013-12-09 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-09 Thread Eric Snow
Eric Snow added the comment: Good point, Nick. Here's a patch that follows your recommendation on both points. -- Added file: http://bugs.python.org/file33072/issue19927-loader-eq.diff ___ Python tracker <http://bugs.python.org/is

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-09 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file33038/issue19927-loader-eq.diff ___ Python tracker <http://bugs.python.org/issue19927> ___ ___ Python-bug

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

2013-12-09 Thread Eric Snow
Eric Snow added the comment: Here's a patch for adding a setter for ModuleSpec.has_location. -- Added file: http://bugs.python.org/file33073/issue18864-has-location-setter.diff ___ Python tracker <http://bugs.python.org/is

[issue19939] Deprecate portions or all of pkgutil module.

2013-12-09 Thread Eric Snow
New submission from Eric Snow: In the last Python releases, particularly 3.3 and 3.4, we've made improvements to the import machinery that render (at least) portions of pkgutil obsolete. Here's a breakdown of the public API of pkgutil: get_importer() - duplicate of

[issue19700] Update runpy for PEP 451

2013-12-10 Thread Eric Snow
Eric Snow added the comment: patch LGTM -- ___ Python tracker <http://bugs.python.org/issue19700> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19944] Make importlib.find_spec load packages as needed

2013-12-10 Thread Eric Snow
Eric Snow added the comment: As a testament to counter-intuitive API, I did not even realize this about either find_loader() or find_spec() until the bug the other day with reloading submodules. So I'm on board! As to the best approach, I'll argue for keeping just 1 function. I

[issue19701] Update multiprocessing for PEP 451

2013-12-10 Thread Eric Snow
Eric Snow added the comment: This came up in issue19946. -- nosy: +sbt ___ Python tracker <http://bugs.python.org/issue19701> ___ ___ Python-bugs-list mailin

[issue19946] Have multiprocessing raise ImportError when spawning a process that can't find the "main" module

2013-12-10 Thread Eric Snow
Eric Snow added the comment: There is definitely room for improvement relative to module specs and __main__ (that's the topic of issue #19701). That issue is waiting for __main__ to get a proper spec (see issues #19700 and #19697). -- ___ P

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-10 Thread Eric Snow
Eric Snow added the comment: Here's a patch for the deprecations (and API additions) in the importlib docs. -- keywords: +patch Added file: http://bugs.python.org/file33088/issue19713-importlib-docs.diff ___ Python tracker <http://bugs.py

[issue19710] Make sure documentation for PEP 451 is finished

2013-12-10 Thread Eric Snow
Eric Snow added the comment: I've attached a patch to issue19713 (file33088) that adds documentation for the new APIs. Also, there were some good reviews in issue18864 (especially for file32381) that never got fully addressed. -- ___ P

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

2013-12-11 Thread Eric Snow
Changes by Eric Snow : -- dependencies: -Implement _imp.exec_builtin and exec_dynamic ___ Python tracker <http://bugs.python.org/issue18864> ___ ___ Python-bug

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2013-12-11 Thread Eric Snow
Changes by Eric Snow : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue19714> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19944] Make importlib.find_spec load packages as needed

2013-12-11 Thread Eric Snow
Eric Snow added the comment: It looks like there are two concepts at play though: 1. side-effect-free vs. may-have-side-effects 2. just-find-the-spec-dangit vs. find-the-spec-relative-to-submodule-search-locations-I-already-know In the case of #1, providing the path is just a means to an end

[issue19968] Using DESTDIR breaks sys.path

2013-12-12 Thread Eric Snow
Changes by Eric Snow : -- nosy: +lemburg ___ Python tracker <http://bugs.python.org/issue19968> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19944] Make importlib.find_spec load packages as needed

2013-12-12 Thread Eric Snow
Eric Snow added the comment: Nick: that sounds good to me. I like the idea of find_spec() being the same as import_module(), minus actually loading the module. In that spirit, here's a rough patch that accomplishes that. It refactors things a bit to get there. Considering where we a

[issue19944] Make importlib.find_spec load packages as needed

2013-12-12 Thread Eric Snow
Eric Snow added the comment: Here's a version that I'd feel more comfortable with for 3.4 (with the intent of refactoring in 3.5). -- Added file: http://bugs.python.org/file33112/issue19944-find-spec-mirror-import-module-simple.diff

[issue19710] Make sure documentation for PEP 451 is finished

2013-12-16 Thread Eric Snow
Eric Snow added the comment: New changeset 2c27c0e5bc50 by Eric Snow in branch 'default': Issue #19713: Update importlib docs for module spec changes, including deprecations. http://hg.python.org/cpython/rev/2c27c0e5bc50 New changeset b78de8029606 by Eric Snow in branch 'default

[issue19710] Make sure documentation for PEP 451 is finished

2013-12-16 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending type: -> enhancement ___ Python tracker <http://bugs.python

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-16 Thread Eric Snow
Eric Snow added the comment: The doc deprecations should now be complete. -- ___ Python tracker <http://bugs.python.org/issue19713> ___ ___ Python-bugs-list mailin

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-16 Thread Eric Snow
Eric Snow added the comment: P.S. changeset b78de8029606 should have referred to #19710. -- ___ Python tracker <http://bugs.python.org/issue19713> ___ ___ Pytho

[issue19710] Make sure documentation for PEP 451 is finished

2013-12-16 Thread Eric Snow
Eric Snow added the comment: I'm leaving this as pending for the moment in case we notice anything I missed. -- status: pending -> open ___ Python tracker <http://bugs.python.org

[issue19710] Make sure documentation for PEP 451 is finished

2013-12-16 Thread Eric Snow
Changes by Eric Snow : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue19710> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-16 Thread Eric Snow
Eric Snow added the comment: Here's a patch that simply adds all the deprecation warnings. It does not include any effort to silence the zillion warnings that happen when the test suite is run with -Wall. I plan on addressing all those when I have some time. That will be a matt

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-16 Thread Eric Snow
Eric Snow added the comment: I'd meant to do that. I'll update the patch when I have a chance. -- ___ Python tracker <http://bugs.python.org/issue19713> ___ __

[issue20020] "modernize" the modulefinder module

2013-12-18 Thread Eric Snow
New submission from Eric Snow: The modulefinder module (Lib/modulefinder.py) provides a ModuleFinder class (plus 2 helpers) you can use to see what modules a script imports (directly or indirectly). The module's implementation is centered on the old imp.find_/load_module() API (whic

[issue20021] "modernize" makeopcodetargets.py

2013-12-18 Thread Eric Snow
New submission from Eric Snow: Python/makeopcodetargets.py uses deprecated imp APIs. It should be refactored to use newer import-related APIs. -- components: Library (Lib) messages: 206577 nosy: eric.snow priority: low severity: normal status: open title: "mode

[issue20022] "modernize" the Mac bundlebuilder.py script

2013-12-18 Thread Eric Snow
New submission from Eric Snow: Mac/Tools/bundlebuilder.py uses deprecated imp APIs. It should be refactored to use the current import-related APIs. -- messages: 206578 nosy: eric.snow priority: low severity: normal status: open title: "modernize" the Mac bundlebuilder.py s

[issue19700] Update runpy for PEP 451

2013-12-18 Thread Eric Snow
Eric Snow added the comment: Thanks for working this out, Nick! -- ___ Python tracker <http://bugs.python.org/issue19700> ___ ___ Python-bugs-list mailin

[issue19710] Make sure documentation for PEP 451 is finished

2013-12-18 Thread Eric Snow
Eric Snow added the comment: If anyone notices any issues with the doc changes, please open a new issue. -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issu

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-18 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file33172/issue19713-deprecation-warnings.diff ___ Python tracker <http://bugs.python.org/issue19713> ___ ___

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-18 Thread Eric Snow
Eric Snow added the comment: Here's an updated patch that does most of the deprecations and adjustments/silencings to accommodate the deprecations. The main things left to adjust are many importlib tests and pkgutil/test_pkgutil. I'm still on the fence about deprecation wa

[issue18576] Rename and document test.script_helper as test.support.script_helper

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

[issue16492] Add a load_parents argument to importlib.find_loader()

2013-12-19 Thread Eric Snow
Eric Snow added the comment: find_loader() is now deprecated and we're going to support auto-importing parent modules in find_spec() (see #19944) -- nosy: +eric.snow resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed supers

[issue19944] Make importlib.find_spec load packages as needed

2013-12-19 Thread Eric Snow
Eric Snow added the comment: I've closed #16492 in favor of this ticket. -- ___ Python tracker <http://bugs.python.org/issue19944> ___ ___ Python-bugs-list m

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-19 Thread Eric Snow
Eric Snow added the comment: I'm glad you spoke up, Nick. Holding off on the DeprecationWarnings is fine with me. It's not like we are going to drop support for the APIs before Python 4! That said, DeprecationWarnings are disabled by default. So how big a deal do you think it i

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-19 Thread Eric Snow
Eric Snow added the comment: Sounds good. Thanks for the explanation. It sounds like you're effectively concerned just with finder.find_module() and loader.load_module() (which is fine with me). Everything else (including some of the ABCs) is 3.3-only. For the sake of simplicity I

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-20 Thread Eric Snow
Eric Snow added the comment: Unless there are objections, I'll commit this in the next day or two. -- ___ Python tracker <http://bugs.python.org/is

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-21 Thread Eric Snow
Eric Snow added the comment: My bad, Larry. I guess I was reading between the lines too much. :) -- ___ Python tracker <http://bugs.python.org/issue19

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-21 Thread Eric Snow
Eric Snow added the comment: Yeah, it was while writing tests that I ran into this. -- ___ Python tracker <http://bugs.python.org/issue19927> ___ ___ Python-bug

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-21 Thread Eric Snow
Eric Snow added the comment: Right now say you have 2 module specs that are the same. The only difference is that the 2 loaders are not the same instance (they were created separately with the same arguments, ergo equal). The two specs will not compare as equal even though they are equal

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-23 Thread Eric Snow
Eric Snow added the comment: I'm fine with this. Thanks, Larry, for your attentiveness and diligence. -- ___ Python tracker <http://bugs.python.org/is

[issue19944] Make importlib.find_spec load packages as needed

2013-12-27 Thread Eric Snow
Eric Snow added the comment: Any thoughts on the latest patch? -- ___ Python tracker <http://bugs.python.org/issue19944> ___ ___ Python-bugs-list mailin

[issue20097] Bad use of `self` in importlib

2014-01-01 Thread Eric Snow
Eric Snow added the comment: Here's a patch with tests that cover find_module() and find_spec() for WindowsRegistryFinder (the missing case) and fixes the bug. -- keywords: +patch nosy: +eric.snow stage: test needed -> patch review Added file: http://bugs.python.org/f

[issue20097] Bad use of `self` in importlib

2014-01-01 Thread Eric Snow
Eric Snow added the comment: The patch passes on my linux box and on my windows 7 laptop (using Visual Studio 2010 Express). -- ___ Python tracker <http://bugs.python.org/issue20

[issue20097] Bad use of `self` in importlib

2014-01-01 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file33294/issue20097-tests.diff ___ Python tracker <http://bugs.python.org/issue20097> ___ ___ Python-bug

[issue20097] Bad use of `self` in importlib

2014-01-01 Thread Eric Snow
Eric Snow added the comment: Here's an updated patch that fixes as copy-and-paste mistake. -- Added file: http://bugs.python.org/file33295/issue20097-tests.diff ___ Python tracker <http://bugs.python.org/is

[issue20097] Bad use of `self` in importlib

2014-01-02 Thread Eric Snow
Eric Snow added the comment: Thanks for the review, Victor. As to that note, it is the subject of issue #19714. -- assignee: brett.cannon -> eric.snow dependencies: -Add tests for importlib.machinery.WindowsRegistryFinder resolution: -> fixed stage: patch review ->

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2014-01-02 Thread Eric Snow
Eric Snow added the comment: I added 2 rudimentary tests for issue #20097 which gives at least coverage in the test suite, but we need the following tests still: * registry entry exists and module is found (spec returned) * registry entry exists and module is not found (None returned

[issue19944] Make importlib.find_spec load packages as needed

2014-01-02 Thread Eric Snow
Eric Snow added the comment: Good points, Nick. I was trying to limit touches on _bootstrap.py for 3.4, but that "simple" patch is mostly just a hacky band-aid. Here's a patch that hopefully stands on its own and still limits touches. (The patch is the bare-bones changes on

[issue19944] Make importlib.find_spec load packages as needed

2014-01-03 Thread Eric Snow
Eric Snow added the comment: find_spec() is at package level because find_module() is and for no other good reason I'm aware of. I'd be just fine with moving it to util. I don't expect it to be used enough to warrant that top-level placement. Regarding builtins.__import__(),

<    16   17   18   19   20   21   22   23   24   25   >