Nick Coghlan
8ecf50474c
Issue #15343 : Handle importlib.machinery.FileFinder instances in pkgutil.walk_packages (et al)
2012-07-15 21:19:18 +10:00
Nick Coghlan
85e729ec3b
Take the first step in resolving the messy pkgutil vs importlib edge cases by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ correctly so that runpy still works (Affects #15343 , #15314 , #15357 )
2012-07-15 18:09:52 +10:00
Larry Hastings
1191709b13
- Issue #15233 : Python now guarantees that callables registered with
...
the atexit module will be called in a deterministic order.
2012-07-14 18:20:37 -07:00
Larry Hastings
ad5ae0456e
- Issue #15238 : shutil.copystat now copies Linux "extended attributes".
2012-07-14 17:55:11 -07:00
Nick Coghlan
24711c4fac
Merge #15230 doc updates from 3.2
2012-07-15 00:38:43 +10:00
Nick Coghlan
a3d1cac4b2
Issue #15230 : Update runpy docs to clarify a couple of points that came up in this issue
2012-07-15 00:36:39 +10:00
Nick Coghlan
2f54b98c8c
Merge fix for #15230 from 3.2
2012-07-15 00:07:43 +10:00
Nick Coghlan
761bb11374
Close #15230 : runpy.run_path now sets __package__ correctly. Also refactored the runpy tests to use a more systematic approach
2012-07-14 23:59:22 +10:00
Antoine Pitrou
924ae1b040
Remove duplicate entry and fix order
2012-07-13 21:13:25 +02:00
Antoine Pitrou
f0b1baf362
Issue #15334 : skip test_dynamic_key when run in non-interactive mode.
...
Patch by Jeremy Kloth.
2012-07-13 21:08:41 +02:00
Brett Cannon
a6473f9cfd
Issues #15169 , #14599 : Make PyImport_ExecCodeModuleWithPathnames() use
...
Lib/imp.py for imp.source_from_cache() instead of its own C version.
Also change PyImport_ExecCodeModuleObject() to not infer the source
path from the bytecode path like
PyImport_ExecCodeModuleWithPathnames() does. This makes the function
less magical.
This also has the side-effect of removing all uses of MAXPATHLEN in
Python/import.c which can cause failures on really long filenames.
2012-07-13 13:57:03 -04:00
Brett Cannon
d104eef118
Issue #15053 : Make sure all functions related to the import lock have
...
the Python 3.3 change notice on them in case someone directly links to
the function(s).
2012-07-13 11:26:19 -04:00
Antoine Pitrou
282083d5f4
Issue #15300 : Ensure the temporary test working directories are in the same parent folder when running tests in multiprocess mode from a Python build.
...
Patch by Chris Jerdonek.
2012-07-11 19:19:14 +02:00
Antoine Pitrou
673eb6a0bb
Issue #15300 : Ensure the temporary test working directories are in the same parent folder when running tests in multiprocess mode from a Python build.
...
Patch by Chris Jerdonek.
2012-07-11 19:21:31 +02:00
Brett Cannon
461c813164
Issue #15111 : When a module was imported using a 'from import'
...
statement (e.g. ``from distutils import msvc9compiler``) that triggers
an ImportError of its own (e.g. the non-existence of winreg), let that
exception propagate instead of raising a generic ImportError for the
module being requested (e.g. msvc9compiler).
2012-07-10 10:05:00 -04:00
Martin v. Löwis
7d30b80a4e
Issue #15315 : Support VS 2010 in distutils cygwincompiler.
2012-07-10 07:07:06 +02:00
Antoine Pitrou
b2dd880e0a
Issue #15294 : Fix a regression in pkgutil.extend_path()'s handling of nested namespace packages.
2012-07-09 21:23:58 +02:00
Brett Cannon
b19449751f
Issue #15288 : Clarify that pkgutil.walk_packages() and friends will no
...
longer work as expected in Python 3.3 as importlib's loaders do not
implement the non-standard iter_modules() method. Also link to the
term "loader" in the requisite notes to help make it clearer what has
happened.
2012-07-09 14:10:23 -04:00
Brett Cannon
19a2f5961c
Issue #15056 : imp.cache_from_source() and source_from_cache() raise
...
NotimplementedError when sys.implementation.cache_tag is None.
Thanks to Pranav Ravichandran for taking an initial stab at the patch.
2012-07-09 13:58:07 -04:00
Brett Cannon
bf7eab077f
Issue #15256 : Re-use the ImportError exception message as defined by
...
importlib._bootstrap in imp to fix a grammatical mistake.
Thanks to Marc Abramowitz for the patch.
2012-07-09 13:24:34 -04:00
Senthil Kumaran
612a815820
revert the changes done for issue14826 - quoting witin Request is not desirable.
2012-07-08 18:00:47 -07:00
Senthil Kumaran
168456df11
revert the changes done for issue14826 - quoting witin Request is not desirable.
2012-07-08 17:47:25 -07:00
Terry Jan Reedy
dd445e8ece
Merge 3.2 closes issue 13557
2012-07-08 17:52:58 -04:00
Terry Jan Reedy
83efd6cbb6
Issue #13557 : Clarify effect of giving two different namespaces to exec or
...
execfile().
2012-07-08 17:36:14 -04:00
Benjamin Peterson
68aecb5619
add news note for 85cccc38d01c
2012-07-08 11:06:04 -07:00
Antoine Pitrou
507507473e
Issue #15291 : Fix a memory leak where AST nodes where not properly deallocated.
2012-07-08 12:43:32 +02:00
Antoine Pitrou
bc07a5c913
Issue #15110 : Fix the tracebacks generated by "import xxx" to not show the importlib stack frames.
2012-07-08 12:01:27 +02:00
Senthil Kumaran
25bfb529bd
issue 14826 - Address the buildbot failure quote of url is the required change ( explanation msg164973)
2012-07-08 02:16:08 -07:00
Senthil Kumaran
45ce4dc73e
issue 14826 - Address the buildbot failure ( explanation msg164973)
2012-07-08 02:08:48 -07:00
Ross Lagerwall
8d459f0cb8
#15284 : Skip {send,recv}msg tests with disabled IPv6
...
Patch by Brian Brazil.
2012-07-08 09:53:57 +02:00
Senthil Kumaran
540715a369
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:15:52 -07:00
Senthil Kumaran
b7451cecad
Fix issue14826 - make urllib.request.Request quoted url consistent with URLOpener open method.
...
Patch contributed by Stephen Thorne.
2012-07-07 17:11:44 -07:00
Senthil Kumaran
a5e0eaf2e1
Fix 5931 - Python runtime hardcoded in wsgiref.simple_server - Now it specifies an implementation specific term.
2012-07-07 14:29:58 -07:00
Ross Lagerwall
5aa4354297
Merge with remote.
2012-07-07 18:42:57 +02:00
Ross Lagerwall
121d59ffa9
#15277 : Fix a resource leak in support.py when IPv6 is disabled.
...
The leak occurred by setting:
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
before running test_support.
Patch by Brian Brazil.
2012-07-07 18:40:32 +02:00
Florent Xicluna
109d57358e
Issue #13248 : io: Remove obsolete argument "max_buffer_size" of BufferedWriter and BufferedRWPair.
2012-07-07 17:03:22 +02:00
Florent Xicluna
af1adbeedd
Issue #13248 : argparse: Remove obsolete argument "version" of ArgumentParser.
2012-07-07 17:02:22 +02:00
Nick Coghlan
3008ec070f
Issue 14814: Ensure ordering semantics across all 3 entity types in ipaddress are consistent and well-defined
2012-07-08 00:45:33 +10:00
Nick Coghlan
9a9c28ce7a
Issue 14814: Correctly return NotImplemented from ipaddress._BaseNetwork.__eq__
2012-07-07 23:05:59 +10:00
Florent Xicluna
fed2c51eea
Merge branch
2012-07-07 12:26:56 +02:00
Florent Xicluna
11f0b41e9d
Issue #14990 : tokenize: correctly fail with SyntaxError on invalid encoding declaration.
2012-07-07 12:13:35 +02:00
Nick Coghlan
36f8dcde06
Issue 14814: Provide more informative error messages in ipaddress, and ensure that errors are caught as expected
2012-07-07 19:23:53 +10:00
doko@ubuntu.com
9dc823d2e0
- Issue #15268 : Search curses.h in /usr/include/ncursesw.
2012-07-07 03:06:42 +02:00
Antoine Pitrou
7d7f40c613
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:52:58 +02:00
Antoine Pitrou
9235b254dc
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:48:24 +02:00
Richard Oudkerk
2240ac1eae
Issue #15261 : Stop os.stat(fd) crashing on Windows when fd not open.
2012-07-06 12:05:32 +01:00
Antoine Pitrou
74de153681
Issue #15020 : The program name used to search for Python's path is now python3 under Unix, not python.
2012-07-05 20:57:33 +02:00
Antoine Pitrou
01cca5e451
Issue #15020 : The program name used to search for Python's path is now "python3" under Unix, not "python".
2012-07-05 20:56:30 +02:00
Senthil Kumaran
f28fbabc7f
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:33:45 -07:00
Senthil Kumaran
f01a337950
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:28:16 -07:00