[issue15894] _PyImport_ReInitLock() doesn't check return value of PyThread_acquire_lock

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

[issue15892] _PyImport_GetDynLoadFunc() doesn't check return value of fstat()

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

[issue15905] Copy to fixed size buffer w/o check in sys_update_path

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

[issue12680] cPickle.loads is not thread safe due to non-thread-safe imports

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

[issue7559] TestLoader.loadTestsFromName swallows import errors

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

[issue15415] Add temp_dir() and change_cwd() to test.support

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

[issue16027] pkgutil doesn't support frozen modules

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

[issue16047] Tools/freeze no longer works in Python 3

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

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-11-12 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> works for me status: open -> closed ___ Python tracker <http://bugs.python.org/issue13863> ___ ___ Python-bugs-

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-11-12 Thread Eric Snow
Eric Snow added the comment: actually still valid for previous to 3.3 -- nosy: +eric.snow resolution: works for me -> status: closed -> open ___ Python tracker <http://bugs.python.org/i

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-11-12 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow status: pending -> open ___ Python tracker <http://bugs.python.org/issue13028> ___ ___ Python-bugs-list mai

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-11-12 Thread Eric Snow
Eric Snow added the comment: Is this still an issue? -- nosy: +eric.snow status: open -> pending ___ Python tracker <http://bugs.python.org/issue15599> ___ _

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

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

[issue16101] Verify all imported modules at startup are needed

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

[issue13290] get vars for object with __slots__

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

[issue8478] tokenize.untokenize first token missing failure case

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

[issue16144] misleading sentence in reference/import

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

[issue16213] Expose private functions in marshal used by importlib

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

[issue5128] compileall: consider ctime

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

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

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

[issue13028] python wastes linux users time by checking for dylib on each dynamic library load

2012-11-12 Thread Eric Snow
Changes by Eric Snow : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue13028> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10966] eliminate use of ImportError implicitly representing SkipTest

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

[issue15104] Unclear language in __main__ description

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

[issue16386] imp.find_module does not specify registry key it searches on windows

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

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

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

[issue8745] zipimport is a bit slow

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

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

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

[issue12428] functools test coverage

2012-11-13 Thread Eric Snow
Eric Snow added the comment: The following from the changeset left me with questions: -from _functools import partial, reduce +try: +from _functools import reduce +except ImportError: +pass * Why the try block when there wasn't one before? * Should reduce be added to __all__

[issue8400] zipimporter find_module fullname mis-documented

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

[issue16467] frozen importlib required for extending Python interpreter not public

2012-11-13 Thread Eric Snow
Changes by Eric Snow : -- nosy: +brett.cannon, eric.snow ___ Python tracker <http://bugs.python.org/issue16467> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12428] functools test coverage

2012-11-13 Thread Eric Snow
Eric Snow added the comment: > Possibly reduce could be handled in a similar way with a fallback python > implementation? Otherwise your suggestion of conditionally adding it to > __all__ > makes sense to me. In the meantime I'd expect the import of _functools.reduce to not

[issue16474] More code coverage for imp module

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

[issue16386] imp.find_module does not specify registry key it searches on windows

2012-11-15 Thread Eric Snow
Eric Snow added the comment: I agree with Andrew. -- ___ Python tracker <http://bugs.python.org/issue16386> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-15 Thread Eric Snow
Eric Snow added the comment: Though I haven't been able to get to this, I do have a demo of sorts that I've been using elsewhere: https://bitbucket.org/ericsnowcurrently/pylt/src/default/pylt/_importing.py?at=default#cl-225 -- ___ Pyth

[issue15767] add ModuleNotFoundError

2012-11-15 Thread Eric Snow
Eric Snow added the comment: I'd say ModuleNotFoundError. You could argue that other exception types aren't really errors in certain circumstances. I'd think that generally this would be an error. -- ___ Python tracker <http

[issue15767] add ModuleNotFoundError

2012-11-15 Thread Eric Snow
Eric Snow added the comment: Effectively the exception indicates that the import system had an error. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15031] Split .pyc parsing from module loading

2012-11-16 Thread Eric Snow
Eric Snow added the comment: Don't underestimate the potential value of having the fullname when overriding the method in a subclass. -- ___ Python tracker <http://bugs.python.org/is

[issue2953] _zip_directory_cache untested and undocumented

2012-11-17 Thread Eric Snow
Eric Snow added the comment: I'll take a look but can't say when. My wife's is having a baby in the next couple days so I'm a bit swamped. :) -- ___ Python tracker <http://bu

[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol

2012-11-27 Thread Eric Snow
Eric Snow added the comment: Keep in mind that it's pretty easy to roll your own CM wrapper: @contextlib.contextmanager def closes(file): yield file file.close() Then you can do this: with closes(StringIO()) as test: test.write("hi!") return test.getvalue() Thi

[issue12370] Use of super overwrites use of __class__ in class namespace

2012-11-27 Thread Eric Snow
Eric Snow added the comment: I agree with Benjamin re: __args__ and __kw__. -- ___ Python tracker <http://bugs.python.org/issue12370> ___ ___ Python-bugs-list m

[issue10914] Python sub-interpreter test

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

[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol

2012-11-27 Thread Eric Snow
Eric Snow added the comment: borrowed the time machine did we? ;) -- ___ Python tracker <http://bugs.python.org/issue1286> ___ ___ Python-bugs-list mailin

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-27 Thread Eric Snow
Eric Snow added the comment: Sorry, just now digging out of a massive backlog here. The originally proposed name of "source_to_code()" might be more appropriate than compile_source(). The relationship to compilation is not compulsory and the name/docstring/docs might imply that.

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2012-11-27 Thread Eric Snow
Eric Snow added the comment: This proposal only affects the initialization of sys.path[0], and not any of the other sys.path entries made by site.py or otherwise. -- ___ Python tracker <http://bugs.python.org/issue13

[issue16570] Absolute imports fail to take full path into account?

2012-11-28 Thread Eric Snow
Eric Snow added the comment: Things are working as they should here. The key points: * when running a script, sys.path[0] is set to the script's directory (with no script sys.path[0] is set to the CWD, see issue13475), * pkg/tests/__init__.py is loaded and executed twice: once as the s

[issue16570] Absolute imports fail to take full path into account?

2012-11-28 Thread Eric Snow
Eric Snow added the comment: oops. too slow. :) -- ___ Python tracker <http://bugs.python.org/issue16570> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16606] hashlib memory leak

2012-12-04 Thread Eric Snow
Changes by Eric Snow : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue16606> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16669] Docstrings for namedtuple

2012-12-13 Thread Eric Snow
Eric Snow added the comment: What is wrong with the following? class Point(namedtuple('Point', 'x y')): """A 2-dimensional coordinate x - the abscissa y - the ordinate """ This seems more clear to me. namedtuple is in som

[issue16669] Docstrings for namedtuple

2012-12-15 Thread Eric Snow
Eric Snow added the comment: +1, Terry -- ___ Python tracker <http://bugs.python.org/issue16669> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Eric Snow
Eric Snow added the comment: Patch looks good to me. Are there any other exceptions that might be included here? -- nosy: +brett.cannon, eric.snow ___ Python tracker <http://bugs.python.org/issue16

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

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

[issue16894] Function attribute access doesn't invoke methods in dict subclasses

2013-01-09 Thread Eric Snow
Eric Snow added the comment: Looks like a case where the concrete dict API is ignoring subtype implementations. In your example the attribute access will be handled by a LOAD_ATTR which calls PyObject_GetAttr() (Python/ceval.c:2369). That ends up calling PyFunction_Type.tp_getattro

[issue16991] Add OrderedDict written in C

2013-01-17 Thread Eric Snow
New submission from Eric Snow: Here's an initial stab at writing OrderedDict in C. Though, the implementation is not heavily optimized and isn't super subclass-friendly, my hope is that it's relatively close to the final version. I'm getting this up now to get some eyes

[issue16991] Add OrderedDict written in C

2013-01-19 Thread Eric Snow
Eric Snow added the comment: @Benjamin: Yeah, I've fixed that. @Ezio: Good point. I've touched that up. Once I have cleared up reference counting issues I'll put up a new patch. -- ___ Python tracker <http://bugs.pyt

[issue16803] Make test_importlib run tests under both _frozen_importlib and importlib._bootstrap

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

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

2013-01-25 Thread Eric Snow
Eric Snow added the comment: Also missing a pure-Python implementation: collections.defaultdict (relatively trivial) collections.deque In the spirit of what Brett said, I found that PyPy has an implementation already: https://bitbucket.org/pypy/pypy/src/default/lib_pypy/_collections.py

[issue1674555] sys.path in tests contains system directories

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

[issue16991] Add OrderedDict written in C

2013-01-25 Thread Eric Snow
Eric Snow added the comment: Here's a cleanup of test.test_collections that helps keep the subsequent patch (still forthcoming) cleaner. -- Added file: http://bugs.python.org/file28839/cleanup-test-collections.diff ___ Python tracker

[issue17037] Add conforms_to_pep399() to test.support

2013-01-25 Thread Eric Snow
New submission from Eric Snow: Related to issue #16817 and to my efforts on a C OrderedDict, I think it would be nice to have a class decorator that handles most of the PEP 399 requirements for you. The attached patch adds such a decorator to test.support. -- assignee: eric.snow

[issue16817] test___all__ affects other tests by doing too much importing

2013-01-25 Thread Eric Snow
Eric Snow added the comment: So the current solution is to temporarily put the relevant module in place in sys.modules, right? That seems to be the solution that Stefan recommended and used in the decimal module. Sounds good to me. I'm hitting this while doing the PEP 399 two-step fo

[issue17037] Add conforms_to_pep399() to test.support

2013-01-25 Thread Eric Snow
Eric Snow added the comment: One lingering doubt I have is about how I throw the two new test case classes into the globals. They're already getting bound, as a pair, to the original test class's name... -- ___ Python trac

[issue17037] Add conforms_to_pep399() to test.support

2013-01-25 Thread Eric Snow
Eric Snow added the comment: One step I left out is handling the whole pickle/copyreg case outlined by #16817. -- ___ Python tracker <http://bugs.python.org/issue17

[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state

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

[issue16737] Different behaviours in script run directly and via runpy.run_module

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

[issue16748] Make CPython test package discoverable

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

[issue11995] test_pydoc loads all Python modules

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

[issue17037] Add conforms_to_pep399() to test.support

2013-01-26 Thread Eric Snow
Eric Snow added the comment: The decorator also mitigates the problem described in issue #16835. -- ___ Python tracker <http://bugs.python.org/issue17037> ___ ___

[issue17037] Add conforms_to_pep399() to test.support

2013-01-26 Thread Eric Snow
Eric Snow added the comment: In my case I've been doing PEP 399 for collections.OrderedDict. It struck me that the boilerplate could be stowed away in a decorator. It's more than just adding a couple subclasses. Here's what it covers: * add the test case subclasses,

[issue17037] Add conforms_to_pep399() to test.support

2013-01-26 Thread Eric Snow
Eric Snow added the comment: > Do you have a real use case for the 'names' argument? My use case was with the tests for OrderedDict. The existing tests don't refer to collections.OrderedDict, but rather to OrderedDict (looked up from the globals). The names argume

[issue16991] Add OrderedDict written in C

2013-01-26 Thread Eric Snow
Eric Snow added the comment: > What's the reason for moving the OrderedDict tests in a separate file? Following the precedent of collections.deque and collections.defaultdict: * a big chunk of code * the default implementation will be coming via _col

[issue17042] Example in C-API memory management doc has confusing order

2013-01-26 Thread Eric Snow
New submission from Eric Snow: In http://docs.python.org/dev/c-api/memory.html#examples: char *buf1 = PyMem_New(char, BUFSIZ); char *buf2 = (char *) malloc(BUFSIZ); char *buf3 = (char *) PyMem_Malloc(BUFSIZ); ... PyMem_Del(buf3

[issue17042] Example in C-API memory management doc has confusing order

2013-01-26 Thread Eric Snow
Eric Snow added the comment: Thanks for clarifying, Stefan. Are you opposed to a comment in the example? -- ___ Python tracker <http://bugs.python.org/issue17

[issue17045] Improve C-API doc for PyTypeObject

2013-01-26 Thread Eric Snow
New submission from Eric Snow: http://docs.python.org/dev/c-api/typeobj.html I found the the documentation for PyTypeObject to be somewhat harder to use than it need be. In the end I distilled the info down for my own use. I'm comfortable with what I came up with, so I'd like t

[issue17042] Example in C-API memory management doc has confusing order

2013-01-26 Thread Eric Snow
Eric Snow added the comment: Sorry, I'd meant something like this: char *buf1 = PyMem_New(char, BUFSIZ); char *buf2 = (char *) malloc(BUFSIZ); char *buf3 = (char *) PyMem_Malloc(BUFSIZ); ... /* in reverse order */ PyMem_Del

[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate

2013-01-26 Thread Eric Snow
Eric Snow added the comment: (changing the title to disassociate it from a particular solution) >> * make sure the original test case does not get used (#16835), > > PEP 399 dictates that the base class does not inherit from > unittest.TestCase, so why would it be used? Sorry fo

[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate

2013-01-26 Thread Eric Snow
Eric Snow added the comment: > I think something similar has already been proposed and rejected on another > issue. Wouldn't surprise me. I'll look for it. I know there's been a bunch of traffic relative to PEP 399 and to test discovery, so I'm guessing I missed

[issue17045] Improve C-API doc for PyTypeObject

2013-01-26 Thread Eric Snow
Eric Snow added the comment: Here's an updated patch after feedback. Thanks Ezio! -- Added file: http://bugs.python.org/file28865/typeobj-doc.diff ___ Python tracker <http://bugs.python.org/is

[issue17045] Improve C-API doc for PyTypeObject

2013-01-26 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file28864/typeobj-doc.diff ___ Python tracker <http://bugs.python.org/issue17045> ___ ___ Python-bugs-list m

[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate

2013-01-28 Thread Eric Snow
Eric Snow added the comment: +1 to where Brett's taking this. I really like having the PEP399Tests class encapsulating the various boilerplate parts, with some of them as methods, rather than trying to pack them all into one all-powerful decorator. It would be worth raising an excepti

[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate

2013-01-28 Thread Eric Snow
Eric Snow added the comment: FWIW, here's a little more explanation on my original thoughts, none of which I'm married to. Most of the magic in my patch came messing with the globals (swap out the module and module attrs; add in the two new classes; ditch the original class).

[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate

2013-01-28 Thread Eric Snow
Eric Snow added the comment: +1 on requires_accelerator(). It could also be used for individual test methods. Similar decorators-as-methods could be added later, where appropriate, for other special cases, like handling the pickle situation described in #16817

[issue17093] Make importlib.abc more inheritance-friendly

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

[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()

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

[issue17098] Set __loader__ on modules imported by the C level

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

[issue17100] rotating an ordereddict

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

[issue13192] ImportError silences low-level OS errors

2013-02-01 Thread Eric Snow
Eric Snow added the comment: Are you thinking of issue 15833? -- ___ Python tracker <http://bugs.python.org/issue13192> ___ ___ Python-bugs-list mailing list Unsub

[issue13124] Add "Running a Build Slave" page to the devguide

2013-02-01 Thread Eric Snow
Eric Snow added the comment: Yeah, at some point I will. :) I've been pretty focused on implementing a C-OrderedDict, which I'm (hopefully) wrapping up pretty soon. Once that happens I'm going to revisit a bunch of the open tickets I have. If you want to push this sooner

[issue17108] import silently prefers package over module when both available

2013-02-02 Thread Eric Snow
Eric Snow added the comment: Other than the language reference (with its updated info on imports--thanks Barry!), what other documentation would benefit from a note on this? Somwhere in http://docs.python.org/dev/tutorial/modules.html? -- nosy: +eric.snow

[issue17108] import silently prefers package over module when both available

2013-02-02 Thread Eric Snow
Eric Snow added the comment: > By the way,... Yeah, PEP 420 (implemented in 3.3) introduced namespace packages. The new behavior you're thinking of is where a package doesn't need a __init__.py. So path-based lookup for modules, the order goes like this (for "import spa

[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()

2013-02-04 Thread Eric Snow
Eric Snow added the comment: My vote is for making this a ValueError in both cases (and amending the doc appropriately as well). The error amounts to the same thing: the module did not have loader (implicitly or explicitly). If someone wants to distinguish between the two they can

[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None

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

[issue17115] __loader__ = None should be fine

2013-02-04 Thread Eric Snow
Eric Snow added the comment: > In all honesty I would like to tweak imp.new_module()/PyModule_Create()... +1 -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issu

[issue17115] __loader__ = None should be fine

2013-02-04 Thread Eric Snow
Eric Snow added the comment: > [document that] the language reference and importlib docs now supersede the > PEP Agreed. PEP 302 is even crustier now than it was a year ago and Barry's new import page in the language reference obviates the need for 302 as the de

[issue16991] Add OrderedDict written in C

2013-02-04 Thread Eric Snow
Eric Snow added the comment: Here's an updated patch. I still have some ref-counting issues, but the patch is much closer to what I expect will be the final version. At this point it passes all the main unit tests (segfaults in some of the supplemental Mapping tests). One key thing is

[issue16991] Add OrderedDict written in C

2013-02-04 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file28762/odict.diff ___ Python tracker <http://bugs.python.org/issue16991> ___ ___ Python-bugs-list mailin

[issue16991] Add OrderedDict written in C

2013-02-04 Thread Eric Snow
Eric Snow added the comment: Looks like I didn't get the patch lined up to tip so the review link isn't showing up. I'll have to fix that tomorrow. -- ___ Python tracker <http://bugs.pyt

[issue17135] imp doc should direct to importlib

2013-02-05 Thread Eric Snow
Eric Snow added the comment: Agreed. It should also link to the new import section in the language reference rather than to the import statement. -- nosy: +eric.snow ___ Python tracker <http://bugs.python.org/issue17

[issue16991] Add OrderedDict written in C

2013-02-05 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file28971/cleanup-test-collections.diff ___ Python tracker <http://bugs.python.org/issue16991> ___ ___ Python-bug

[issue16991] Add OrderedDict written in C

2013-02-05 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file28972/odict.diff ___ Python tracker <http://bugs.python.org/issue16991> ___ ___ Python-bugs-list mailin

[issue16991] Add OrderedDict written in C

2013-02-05 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file28971/cleanup-test-collections.diff ___ Python tracker <http://bugs.python.org/issue16991> ___ ___ Pytho

<    14   15   16   17   18   19   20   21   22   23   >