]> granicus.if.org Git - python/log
python
14 years agoIssue #3080: Use repr() to format the module name on error
Victor Stinner [Mon, 14 Mar 2011 19:15:47 +0000 (15:15 -0400)]
Issue #3080: Use repr() to format the module name on error

14 years agoFix imp.cache_from_source() if the directory name contains a dot
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.

14 years agoIssue #3080: imp.new_module() uses Unicode
Victor Stinner [Mon, 14 Mar 2011 18:53:28 +0000 (14:53 -0400)]
Issue #3080: imp.new_module() uses Unicode

14 years agoIssue #3080: find_module() returns the path as Unicode
Victor Stinner [Mon, 14 Mar 2011 19:19:39 +0000 (15:19 -0400)]
Issue #3080: find_module() returns the path as Unicode

14 years agoIssue #3080: case_ok() expects Unicode strings
Victor Stinner [Mon, 14 Mar 2011 18:34:13 +0000 (14:34 -0400)]
Issue #3080: case_ok() expects Unicode strings

14 years agoIssue #3080: find_init_module() expects Unicode
Victor Stinner [Sun, 20 Mar 2011 02:07:28 +0000 (03:07 +0100)]
Issue #3080: find_init_module() expects Unicode

14 years agoIssue #3080: Refactor find_module_path(), use return instead of break
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()

14 years agoIssue #3080: find_module() sets an empty path for builtin and frozen modules
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

14 years agoIssue #3080: Rename some path variables to path_list
Victor Stinner [Mon, 14 Mar 2011 17:22:54 +0000 (13:22 -0400)]
Issue #3080: Rename some path variables to path_list

14 years agoIssue #3080: find_module() expects module fullname and subname as Unicode
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.

14 years agoIssue #3080: Drop OS/2 support for the import machinery
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!

14 years agoIssue #3080: Reindent and simplify import_submodule()
Victor Stinner [Mon, 14 Mar 2011 02:38:38 +0000 (22:38 -0400)]
Issue #3080: Reindent and simplify import_submodule()

14 years agoIssue #3080: Use %R to format module name in error messages
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

14 years agoIssue #3080: Use Unicode for the "The Magnum Opus of dotted-name import"
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()

14 years agoIssue #3080: PyImport_ImportModuleNoBlock() uses Unicode
Victor Stinner [Mon, 14 Mar 2011 01:57:27 +0000 (21:57 -0400)]
Issue #3080: PyImport_ImportModuleNoBlock() uses Unicode

14 years agoIssue #3080: load_module() expects name and path as Unicode
Victor Stinner [Mon, 14 Mar 2011 01:46:30 +0000 (21:46 -0400)]
Issue #3080: load_module() expects name and path as Unicode

14 years agoIssue #3080: Use Unicode to import source and compiled modules
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

14 years agoIssue #3080: get_sourcefile(), make_source_pathname(), load_package()
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.

14 years agoIssue #3080: Create find_module_path() subfunction
Victor Stinner [Sat, 12 Mar 2011 21:02:28 +0000 (16:02 -0500)]
Issue #3080: Create find_module_path() subfunction

14 years agoIssue #3080: Create find_module_path_list() subfunction
Victor Stinner [Sun, 20 Mar 2011 00:34:43 +0000 (01:34 +0100)]
Issue #3080: Create find_module_path_list() subfunction

14 years agoIssue #3080: Remove useless name buffer from find_module()
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.

14 years agoIssue #3080: find_module() initialize buf and *p_fp
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

14 years agoIssue #3080: _PyImport_LoadDynamicModule() uses Unicode for name and path
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

14 years agoIssue #3080: _PyWin_FindRegisteredModule() returns the path as Unicode
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()

14 years agoIssue #3080: Document the name attribute of the _inittab structure
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.

14 years agoIssue #3080: Use PyUnicode_InternFromString() for builtins
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().

14 years agoIssue #3080: Import builtins using Unicode strings
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()

14 years agoIssue #3080: Add PyImport_ImportFrozenModuleObject()
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.

14 years agoIssue #3080: PyImport_Cleanup() uses Unicode
Victor Stinner [Mon, 7 Mar 2011 16:08:21 +0000 (17:08 +0100)]
Issue #3080: PyImport_Cleanup() uses Unicode

Replace strcmp() by PyUnicode_CompareWithASCIIString()

14 years agoIssue #3080: zipimport has a full unicode suppport
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()

14 years agoimport.c: replace tab by spaces
Victor Stinner [Mon, 7 Mar 2011 15:57:48 +0000 (16:57 +0100)]
import.c: replace tab by spaces

14 years agomerge from 3.2
Senthil Kumaran [Sun, 20 Mar 2011 02:45:41 +0000 (10:45 +0800)]
merge from 3.2

14 years agoMerge from 3.1
Senthil Kumaran [Sun, 20 Mar 2011 02:45:10 +0000 (10:45 +0800)]
Merge from 3.1

14 years agoIssue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
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.

14 years agoMerge #7198 doc fix.
R David Murray [Sun, 20 Mar 2011 02:32:39 +0000 (22:32 -0400)]
Merge #7198 doc fix.

14 years agoMerge #7198 doc fix.
R David Murray [Sun, 20 Mar 2011 02:31:10 +0000 (22:31 -0400)]
Merge #7198 doc fix.

14 years ago#7198: add newlines='' to csv.writer docs.
R David Murray [Sun, 20 Mar 2011 02:30:14 +0000 (22:30 -0400)]
#7198: add newlines='' to csv.writer docs.

14 years agoBranch merge
Brian Quinlan [Sun, 20 Mar 2011 02:29:57 +0000 (13:29 +1100)]
Branch merge

14 years agoUse WeakSets rather than manual pruning to prevent unbounded growth of dead thread...
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.

14 years agoMerge NEWS entry edit.
Senthil Kumaran [Sun, 20 Mar 2011 01:27:25 +0000 (09:27 +0800)]
Merge NEWS entry edit.

14 years agoAdd NEWS for Issue #11563.
Senthil Kumaran [Sun, 20 Mar 2011 01:26:57 +0000 (09:26 +0800)]
Add NEWS for  Issue #11563.

14 years agocloses issue11609. buildbot related failures in the test_urllibnet.
Senthil Kumaran [Sat, 19 Mar 2011 22:13:36 +0000 (06:13 +0800)]
closes issue11609. buildbot related failures in the test_urllibnet.

14 years agobranch merge 3.2
Senthil Kumaran [Sat, 19 Mar 2011 21:33:09 +0000 (05:33 +0800)]
branch merge 3.2

14 years agoCall unfakehttp in order to close connection while opening the connection through...
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.

14 years agoSkip crasher tests
Antoine Pitrou [Sat, 19 Mar 2011 18:54:01 +0000 (19:54 +0100)]
Skip crasher tests

14 years agountab
Skip Montanaro [Sat, 19 Mar 2011 18:07:10 +0000 (13:07 -0500)]
untab

14 years ago*sigh* - i don't like this workflow at all
Skip Montanaro [Sat, 19 Mar 2011 18:05:58 +0000 (13:05 -0500)]
*sigh* - i don't like this workflow at all

14 years agomerge from upstream
Skip Montanaro [Sat, 19 Mar 2011 18:03:33 +0000 (13:03 -0500)]
merge from upstream

14 years agoIssue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
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.

14 years agoIssue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
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.

14 years agoIssue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
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.

14 years agocommit merge
Skip Montanaro [Sat, 19 Mar 2011 14:15:28 +0000 (09:15 -0500)]
commit merge

14 years agoMention RFC 4180. Based on input by Tony Wallace in issue 11456.
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.

14 years agoCloses issue11563 test_urllibnet is triggering a ResourceWarning. Patch by Jeff McNeil.
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.

14 years agoMerging it again.
Senthil Kumaran [Sat, 19 Mar 2011 09:45:40 +0000 (17:45 +0800)]
Merging it again.

14 years agomerge from 3.2
Senthil Kumaran [Sat, 19 Mar 2011 09:29:32 +0000 (17:29 +0800)]
merge from 3.2

14 years agoCloses issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.
Senthil Kumaran [Sat, 19 Mar 2011 09:25:27 +0000 (17:25 +0800)]
Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.

14 years agoFix refleak introduced by #10812.
Ross Lagerwall [Sat, 19 Mar 2011 07:11:14 +0000 (09:11 +0200)]
Fix refleak introduced by #10812.

14 years agoLast attempt to get compiler recursion crasher to fail reliably across platforms...
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

14 years agoIssue 7391: Remove questionable and outdated HOWTO document with permission from...
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.

14 years agoMinor optimization -- factor a constant expression out of the inner-loop.
Raymond Hettinger [Fri, 18 Mar 2011 22:09:10 +0000 (15:09 -0700)]
Minor optimization -- factor a constant expression out of the inner-loop.

14 years agoFix #11596. When bz2 isn't available, skip test_bz2_ext_fake.
briancurtin [Fri, 18 Mar 2011 18:03:17 +0000 (13:03 -0500)]
Fix #11596. When bz2 isn't available, skip test_bz2_ext_fake.

14 years agoSpeed-up search for hidden names by using a set instead of a tuple.
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.

14 years agoIssue #11592: Fix compilation warnings in os module.
Ross Lagerwall [Fri, 18 Mar 2011 04:56:53 +0000 (06:56 +0200)]
Issue #11592: Fix compilation warnings in os module.

14 years agoMerge NEWS fix
Antoine Pitrou [Thu, 17 Mar 2011 22:41:25 +0000 (23:41 +0100)]
Merge NEWS fix

14 years agoOops, wrong issue number in NEWS
Antoine Pitrou [Thu, 17 Mar 2011 22:40:53 +0000 (23:40 +0100)]
Oops, wrong issue number in NEWS

14 years agoMerge
Antoine Pitrou [Thu, 17 Mar 2011 22:37:06 +0000 (23:37 +0100)]
Merge

14 years agoAdd news entry for a791dd7d51f3
Antoine Pitrou [Thu, 17 Mar 2011 22:36:13 +0000 (23:36 +0100)]
Add news entry for a791dd7d51f3

14 years agoIssue #10914: fix bogus memory management in Modules/getpath.c, leading to a possible...
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()

14 years agoIssue #5421: merge fix
Antoine Pitrou [Thu, 17 Mar 2011 21:46:17 +0000 (22:46 +0100)]
Issue #5421: merge fix

14 years agoIssue #5421: merge fix
Antoine Pitrou [Thu, 17 Mar 2011 21:40:18 +0000 (22:40 +0100)]
Issue #5421: merge fix

14 years agoIssue #5421: Fix misleading error message when one of socket.sendto()'s
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.

14 years agoIssue #10812: Revert os.lseek change.
Ross Lagerwall [Thu, 17 Mar 2011 19:54:07 +0000 (21:54 +0200)]
Issue #10812: Revert os.lseek change.

14 years agoIssue #10812: Add some extra posix functions to the os module.
Ross Lagerwall [Thu, 17 Mar 2011 18:20:30 +0000 (20:20 +0200)]
Issue #10812: Add some extra posix functions to the os module.

14 years agomerge
Brett Cannon [Thu, 17 Mar 2011 18:16:38 +0000 (11:16 -0700)]
merge

14 years agoCloses issue 10979. unittest buffering now works with class and module setup and...
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

14 years agoMove NEWS entry to correct place
Michael Foord [Thu, 17 Mar 2011 17:47:12 +0000 (13:47 -0400)]
Move NEWS entry to correct place

14 years agoIssue #10979. unittest stdout buffering now works with class and module setup and...
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.

14 years agoGive more info in verbose mode when checking crashers, and stress the stack even...
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

14 years agoRecording the merge which got missed in 3.1
Senthil Kumaran [Thu, 17 Mar 2011 09:06:27 +0000 (17:06 +0800)]
Recording the merge which got missed in 3.1

14 years agoRecording the merge.
Senthil Kumaran [Thu, 17 Mar 2011 09:05:04 +0000 (17:05 +0800)]
Recording the merge.

14 years agoError message in http.server code. Missed to update in 3.1 branch initially.
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.

14 years agoMerge from 3.2
Senthil Kumaran [Thu, 17 Mar 2011 08:48:26 +0000 (16:48 +0800)]
Merge from 3.2

14 years agoFix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy Zlobin.
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.

14 years agoTidy up merge with remote
Nick Coghlan [Thu, 17 Mar 2011 02:11:09 +0000 (22:11 -0400)]
Tidy up merge with remote

14 years agoMerge from remote
Nick Coghlan [Thu, 17 Mar 2011 02:09:10 +0000 (22:09 -0400)]
Merge from remote

14 years agoDummy merge
Nick Coghlan [Thu, 17 Mar 2011 02:06:35 +0000 (22:06 -0400)]
Dummy merge

14 years agoMerge from 3.2
Nick Coghlan [Thu, 17 Mar 2011 01:48:30 +0000 (21:48 -0400)]
Merge from 3.2

14 years agoClose #11577: Improve binhex test coverage and fix ResourceWarning
Nick Coghlan [Thu, 17 Mar 2011 01:26:40 +0000 (21:26 -0400)]
Close #11577: Improve binhex test coverage and fix ResourceWarning

14 years agoMerge #11243 fix from 3.2.
R David Murray [Thu, 17 Mar 2011 01:12:33 +0000 (21:12 -0400)]
Merge #11243 fix from 3.2.

14 years ago#11243: tests and fixes for handling of 'dirty data' in additional methods
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

14 years agoAdd missing NEWS item for previous commit
Nick Coghlan [Thu, 17 Mar 2011 00:23:58 +0000 (20:23 -0400)]
Add missing NEWS item for previous commit

14 years agoRemove an overly specific exception message test.
Brett Cannon [Thu, 17 Mar 2011 00:11:52 +0000 (20:11 -0400)]
Remove an overly specific exception message test.

14 years agoExercise crashers to ensure they are still covering known error cases
Nick Coghlan [Wed, 16 Mar 2011 23:52:14 +0000 (19:52 -0400)]
Exercise crashers to ensure they are still covering known error cases

14 years agoMerge #11401 fix from 3.2.
R David Murray [Wed, 16 Mar 2011 22:28:07 +0000 (18:28 -0400)]
Merge #11401 fix from 3.2.

14 years agoMerge #11401 fix from 3.1.
R David Murray [Wed, 16 Mar 2011 22:27:34 +0000 (18:27 -0400)]
Merge #11401 fix from 3.1.

14 years ago#11401: handle headers with no value.
R David Murray [Wed, 16 Mar 2011 22:26:23 +0000 (18:26 -0400)]
#11401: handle headers with no value.

14 years agoMerge #11578 test from 3.2.
R David Murray [Wed, 16 Mar 2011 21:33:24 +0000 (17:33 -0400)]
Merge #11578 test from 3.2.

14 years ago#11578: add unit tests for timeit module.
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.

14 years agomerge 3.2
Michael Foord [Wed, 16 Mar 2011 21:28:51 +0000 (17:28 -0400)]
merge 3.2