Commit Graph

43741 Commits

Author SHA1 Message Date
Georg Brandl 418cc73403 Fix capitalization. 2010-10-17 10:53:54 +00:00
Senthil Kumaran ee2538beef Fix Issue10119 - test_urllibnet failure when using support.transient_internet. 2010-10-17 10:52:12 +00:00
Georg Brandl 6f4e68d82c #5962: clarify sys.exit() vs. threads. 2010-10-17 10:51:45 +00:00
Georg Brandl a192828ea1 #9138: reword introduction to classes in Python. 2010-10-17 10:44:11 +00:00
Georg Brandl f41427263c #9117: fix syntax for class definition. 2010-10-17 10:38:20 +00:00
Georg Brandl e0bf91d597 Some markup and style fixes in argparse docs. 2010-10-17 10:34:28 +00:00
Georg Brandl 9375492be3 #9112: document error() and exit() methods of ArgumentParser. 2010-10-17 10:28:04 +00:00
Georg Brandl 0036bcf8d8 #9105: move pickle warning to a bit more prominent location. 2010-10-17 10:24:54 +00:00
Georg Brandl 047e486c45 Remove second parser module example; it referred to non-readily-available example files, and this kind of discovery is much better done with the AST nowadays anyway. 2010-10-17 10:22:28 +00:00
Georg Brandl fc9794a8fc Make file names consistent. 2010-10-17 10:15:50 +00:00
Georg Brandl 4985ff2e61 #9086: correct wrong terminology about linking with pythonXY.dll. 2010-10-17 10:14:38 +00:00
Georg Brandl 531d76b096 #5212: md5 weaknesses do not affect hmac, so remove the note about that. 2010-10-17 10:09:06 +00:00
Georg Brandl f3d008737e Fix copy-paste error in example. 2010-10-17 10:07:29 +00:00
Georg Brandl 7306ad53da #459007: merge info from PC/getpathp.c and using/windows.rst to document the forming of sys.path under Windows. 2010-10-17 10:05:13 +00:00
Georg Brandl eec2d768cd #8968: add actual name of token constants. 2010-10-17 09:46:11 +00:00
Georg Brandl 80b75fd288 Fix hmac docs: it takes and returns bytes, except for hexdigest(). 2010-10-17 09:43:35 +00:00
Georg Brandl 7716ca6cdd #8855: add shelve security warning. 2010-10-17 09:37:54 +00:00
Georg Brandl 96115fb2d3 #8811: small fixes to sqlite3 docs. 2010-10-17 09:33:24 +00:00
Georg Brandl 8e9eb95c40 #8686: remove potentially confusing wording that does not add any value. 2010-10-17 09:23:05 +00:00
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