Commit Graph

43722 Commits

Author SHA1 Message Date
Georg Brandl edc9e7ff17 #8556: use less confusing mapping key in example. 2010-10-17 09:19:03 +00:00
Amaury Forgeot d'Arc 20f11fe43c Fix compilation warning in _ctypes module on Window 2010-10-17 08:34:22 +00:00
Amaury Forgeot d'Arc c913989370 On Windows, remove compilation warnings with the zlib and gzip modules. 2010-10-17 08:26:13 +00:00
Georg Brandl dd909db1a9 #10058: tweak wording about exception returns. 2010-10-17 06:32:59 +00:00
Georg Brandl 17ef0d51d7 Note that maxtasksperchild is new in 3.2. 2010-10-17 06:21:59 +00:00
Gregory P. Smith feedda2bab Avoid hanging the test on netbsd5. 2010-10-17 03:09:12 +00:00
Gregory P. Smith 0f61dd0787 skip test_itimer_virtual on NetBSD to prevent the test suite from hanging. 2010-10-17 02:57:19 +00:00
Gregory P. Smith 68e0135e41 Fix multiprocessing Semaphore's on netbsd5. SEM_VALUE_MAX is defined
as (~0U) on NetBSD which was causing it to appear as -1 when used as
a signed int for _multprocessing.SemLock.SEM_VALUE_MAX.  This works
around the problem by substituting INT_MAX on systems where it appears
negative when used as an int.
2010-10-17 02:14:36 +00:00
Victor Stinner ed7916dd00 find_module(): use FS encoding to display the missing __init__ warning 2010-10-17 02:07:09 +00:00
Victor Stinner e3874ed7dd test_cmd_line_script: format paths with ascii() instead of repr()
Fix the test if the native filesystem encoding is not utf-8 (eg. cp1250 on
Windows).
2010-10-17 01:41:09 +00:00
Benjamin Peterson ca9f128583 use assertion methods 2010-10-17 01:30:26 +00:00
Benjamin Peterson cb17094dcd disable the garbage collector while collecting traces, so that __del__s don't get caught 2010-10-17 01:29:11 +00:00
Benjamin Peterson fc49f2a973 remove rather pointless test 2010-10-17 01:25:19 +00:00
Victor Stinner 49d3f2514b _PyImport_FixupExtension() and _PyImport_FindExtension() uses FS encoding
* Rename _PyImport_FindExtension() to _PyImport_FindExtensionUnicode():
   the filename becomes a Unicode object instead of byte string
 * Rename _PyImport_FixupExtension() to _PyImport_FixupExtensionUnicode():
   the filename becomes a Unicode object instead of byte string
2010-10-17 01:24:53 +00:00
Gregory P. Smith 3e85dfd15e applying netbsd-wizs-mod.patch from issue5510 -
fixes for netbsd (and dragonflybsd?)
2010-10-17 00:43:10 +00:00
Gregory P. Smith b603d03f15 fix for netbsd. 2010-10-17 00:17:24 +00:00
Victor Stinner f6782ac0b6 test_subprocess: use surrogateescape error handler to write shell scripts
test_args_string() and test_call_string() create shell scripts including the
path to the Python executable: use surrogateescape to encode paths including
surrogate characters.
2010-10-16 23:46:43 +00:00
Victor Stinner 61aad57dc9 Oops, fix my previous commit (r85583) on calculate_path()
path value may be changed, so keep a copy in a new variable.
2010-10-16 23:38:07 +00:00
Victor Stinner dc4b2a712f calculate_path(): use _Py_char2wchar() to decode the PATH environment variable,
to support surrogate characters
2010-10-16 23:34:22 +00:00
Victor Stinner 168e117e0a Add an optional size argument to _Py_char2wchar()
_Py_char2wchar() callers usually need the result size in characters. Since it's
trivial to compute it in _Py_char2wchar() (O(1) whereas wcslen() is O(n)), add
an option to get it.
2010-10-16 23:16:16 +00:00
Victor Stinner 0a1b8cba90 _Py_wrealpath() uses _Py_char2wchar() to decode the result, to support
surrogate characters.
2010-10-16 22:55:47 +00:00
Victor Stinner 350147b5ca _Py_wreadlink(): catch _Py_char2wchar() failure 2010-10-16 22:52:09 +00:00
Victor Stinner 3f711f4a3e _Py_wreadlink() uses _Py_char2wchar() to decode the result, to support
surrogate characters.
2010-10-16 22:47:37 +00:00
Victor Stinner 9d396399da Issue #10123: Don't use non-ascii filenames in test_doctest tests. Add a
new test specific to unicode (non-ascii name and filename).
2010-10-16 21:54:59 +00:00
Georg Brandl 2a531395cd Get rid of a "unused static function" warning. 2010-10-16 20:33:11 +00:00
Alexander Belopolsky 4cb3dbd8d3 Added __pycache__ to svn:ignore property 2010-10-16 20:14:24 +00:00
Georg Brandl 573caa3476 #10124: typo fix. 2010-10-16 18:53:08 +00:00
Georg Brandl 8e4ddcfaea #10122: typo fix. 2010-10-16 18:51:05 +00:00
Barry Warsaw a40453df37 abiflags: alphabetize and versionadded 2010-10-16 14:17:50 +00:00
Victor Stinner 2f2ed1f36c Fix ast_error_finish() and err_input(): filename can be NULL
Fix my previous commit (r85569).
2010-10-16 13:42:53 +00:00
Victor Stinner 4c7c8c3023 Issue #9713, #10114: Parser functions (eg. PyParser_ASTFromFile) expects
filenames encoded to the filesystem encoding with surrogateescape error handler
(to support undecodable bytes), instead of UTF-8 in strict mode.
2010-10-16 13:14:10 +00:00
Victor Stinner 5a7913eb3b zipimport: catch _PyUnicode_AsString() failure in get_code_from_data()
It occurs if the path contains surrogates.
2010-10-16 11:29:07 +00:00
Brian Quinlan 2c2bfe5bdf Fixes issue 10120 (concurrent.futures module is not installed properly), patch by Neil Muller 2010-10-16 10:36:11 +00:00
Brian Quinlan 6d3895606c Fix incorrect maintainer name 2010-10-16 10:12:32 +00:00
Brian Quinlan d1f0218112 Add bquinlan as the maintainer of concurrent.futures 2010-10-16 09:55:14 +00:00
Benjamin Peterson 230b20684f don't identify the toplevel namespace by name #9997 2010-10-16 03:45:45 +00:00
Benjamin Peterson 294a9fcba6 fix refleak 2010-10-16 03:12:39 +00:00
Barry Warsaw f6219a588d Add NEWS for issue 9807 part 1. 2010-10-16 01:20:45 +00:00
Barry Warsaw 8cf4eae522 First (uncontroversial) part of issue 9807.
* Expose the build flags to Python as sys.abiflags
* Shared library libpythonX.Y<abiflags>.so
* python-config --abiflags
* Make two distutils tests that failed with --enable-shared (even before this
  patch) succeed.
* Fix a few small style issues.
2010-10-16 01:04:07 +00:00
Benjamin Peterson d8d835bd1d run autoconf 2010-10-15 23:14:46 +00:00
R. David Murray e16cda9ad8 #9862: On AIX PIPE_BUF is broken. Make it 512.
Patch by Sébastien Sablé.
2010-10-15 23:12:57 +00:00
Victor Stinner 88bd891e6c Fix imp_cache_from_source(): Decode make_compiled_pathname() result from the
filesystem encoding instead of utf-8.

imp_cache_from_source() encodes the input path to filesystem encoding and this
path is passed to make_compiled_pathname().
2010-10-15 22:46:07 +00:00
Victor Stinner 1a5630326f imp_load_module() uses PyUnicode_FSConverter() to support surrogates in module
path
2010-10-15 22:43:10 +00:00
Benjamin Peterson 42311734ab revert change in inappropiate branch 2010-10-15 21:56:35 +00:00
Victor Stinner 3ea23ddabf imp.cache_from_source() uses PyUnicode_FSConverter() to support surrogates in
module path
2010-10-15 20:34:32 +00:00
Georg Brandl 392c92a0c6 #10072: assume a bit less knowledge of the FTP protocol in the ftplib docs. 2010-10-15 19:46:19 +00:00
Georg Brandl 3844f0d7cd #6098: Refrain from claiming DOM level 3 conformance in minidom. 2010-10-15 18:00:35 +00:00
Georg Brandl b9cd72a9f7 #5762: fix handling of empty namespace in minidom, which would result in AttributeError on toxml(). 2010-10-15 17:58:45 +00:00
Georg Brandl d4460aaacd #4785: document strict argument of JSONDecoder, plus add object_pairs_hook in the docstrings. 2010-10-15 17:03:02 +00:00
Georg Brandl b67878a522 #7790: move table of struct_time members to the actual description of struct_time. 2010-10-15 17:01:15 +00:00