261 Commits (ea59dbff16e305aa07ef5896cc59fb36dc5edac3)

Author SHA1 Message Date
Brett Cannon ea59dbff16 Issue #13959: Re-implement imp.cache_from_source() in Lib/imp.py. 14 years ago
Brett Cannon ed672d6872 Make path manipulation more robust for platforms with alternative path 14 years ago
Brett Cannon 24117a748b Issue #13959: Keep imp.get_magic() in C code, but cache in importlib 14 years ago
Brett Cannon 1032af95ff Issue #14585: test_import now runs all tests under 14 years ago
Brett Cannon 8ff6baf25b Issue #14581: Windows users are allowed to import modules w/o taking 14 years ago
Brett Cannon 91900eaf96 Have importlib.test.regrtest clear sys.path_importer_cache to make 14 years ago
Benjamin Peterson 2a481e58ff don't bother keeping a set we'll never use 14 years ago
Benjamin Peterson d76bc7abac rollback 005fd1fe31ab (see #14609 and #14582) 14 years ago
Brett Cannon 7bd329d800 Issue #12599: Be more strict in accepting None vs. a false-like object 14 years ago
Brett Cannon 273323cf68 Issue #14592: A relative import will raise a KeyError if __package__ 14 years ago
Brett Cannon 6f44d66bc4 Issue #13959: Rename imp to _imp and add Lib/imp.py and begin 14 years ago
Brett Cannon 881535b726 Issue #14582: Import returns the module returned by a loader instead 14 years ago
Philip Jenvey f8f3190d32 utilize startswith(tuple) 14 years ago
Brett Cannon 49f8d8b016 Handle importing pkg.mod by executing 14 years ago
Brett Cannon 44590e4786 Add some comments. 14 years ago
Brett Cannon fd0741555b Issue #2377: Make importlib the implementation of __import__(). 14 years ago
Brett Cannon bbb6680ee5 Have importlib take advantage of ImportError's new 'name' and 'path' 14 years ago
Brett Cannon d62cd5627f Issue #14500: Fix importlib.test.import_.test_packages to clean up 14 years ago
Brett Cannon 927d87470a If a module injects something into sys.modules as a side-effect of 14 years ago
Brett Cannon 0d4d410b2d Remove a dead docstring. 14 years ago
Brett Cannon b46a1793a7 Update importlib.invalidate_caches() to be more general. 14 years ago
Philip Jenvey 4b42ff609d unused imports, pep8 14 years ago
Brett Cannon 625cd23da4 Simplify importib._resolve_name(). 14 years ago
Brett Cannon 4b03b68635 Turn _return_module() into _handle_fromlist(). 14 years ago
Brett Cannon dfc32706a0 Make the benchmark recording more sensible for importlib.test.benchmark. 14 years ago
Brett Cannon f500778f65 Improper type for __package__ should raise TypeError, not ValueError. 14 years ago
Brett Cannon 068915cc8b Do a type check instead of an interface check. 14 years ago
Brett Cannon 34d8e41a47 Refactor importlib to make it easier to re-implement in C. 14 years ago
Charles-François Natali 6db1c40b37 Issue #14077: importlib: Fix regression introduced by de6703671386. 14 years ago
Antoine Pitrou b5c793a0b3 Issue #14063: fix test_importlib failure under OS X case-insensitive filesystems 14 years ago
Benjamin Peterson 6ddac006be put docstrings on functions 14 years ago
Antoine Pitrou b67075beb5 _relax_case -> _make_relax_case 14 years ago
Antoine Pitrou c541f8ef40 Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new importlib.invalidate_caches() function. 14 years ago
Brett Cannon 336b2f45e5 Fix a failing importlib test under Windows. 14 years ago
Brett Cannon 082f177c67 Fix importlib.test.__main__ to only worry about command-line flags when directly executed. 14 years ago
Brett Cannon f2e86751cc Optimize importlib's case-sensitivity check by wasting as little time as possible under case-sensitive OSs. 14 years ago
Brett Cannon 1f14bebe3c Have importlib.test use argparse instead of some hacked up solution. 14 years ago
Brett Cannon ba17fe256e Have importlib use os.replace() for atomic renaming. 14 years ago
Brett Cannon f58d45c649 Tweak the handling of the empty string in sys.path for importlib. 14 years ago
Brett Cannon 3b1a06c1ea importlib.__import__() now raises ValueError when level < 0. 14 years ago
Brett Cannon 7fab676e87 Refactor importlib.__import__() and _gcd_import() to facilitate using 14 years ago
Brett Cannon 0568d6fd4e Bring importlib in line w/ changes made in my personal bootstrap branch in the sandbox. 14 years ago
Philip Jenvey 353c10772a simplify 14 years ago
Brett Cannon 4a2e1a0da7 Undo a bad mq management thingy. 14 years ago
Brett Cannon 97771096ab Whitespace normalization. 14 years ago
Brett Cannon b4e63b3177 Use the cwd when the empty string is found in sys.path. This leads to 14 years ago
Brett Cannon 354c26ecd6 Move setup code from importlib.__init__ to 14 years ago
Brett Cannon 8490fab4ad Don't fail in the face of a lacking attribute when wrapping a 14 years ago
Brett Cannon cae1068e82 Re-order importlib benchmarks to be consistent. Also print out what implementation of __import__ is used. 14 years ago
Brett Cannon 466e6a90f2 Have importlib.test.benchmark test with tabnanny as a medium-sized test. 14 years ago