]>
granicus.if.org Git - python/log
Victor Stinner [Mon, 14 Mar 2011 19:15:47 +0000 (15:15 -0400)]
Issue #3080: Use repr() to format the module name on error
Victor Stinner [Mon, 14 Mar 2011 19:05:12 +0000 (15:05 -0400)]
Fix imp.cache_from_source() if the directory name contains a dot
If the directory name contains a dot but not the filename, don't strip at the
dot.
Victor Stinner [Mon, 14 Mar 2011 18:53:28 +0000 (14:53 -0400)]
Issue #3080: imp.new_module() uses Unicode
Victor Stinner [Mon, 14 Mar 2011 19:19:39 +0000 (15:19 -0400)]
Issue #3080: find_module() returns the path as Unicode
Victor Stinner [Mon, 14 Mar 2011 18:34:13 +0000 (14:34 -0400)]
Issue #3080: case_ok() expects Unicode strings
Victor Stinner [Sun, 20 Mar 2011 02:07:28 +0000 (03:07 +0100)]
Issue #3080: find_init_module() expects Unicode
Victor Stinner [Mon, 14 Mar 2011 18:04:10 +0000 (14:04 -0400)]
Issue #3080: Refactor find_module_path(), use return instead of break
Prepare also the API change of case_ok()
Victor Stinner [Mon, 14 Mar 2011 17:40:04 +0000 (13:40 -0400)]
Issue #3080: find_module() sets an empty path for builtin and frozen modules
Victor Stinner [Mon, 14 Mar 2011 17:22:54 +0000 (13:22 -0400)]
Issue #3080: Rename some path variables to path_list
Victor Stinner [Mon, 14 Mar 2011 13:21:33 +0000 (09:21 -0400)]
Issue #3080: find_module() expects module fullname and subname as Unicode
And PyImport_ReloadModule() uses Unicode for the module name.
Victor Stinner [Mon, 14 Mar 2011 03:11:02 +0000 (23:11 -0400)]
Issue #3080: Drop OS/2 support for the import machinery
Sorry Andrew I MacIntyre!
Victor Stinner [Mon, 14 Mar 2011 02:38:38 +0000 (22:38 -0400)]
Issue #3080: Reindent and simplify import_submodule()
Victor Stinner [Mon, 14 Mar 2011 02:38:06 +0000 (22:38 -0400)]
Issue #3080: Use %R to format module name in error messages
%R format instead of %U
Victor Stinner [Tue, 15 Mar 2011 08:33:57 +0000 (09:33 +0100)]
Issue #3080: Use Unicode for the "The Magnum Opus of dotted-name import"
Use Unicode for module name and paths in the following functions:
* PyImport_ImportModuleLevel()
* add_submodule()
* ensure_from_list()
* get_parent()
* import_module_level()
* import_submodule()
* load_next()
* mark_miss()
Victor Stinner [Mon, 14 Mar 2011 01:57:27 +0000 (21:57 -0400)]
Issue #3080: PyImport_ImportModuleNoBlock() uses Unicode
Victor Stinner [Mon, 14 Mar 2011 01:46:30 +0000 (21:46 -0400)]
Issue #3080: load_module() expects name and path as Unicode
Victor Stinner [Sat, 19 Mar 2011 23:41:24 +0000 (00:41 +0100)]
Issue #3080: Use Unicode to import source and compiled modules
* Use Unicode for module name and path in the following functions:
* get_file()
* load_source_module(), parse_source_module()
* make_compiled_pathname(), check_compiled_module(),
read_compiled_module(), load_compiled_module(), write_compiled_module(),
update_compiled_module()
* On Windows, use CreateDirectoryW() instead of mkdir()
* update_compiled_module() cannot fail anymore
Victor Stinner [Mon, 14 Mar 2011 17:33:46 +0000 (13:33 -0400)]
Issue #3080: get_sourcefile(), make_source_pathname(), load_package()
Use Unicode for module name and path in get_sourcefile(),
make_source_pathname() and load_package() functions.
Victor Stinner [Sat, 12 Mar 2011 21:02:28 +0000 (16:02 -0500)]
Issue #3080: Create find_module_path() subfunction
Victor Stinner [Sun, 20 Mar 2011 00:34:43 +0000 (01:34 +0100)]
Issue #3080: Create find_module_path_list() subfunction
Victor Stinner [Sat, 12 Mar 2011 14:26:54 +0000 (09:26 -0500)]
Issue #3080: Remove useless name buffer from find_module()
Rename subname argument to name, and mark it as constant.
Victor Stinner [Sat, 12 Mar 2011 13:45:02 +0000 (08:45 -0500)]
Issue #3080: find_module() initialize buf and *p_fp
Document also the find_module() function
Victor Stinner [Mon, 14 Mar 2011 19:54:07 +0000 (15:54 -0400)]
Issue #3080: _PyImport_LoadDynamicModule() uses Unicode for name and path
Document also that dynamic module names are ASCII only
Victor Stinner [Tue, 8 Mar 2011 22:49:04 +0000 (23:49 +0100)]
Issue #3080: _PyWin_FindRegisteredModule() returns the path as Unicode
* Document the function
* Use RegQueryValueW() instead of RegQueryValueA()
* Use _Py_fopen() instead of fopen()
* Allocate registry key on the heap, not on the stack, and handle memory
allocation failure
* Handle Python exception in find_module()
Victor Stinner [Mon, 7 Mar 2011 17:34:59 +0000 (18:34 +0100)]
Issue #3080: Document the name attribute of the _inittab structure
The name is an ASCII encoded string.
Victor Stinner [Mon, 7 Mar 2011 17:28:15 +0000 (18:28 +0100)]
Issue #3080: Use PyUnicode_InternFromString() for builtins
_PyImport_FixupBuiltin() and _PyImport_FindBuiltin() use
PyUnicode_InternFromString() instead of PyUnicode_FromString().
Victor Stinner [Mon, 7 Mar 2011 17:20:56 +0000 (18:20 +0100)]
Issue #3080: Import builtins using Unicode strings
- is_builtin(), init_builtin(), load_builtin() and other builtin related
functions use Unicode strings, instead of byte strings
- Rename _PyImport_FixupExtensionUnicode() to _PyImport_FixupExtensionObject()
- Rename _PyImport_FindExtensionUnicode() to _PyImport_FindExtensionObject()
Victor Stinner [Sun, 20 Mar 2011 00:50:21 +0000 (01:50 +0100)]
Issue #3080: Add PyImport_ImportFrozenModuleObject()
find_frozen(), get_frozen_object(), is_frozen_package() and other functions
related to frozen modules use Unicode strings instead of byte strings.
Victor Stinner [Mon, 7 Mar 2011 16:08:21 +0000 (17:08 +0100)]
Issue #3080: PyImport_Cleanup() uses Unicode
Replace strcmp() by PyUnicode_CompareWithASCIIString()
Victor Stinner [Tue, 15 Mar 2011 00:46:50 +0000 (20:46 -0400)]
Issue #3080: zipimport has a full unicode suppport
- Use Unicode for module paths and names, self->archive and self->prefix
- Format module names and paths use %R instead of '%U' to escape surrogate
characters (PEP 383)
- Use PyImport_ExecCodeModuleObject() instead of PyImport_ExecCodeModuleEx()
- Use PyImport_AddModuleObject() instead of PyImport_AddModule()
Victor Stinner [Mon, 7 Mar 2011 15:57:48 +0000 (16:57 +0100)]
import.c: replace tab by spaces
Senthil Kumaran [Sun, 20 Mar 2011 02:45:41 +0000 (10:45 +0800)]
merge from 3.2
Senthil Kumaran [Sun, 20 Mar 2011 02:45:10 +0000 (10:45 +0800)]
Merge from 3.1
Senthil Kumaran [Sun, 20 Mar 2011 02:44:30 +0000 (10:44 +0800)]
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
R David Murray [Sun, 20 Mar 2011 02:32:39 +0000 (22:32 -0400)]
Merge #7198 doc fix.
R David Murray [Sun, 20 Mar 2011 02:31:10 +0000 (22:31 -0400)]
Merge #7198 doc fix.
R David Murray [Sun, 20 Mar 2011 02:30:14 +0000 (22:30 -0400)]
#7198: add newlines='' to csv.writer docs.
Brian Quinlan [Sun, 20 Mar 2011 02:29:57 +0000 (13:29 +1100)]
Branch merge
Brian Quinlan [Sun, 20 Mar 2011 02:11:11 +0000 (13:11 +1100)]
Use WeakSets rather than manual pruning to prevent unbounded growth of dead thread references.
Senthil Kumaran [Sun, 20 Mar 2011 01:27:25 +0000 (09:27 +0800)]
Merge NEWS entry edit.
Senthil Kumaran [Sun, 20 Mar 2011 01:26:57 +0000 (09:26 +0800)]
Add NEWS for Issue #11563.
Senthil Kumaran [Sat, 19 Mar 2011 22:13:36 +0000 (06:13 +0800)]
closes issue11609. buildbot related failures in the test_urllibnet.
Senthil Kumaran [Sat, 19 Mar 2011 21:33:09 +0000 (05:33 +0800)]
branch merge 3.2
Senthil Kumaran [Sat, 19 Mar 2011 21:30:16 +0000 (05:30 +0800)]
Call unfakehttp in order to close connection while opening the connection through a fakehttp object.
Address issue11609 - urllib related buildbots failure.
Antoine Pitrou [Sat, 19 Mar 2011 18:54:01 +0000 (19:54 +0100)]
Skip crasher tests
Skip Montanaro [Sat, 19 Mar 2011 18:07:10 +0000 (13:07 -0500)]
untab
Skip Montanaro [Sat, 19 Mar 2011 18:05:58 +0000 (13:05 -0500)]
*sigh* - i don't like this workflow at all
Skip Montanaro [Sat, 19 Mar 2011 18:03:33 +0000 (13:03 -0500)]
merge from upstream
Antoine Pitrou [Sat, 19 Mar 2011 16:06:22 +0000 (17:06 +0100)]
Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
unbuffered pipes, such that select() works properly on them.
Antoine Pitrou [Sat, 19 Mar 2011 16:04:13 +0000 (17:04 +0100)]
Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
unbuffered pipes, such that select() works properly on them.
Antoine Pitrou [Sat, 19 Mar 2011 16:00:37 +0000 (17:00 +0100)]
Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
unbuffered pipes, such that select() works properly on them.
Skip Montanaro [Sat, 19 Mar 2011 14:15:28 +0000 (09:15 -0500)]
commit merge
Skip Montanaro [Sat, 19 Mar 2011 14:09:30 +0000 (09:09 -0500)]
Mention RFC 4180. Based on input by Tony Wallace in issue 11456.
Senthil Kumaran [Sat, 19 Mar 2011 09:47:26 +0000 (17:47 +0800)]
Closes issue11563 test_urllibnet is triggering a ResourceWarning. Patch by Jeff McNeil.
Senthil Kumaran [Sat, 19 Mar 2011 09:45:40 +0000 (17:45 +0800)]
Merging it again.
Senthil Kumaran [Sat, 19 Mar 2011 09:29:32 +0000 (17:29 +0800)]
merge from 3.2
Senthil Kumaran [Sat, 19 Mar 2011 09:25:27 +0000 (17:25 +0800)]
Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.
Ross Lagerwall [Sat, 19 Mar 2011 07:11:14 +0000 (09:11 +0200)]
Fix refleak introduced by #10812.
Nick Coghlan [Sat, 19 Mar 2011 05:22:59 +0000 (15:22 +1000)]
Last attempt to get compiler recursion crasher to fail reliably across platforms before giving up and skipping it as unreliably platform dependent
Raymond Hettinger [Sat, 19 Mar 2011 01:22:28 +0000 (18:22 -0700)]
Issue 7391: Remove questionable and outdated HOWTO document with permission from its author.
Raymond Hettinger [Fri, 18 Mar 2011 22:09:10 +0000 (15:09 -0700)]
Minor optimization -- factor a constant expression out of the inner-loop.
briancurtin [Fri, 18 Mar 2011 18:03:17 +0000 (13:03 -0500)]
Fix #11596. When bz2 isn't available, skip test_bz2_ext_fake.
Raymond Hettinger [Fri, 18 Mar 2011 09:22:15 +0000 (02:22 -0700)]
Speed-up search for hidden names by using a set instead of a tuple.
Ross Lagerwall [Fri, 18 Mar 2011 04:56:53 +0000 (06:56 +0200)]
Issue #11592: Fix compilation warnings in os module.
Antoine Pitrou [Thu, 17 Mar 2011 22:41:25 +0000 (23:41 +0100)]
Merge NEWS fix
Antoine Pitrou [Thu, 17 Mar 2011 22:40:53 +0000 (23:40 +0100)]
Oops, wrong issue number in NEWS
Antoine Pitrou [Thu, 17 Mar 2011 22:37:06 +0000 (23:37 +0100)]
Merge
Antoine Pitrou [Thu, 17 Mar 2011 22:36:13 +0000 (23:36 +0100)]
Add news entry for
a791dd7d51f3
Antoine Pitrou [Thu, 17 Mar 2011 22:34:33 +0000 (23:34 +0100)]
Issue #10914: fix bogus memory management in Modules/getpath.c, leading to a possible crash when calling Py_SetPath()
Antoine Pitrou [Thu, 17 Mar 2011 21:46:17 +0000 (22:46 +0100)]
Issue #5421: merge fix
Antoine Pitrou [Thu, 17 Mar 2011 21:40:18 +0000 (22:40 +0100)]
Issue #5421: merge fix
Antoine Pitrou [Thu, 17 Mar 2011 21:38:37 +0000 (22:38 +0100)]
Issue #5421: Fix misleading error message when one of socket.sendto()'s
arguments has the wrong type. Patch by Nikita Vetoshkin.
Ross Lagerwall [Thu, 17 Mar 2011 19:54:07 +0000 (21:54 +0200)]
Issue #10812: Revert os.lseek change.
Ross Lagerwall [Thu, 17 Mar 2011 18:20:30 +0000 (20:20 +0200)]
Issue #10812: Add some extra posix functions to the os module.
Brett Cannon [Thu, 17 Mar 2011 18:16:38 +0000 (11:16 -0700)]
merge
Michael Foord [Thu, 17 Mar 2011 17:58:22 +0000 (13:58 -0400)]
Closes issue 10979. unittest buffering now works with class and module setup and teardown
Michael Foord [Thu, 17 Mar 2011 17:47:12 +0000 (13:47 -0400)]
Move NEWS entry to correct place
Michael Foord [Thu, 17 Mar 2011 17:44:18 +0000 (13:44 -0400)]
Issue #10979. unittest stdout buffering now works with class and module setup and teardown.
Nick Coghlan [Thu, 17 Mar 2011 15:04:34 +0000 (11:04 -0400)]
Give more info in verbose mode when checking crashers, and stress the stack even more in the compiler crasher
Senthil Kumaran [Thu, 17 Mar 2011 09:06:27 +0000 (17:06 +0800)]
Recording the merge which got missed in 3.1
Senthil Kumaran [Thu, 17 Mar 2011 09:05:04 +0000 (17:05 +0800)]
Recording the merge.
Senthil Kumaran [Thu, 17 Mar 2011 09:01:45 +0000 (17:01 +0800)]
Error message in http.server code. Missed to update in 3.1 branch initially.
Senthil Kumaran [Thu, 17 Mar 2011 08:48:26 +0000 (16:48 +0800)]
Merge from 3.2
Senthil Kumaran [Thu, 17 Mar 2011 08:43:22 +0000 (16:43 +0800)]
Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy Zlobin.
Nick Coghlan [Thu, 17 Mar 2011 02:11:09 +0000 (22:11 -0400)]
Tidy up merge with remote
Nick Coghlan [Thu, 17 Mar 2011 02:09:10 +0000 (22:09 -0400)]
Merge from remote
Nick Coghlan [Thu, 17 Mar 2011 02:06:35 +0000 (22:06 -0400)]
Dummy merge
Nick Coghlan [Thu, 17 Mar 2011 01:48:30 +0000 (21:48 -0400)]
Merge from 3.2
Nick Coghlan [Thu, 17 Mar 2011 01:26:40 +0000 (21:26 -0400)]
Close #11577: Improve binhex test coverage and fix ResourceWarning
R David Murray [Thu, 17 Mar 2011 01:12:33 +0000 (21:12 -0400)]
Merge #11243 fix from 3.2.
R David Murray [Thu, 17 Mar 2011 01:11:23 +0000 (21:11 -0400)]
#11243: tests and fixes for handling of 'dirty data' in additional methods
Nick Coghlan [Thu, 17 Mar 2011 00:23:58 +0000 (20:23 -0400)]
Add missing NEWS item for previous commit
Brett Cannon [Thu, 17 Mar 2011 00:11:52 +0000 (20:11 -0400)]
Remove an overly specific exception message test.
Nick Coghlan [Wed, 16 Mar 2011 23:52:14 +0000 (19:52 -0400)]
Exercise crashers to ensure they are still covering known error cases
R David Murray [Wed, 16 Mar 2011 22:28:07 +0000 (18:28 -0400)]
Merge #11401 fix from 3.2.
R David Murray [Wed, 16 Mar 2011 22:27:34 +0000 (18:27 -0400)]
Merge #11401 fix from 3.1.
R David Murray [Wed, 16 Mar 2011 22:26:23 +0000 (18:26 -0400)]
#11401: handle headers with no value.
R David Murray [Wed, 16 Mar 2011 21:33:24 +0000 (17:33 -0400)]
Merge #11578 test from 3.2.
R David Murray [Wed, 16 Mar 2011 21:32:27 +0000 (17:32 -0400)]
#11578: add unit tests for timeit module.
Patch by Michael Henry.
Michael Foord [Wed, 16 Mar 2011 21:28:51 +0000 (17:28 -0400)]
merge 3.2