Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merged cookbook update from 3.2. | Vinay Sajip | 2012-04-16 | 1 | -0/+44 |
|\ | |||||
| * | Added cookbook example for BOM insertion. | Vinay Sajip | 2012-04-16 | 1 | -0/+44 |
| | | |||||
* | | Closes #14452: remove BOM insertion code. | Vinay Sajip | 2012-04-16 | 2 | -1/+3 |
|\ \ | |/ | |||||
| * | Closes #14452: remove BOM insertion code. | Vinay Sajip | 2012-04-16 | 2 | -2/+2 |
| | | |||||
* | | Fix #10854. Make use of the new path and name attributes on ImportError | Brian Curtin | 2012-04-16 | 3 | -2/+25 |
| | | | | | | | | for extension modules on Windows. | ||||
* | | merge | Brett Cannon | 2012-04-16 | 2 | -112/+114 |
|\ \ | |||||
| * \ | Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a ↵ | Antoine Pitrou | 2012-04-16 | 2 | -112/+114 |
| |\ \ | | |/ | | | | | | | test failure in test_ssl. | ||||
| | * | Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a ↵ | Antoine Pitrou | 2012-04-16 | 2 | -112/+117 |
| | | | | | | | | | | | | test failure in test_ssl. | ||||
* | | | Issue #13959: Re-implement imp.load_package() in imp.py. | Brett Cannon | 2012-04-16 | 2 | -173/+17 |
|/ / | | | | | | | | | Thanks to Eric Snow for helping with imp.load_module() (previous commit) which led to the removal of a bunch of C code. | ||||
* | | Issue #13959: Re-implement imp.load_module() in imp.py. | Brett Cannon | 2012-04-16 | 2 | -54/+28 |
| | | |||||
* | | merge | Brett Cannon | 2012-04-15 | 9 | -75/+369 |
|\ \ | |||||
| * | | Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType | Victor Stinner | 2012-04-15 | 9 | -75/+369 |
| | | | |||||
* | | | Consider load_dynamic() something to keep in _imp. | Brett Cannon | 2012-04-15 | 1 | -3/+4 |
| | | | |||||
* | | | Try to get hg to treat importlib.h as binary. | Brett Cannon | 2012-04-15 | 2 | -0/+2 |
|/ / | |||||
* | | Issue #13959: Simplify imp.reload() by relying on a module's | Brett Cannon | 2012-04-15 | 2 | -34/+13 |
| | | | | | | | | | | | | | | | | | | | | __loader__. Since import now sets __loader__ on all modules it creates and imp.reload() already relied on the attribute for modules that import didn't create, the only potential compatibility issue is if people were deleting the attribute on modules and expecting imp.reload() to continue to work. | ||||
* | | Update importlib.h | Brett Cannon | 2012-04-15 | 1 | -2616/+2616 |
| | | |||||
* | | Issue #13959: Rename imp to _imp and add Lib/imp.py and begin | Brett Cannon | 2012-04-15 | 10 | -2808/+2844 |
| | | | | | | | | | | | | | | rewriting functionality in pure Python. To start, imp.new_module() has been rewritten in pure Python, put into importlib (privately) and then publicly exposed in imp. | ||||
* | | merge | Brett Cannon | 2012-04-15 | 1 | -2/+2 |
|\ \ | |||||
| * | | utilize startswith(tuple) | Philip Jenvey | 2012-04-15 | 1 | -2/+2 |
| | | | |||||
* | | | Issue #14582: Import returns the module returned by a loader instead | Brett Cannon | 2012-04-15 | 5 | -500/+494 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of sys.modules when possible. This is being done for two reasons. One is to gain a little bit of performance by skipping an unnecessary dict lookup in sys.modules. But the other (and main) reason is to be a little bit more clear in how things should work from the perspective of import's interactions with loaders. Otherwise loaders can easily forget to return the module even though PEP 302 explicitly states they are expected to return the module they loaded. | ||||
* | | | Set ImportError.name when raising the exception in the case of None | Brett Cannon | 2012-04-15 | 1 | -2/+5 |
|/ / | | | | | | | found in sys.modules. | ||||
* | | Issue #13496: Merge from 3.2 | Mark Dickinson | 2012-04-15 | 3 | -2/+18 |
|\ \ | |/ | |||||
| * | Issue 13496: Fix bisect.bisect overflow bug for large collections. | Mark Dickinson | 2012-04-15 | 3 | -2/+18 |
| | | |||||
* | | Issue #13889: Merge fix from 3.2. | Mark Dickinson | 2012-04-15 | 2 | -0/+28 |
|\ \ | |/ | |||||
| * | Issue #13889: On MSVC builds, set FPU control word at runtime for all string ↵ | Mark Dickinson | 2012-04-15 | 2 | -0/+28 |
| | | | | | | | | <-> float conversions. Patch by Samuel Iseli and Stefan Krah. | ||||
* | | Issue #10576: Add a progress callback to gcmodule | Kristján Valur Jónsson | 2012-04-15 | 4 | -9/+249 |
| | | |||||
* | | Merge with 3.2: use ws2_32.lib rather than wsock32.lib on windows. | Kristján Valur Jónsson | 2012-04-15 | 4 | -26/+26 |
|\ \ | |/ | |||||
| * | Make all socket related modules link with ws2_32.lib on windows, like | Kristján Valur Jónsson | 2012-04-15 | 4 | -26/+26 |
| | | | | | | | | _socket does. Some were using the older wsock32.lib. | ||||
* | | Merge with remote. | Ross Lagerwall | 2012-04-15 | 1 | -4/+5 |
|\ \ | |||||
| * | | Be less verbose when building dbm. | Ross Lagerwall | 2012-04-15 | 1 | -4/+5 |
| | | | |||||
* | | | Plug a refleak. | Brett Cannon | 2012-04-15 | 1 | -2/+1 |
|/ / | |||||
* | | Clarify that one should not use __import__() directly. Also mention | Brett Cannon | 2012-04-15 | 1 | -3/+5 |
| | | | | | | | | PEP 328 in explaining how 'index' works. | ||||
* | | Handle importing pkg.mod by executing | Brett Cannon | 2012-04-15 | 4 | -253/+276 |
| | | | | | | | | | | __import__('mod', {'__packaging__': 'pkg', level=1) w/o properly (and thus not segfaulting). | ||||
* | | Rebuild importlib.h to incorporate added comments. | Brett Cannon | 2012-04-15 | 1 | -30/+30 |
| | | |||||
* | | IDLE was relying on implicit relative imports which have gone away in | Brett Cannon | 2012-04-15 | 1 | -3/+7 |
| | | | | | | | | | | Python 3.3 thanks to importlib finishing the work in PEP 328 that accidently got carried forward. | ||||
* | | Add some comments. | Brett Cannon | 2012-04-14 | 1 | -0/+2 |
| | | |||||
* | | merge with the tip | Brian Curtin | 2012-04-14 | 1 | -2/+2 |
|\ \ | |||||
| * | | Fix an import race condition. | Brett Cannon | 2012-04-14 | 1 | -2/+2 |
| | | | |||||
* | | | Fix Windows build | Brian Curtin | 2012-04-14 | 1 | -3/+4 |
|/ / | |||||
* | | Try to fix a sporadic test failure from what is probably a caching race ↵ | Brett Cannon | 2012-04-14 | 1 | -0/+1 |
| | | | | | | | | condition. | ||||
* | | Undo a C99 idiom. | Brett Cannon | 2012-04-14 | 1 | -2/+2 |
| | | |||||
* | | Issue #2377: Make importlib the implementation of __import__(). | Brett Cannon | 2012-04-14 | 38 | -599/+3597 |
| | | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__(). | ||||
* | | merge with 3.2 | Sandro Tosi | 2012-04-14 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | fix typo; thanks to Jérôme Mainka from docs@ | Sandro Tosi | 2012-04-14 | 1 | -1/+1 |
| | | |||||
* | | Merge highlight and spacing fixes in json example with 3.2. | Ezio Melotti | 2012-04-14 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | Fix highlight and spacing in json example. | Ezio Melotti | 2012-04-14 | 1 | -4/+4 |
| | | |||||
* | | #14535: merge with 3.2. | Ezio Melotti | 2012-04-14 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | #14535: fix code highlight in multiprocessing examples. Patch by Tshepang ↵ | Ezio Melotti | 2012-04-14 | 1 | -1/+4 |
| | | | | | | | | Lekhonkhobe. | ||||
* | | Merge #14399: corrected news item | R David Murray | 2012-04-14 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | #14399: corrected news item | R David Murray | 2012-04-14 | 1 | -4/+4 |
| | |