]>
granicus.if.org Git - python/log
Benjamin Peterson [Sun, 17 Oct 2010 21:12:18 +0000 (21:12 +0000)]
fix strict aliasing warnings
Benjamin Peterson [Sun, 17 Oct 2010 20:54:53 +0000 (20:54 +0000)]
make hashes always the size of pointers; introduce Py_hash_t #9778
Victor Stinner [Sun, 17 Oct 2010 20:17:41 +0000 (20:17 +0000)]
test_httpservers: Python CGI scripts have to be encoded to utf-8
And not the locale encoding. With this commit, the test finally pass on Windows
with a non-ascii path :-)
Victor Stinner [Sun, 17 Oct 2010 20:13:36 +0000 (20:13 +0000)]
test_httpservers: Fix skip test check, the python executable path have to be
encodable to utf-8, not to the file1 encoding.
Benjamin Peterson [Sun, 17 Oct 2010 20:13:05 +0000 (20:13 +0000)]
use helper hash unimplemented function
Martin v. Löwis [Sun, 17 Oct 2010 19:48:29 +0000 (19:48 +0000)]
Fix T_BOOL bug of issue 8845.
Victor Stinner [Sun, 17 Oct 2010 19:46:36 +0000 (19:46 +0000)]
test_httpservers: skip CGI tests if Python executable path is not encodable
Gregory P. Smith [Sun, 17 Oct 2010 19:40:59 +0000 (19:40 +0000)]
Remove the external non-python.org hyperlink and point people to
Tools/gdb/libpython.py.
Martin v. Löwis [Sun, 17 Oct 2010 19:36:54 +0000 (19:36 +0000)]
Drop OPT:Olimit, as it confuses SunPRO (and other compilers).
Victor Stinner [Sun, 17 Oct 2010 19:35:30 +0000 (19:35 +0000)]
libpython: implementation of os.fsencode() with surrogateescape error handler
Victor Stinner [Sun, 17 Oct 2010 19:34:51 +0000 (19:34 +0000)]
run_file(): encode the filename with PyUnicode_EncodeFSDefault() instead of
PyUnicode_AsUTF8String()
Victor Stinner [Sun, 17 Oct 2010 19:16:33 +0000 (19:16 +0000)]
compiler_error(): use PyUnicode_DecodeFSDefault() to decode the filename,
instead of utf-8 in strict mode.
Victor Stinner [Sun, 17 Oct 2010 19:03:16 +0000 (19:03 +0000)]
PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead of
PyUnicode_FromString(), to decode the filename.
Gregory P. Smith [Sun, 17 Oct 2010 18:59:56 +0000 (18:59 +0000)]
The py_decref macro was incorrect and unnecessary.
Gregory P. Smith [Sun, 17 Oct 2010 18:38:04 +0000 (18:38 +0000)]
* Applys part of the patch from http://bugs.python.org/issue3631 to add
a py_decref macro, fixup the pyo macro and reuse it and avoid a memory
leak introduced by the pylocals macro.
* Adds a note about gdb 7 python debugging support with links for
more info on that.
Matthias Klose [Sun, 17 Oct 2010 13:22:33 +0000 (13:22 +0000)]
- Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
Senthil Kumaran [Sun, 17 Oct 2010 11:42:21 +0000 (11:42 +0000)]
Syntax fixes for examples in the Doc/includes
Georg Brandl [Sun, 17 Oct 2010 11:36:28 +0000 (11:36 +0000)]
#9730: fix example.
Georg Brandl [Sun, 17 Oct 2010 11:29:07 +0000 (11:29 +0000)]
Fix documentation of dis.opmap direction.
Georg Brandl [Sun, 17 Oct 2010 11:23:56 +0000 (11:23 +0000)]
Make twisted example a bit more logical.
Georg Brandl [Sun, 17 Oct 2010 11:13:37 +0000 (11:13 +0000)]
Port changes to pickle docs apparently lost in py3k.
Georg Brandl [Sun, 17 Oct 2010 11:06:14 +0000 (11:06 +0000)]
#9237: document sys.call_tracing().
Georg Brandl [Sun, 17 Oct 2010 11:03:22 +0000 (11:03 +0000)]
#5121: fix claims about default values leading to segfaults.
Georg Brandl [Sun, 17 Oct 2010 10:59:41 +0000 (10:59 +0000)]
#9204: remove mentions of removed types in the types module.
Georg Brandl [Sun, 17 Oct 2010 10:53:54 +0000 (10:53 +0000)]
Fix capitalization.
Senthil Kumaran [Sun, 17 Oct 2010 10:52:12 +0000 (10:52 +0000)]
Fix Issue10119 - test_urllibnet failure when using support.transient_internet.
Georg Brandl [Sun, 17 Oct 2010 10:51:45 +0000 (10:51 +0000)]
#5962: clarify sys.exit() vs. threads.
Georg Brandl [Sun, 17 Oct 2010 10:44:11 +0000 (10:44 +0000)]
#9138: reword introduction to classes in Python.
Georg Brandl [Sun, 17 Oct 2010 10:38:20 +0000 (10:38 +0000)]
#9117: fix syntax for class definition.
Georg Brandl [Sun, 17 Oct 2010 10:34:28 +0000 (10:34 +0000)]
Some markup and style fixes in argparse docs.
Georg Brandl [Sun, 17 Oct 2010 10:28:04 +0000 (10:28 +0000)]
#9112: document error() and exit() methods of ArgumentParser.
Georg Brandl [Sun, 17 Oct 2010 10:24:54 +0000 (10:24 +0000)]
#9105: move pickle warning to a bit more prominent location.
Georg Brandl [Sun, 17 Oct 2010 10:22:28 +0000 (10:22 +0000)]
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.
Georg Brandl [Sun, 17 Oct 2010 10:15:50 +0000 (10:15 +0000)]
Make file names consistent.
Georg Brandl [Sun, 17 Oct 2010 10:14:38 +0000 (10:14 +0000)]
#9086: correct wrong terminology about linking with pythonXY.dll.
Georg Brandl [Sun, 17 Oct 2010 10:09:06 +0000 (10:09 +0000)]
#5212: md5 weaknesses do not affect hmac, so remove the note about that.
Georg Brandl [Sun, 17 Oct 2010 10:07:29 +0000 (10:07 +0000)]
Fix copy-paste error in example.
Georg Brandl [Sun, 17 Oct 2010 10:05:13 +0000 (10:05 +0000)]
#459007: merge info from PC/getpathp.c and using/windows.rst to document the forming of sys.path under Windows.
Georg Brandl [Sun, 17 Oct 2010 09:46:11 +0000 (09:46 +0000)]
#8968: add actual name of token constants.
Georg Brandl [Sun, 17 Oct 2010 09:43:35 +0000 (09:43 +0000)]
Fix hmac docs: it takes and returns bytes, except for hexdigest().
Georg Brandl [Sun, 17 Oct 2010 09:37:54 +0000 (09:37 +0000)]
#8855: add shelve security warning.
Georg Brandl [Sun, 17 Oct 2010 09:33:24 +0000 (09:33 +0000)]
#8811: small fixes to sqlite3 docs.
Georg Brandl [Sun, 17 Oct 2010 09:23:05 +0000 (09:23 +0000)]
#8686: remove potentially confusing wording that does not add any value.
Georg Brandl [Sun, 17 Oct 2010 09:19:03 +0000 (09:19 +0000)]
#8556: use less confusing mapping key in example.
Amaury Forgeot d'Arc [Sun, 17 Oct 2010 08:34:22 +0000 (08:34 +0000)]
Fix compilation warning in _ctypes module on Window
Amaury Forgeot d'Arc [Sun, 17 Oct 2010 08:26:13 +0000 (08:26 +0000)]
On Windows, remove compilation warnings with the zlib and gzip modules.
Georg Brandl [Sun, 17 Oct 2010 06:32:59 +0000 (06:32 +0000)]
#10058: tweak wording about exception returns.
Georg Brandl [Sun, 17 Oct 2010 06:21:59 +0000 (06:21 +0000)]
Note that maxtasksperchild is new in 3.2.
Gregory P. Smith [Sun, 17 Oct 2010 03:09:12 +0000 (03:09 +0000)]
Avoid hanging the test on netbsd5.
Gregory P. Smith [Sun, 17 Oct 2010 02:57:19 +0000 (02:57 +0000)]
skip test_itimer_virtual on NetBSD to prevent the test suite from hanging.
Gregory P. Smith [Sun, 17 Oct 2010 02:14:36 +0000 (02:14 +0000)]
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.
Victor Stinner [Sun, 17 Oct 2010 02:07:09 +0000 (02:07 +0000)]
find_module(): use FS encoding to display the missing __init__ warning
Victor Stinner [Sun, 17 Oct 2010 01:41:09 +0000 (01:41 +0000)]
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).
Benjamin Peterson [Sun, 17 Oct 2010 01:30:26 +0000 (01:30 +0000)]
use assertion methods
Benjamin Peterson [Sun, 17 Oct 2010 01:29:11 +0000 (01:29 +0000)]
disable the garbage collector while collecting traces, so that __del__s don't get caught
Benjamin Peterson [Sun, 17 Oct 2010 01:25:19 +0000 (01:25 +0000)]
remove rather pointless test
Victor Stinner [Sun, 17 Oct 2010 01:24:53 +0000 (01:24 +0000)]
_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
Gregory P. Smith [Sun, 17 Oct 2010 00:43:10 +0000 (00:43 +0000)]
applying netbsd-wizs-mod.patch from issue5510 -
fixes for netbsd (and dragonflybsd?)
Gregory P. Smith [Sun, 17 Oct 2010 00:17:24 +0000 (00:17 +0000)]
fix for netbsd.
Victor Stinner [Sat, 16 Oct 2010 23:46:43 +0000 (23:46 +0000)]
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.
Victor Stinner [Sat, 16 Oct 2010 23:38:07 +0000 (23:38 +0000)]
Oops, fix my previous commit (r85583) on calculate_path()
path value may be changed, so keep a copy in a new variable.
Victor Stinner [Sat, 16 Oct 2010 23:34:22 +0000 (23:34 +0000)]
calculate_path(): use _Py_char2wchar() to decode the PATH environment variable,
to support surrogate characters
Victor Stinner [Sat, 16 Oct 2010 23:16:16 +0000 (23:16 +0000)]
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.
Victor Stinner [Sat, 16 Oct 2010 22:55:47 +0000 (22:55 +0000)]
_Py_wrealpath() uses _Py_char2wchar() to decode the result, to support
surrogate characters.
Victor Stinner [Sat, 16 Oct 2010 22:52:09 +0000 (22:52 +0000)]
_Py_wreadlink(): catch _Py_char2wchar() failure
Victor Stinner [Sat, 16 Oct 2010 22:47:37 +0000 (22:47 +0000)]
_Py_wreadlink() uses _Py_char2wchar() to decode the result, to support
surrogate characters.
Victor Stinner [Sat, 16 Oct 2010 21:54:59 +0000 (21:54 +0000)]
Issue #10123: Don't use non-ascii filenames in test_doctest tests. Add a
new test specific to unicode (non-ascii name and filename).
Georg Brandl [Sat, 16 Oct 2010 20:33:11 +0000 (20:33 +0000)]
Get rid of a "unused static function" warning.
Alexander Belopolsky [Sat, 16 Oct 2010 20:14:24 +0000 (20:14 +0000)]
Added __pycache__ to svn:ignore property
Georg Brandl [Sat, 16 Oct 2010 18:53:08 +0000 (18:53 +0000)]
#10124: typo fix.
Georg Brandl [Sat, 16 Oct 2010 18:51:05 +0000 (18:51 +0000)]
#10122: typo fix.
Barry Warsaw [Sat, 16 Oct 2010 14:17:50 +0000 (14:17 +0000)]
abiflags: alphabetize and versionadded
Victor Stinner [Sat, 16 Oct 2010 13:42:53 +0000 (13:42 +0000)]
Fix ast_error_finish() and err_input(): filename can be NULL
Fix my previous commit (r85569).
Victor Stinner [Sat, 16 Oct 2010 13:14:10 +0000 (13:14 +0000)]
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.
Victor Stinner [Sat, 16 Oct 2010 11:29:07 +0000 (11:29 +0000)]
zipimport: catch _PyUnicode_AsString() failure in get_code_from_data()
It occurs if the path contains surrogates.
Brian Quinlan [Sat, 16 Oct 2010 10:36:11 +0000 (10:36 +0000)]
Fixes issue 10120 (concurrent.futures module is not installed properly), patch by Neil Muller
Brian Quinlan [Sat, 16 Oct 2010 10:12:32 +0000 (10:12 +0000)]
Fix incorrect maintainer name
Brian Quinlan [Sat, 16 Oct 2010 09:55:14 +0000 (09:55 +0000)]
Add bquinlan as the maintainer of concurrent.futures
Benjamin Peterson [Sat, 16 Oct 2010 03:45:45 +0000 (03:45 +0000)]
don't identify the toplevel namespace by name #9997
Benjamin Peterson [Sat, 16 Oct 2010 03:12:39 +0000 (03:12 +0000)]
fix refleak
Barry Warsaw [Sat, 16 Oct 2010 01:20:45 +0000 (01:20 +0000)]
Add NEWS for issue 9807 part 1.
Barry Warsaw [Sat, 16 Oct 2010 01:04:07 +0000 (01:04 +0000)]
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.
Benjamin Peterson [Fri, 15 Oct 2010 23:14:46 +0000 (23:14 +0000)]
run autoconf
R. David Murray [Fri, 15 Oct 2010 23:12:57 +0000 (23:12 +0000)]
#9862: On AIX PIPE_BUF is broken. Make it 512.
Patch by Sébastien Sablé.
Victor Stinner [Fri, 15 Oct 2010 22:46:07 +0000 (22:46 +0000)]
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().
Victor Stinner [Fri, 15 Oct 2010 22:43:10 +0000 (22:43 +0000)]
imp_load_module() uses PyUnicode_FSConverter() to support surrogates in module
path
Benjamin Peterson [Fri, 15 Oct 2010 21:56:35 +0000 (21:56 +0000)]
revert change in inappropiate branch
Victor Stinner [Fri, 15 Oct 2010 20:34:32 +0000 (20:34 +0000)]
imp.cache_from_source() uses PyUnicode_FSConverter() to support surrogates in
module path
Georg Brandl [Fri, 15 Oct 2010 19:46:19 +0000 (19:46 +0000)]
#10072: assume a bit less knowledge of the FTP protocol in the ftplib docs.
Georg Brandl [Fri, 15 Oct 2010 18:00:35 +0000 (18:00 +0000)]
#6098: Refrain from claiming DOM level 3 conformance in minidom.
Georg Brandl [Fri, 15 Oct 2010 17:58:45 +0000 (17:58 +0000)]
#5762: fix handling of empty namespace in minidom, which would result in AttributeError on toxml().
Georg Brandl [Fri, 15 Oct 2010 17:03:02 +0000 (17:03 +0000)]
#4785: document strict argument of JSONDecoder, plus add object_pairs_hook in the docstrings.
Georg Brandl [Fri, 15 Oct 2010 17:01:15 +0000 (17:01 +0000)]
#7790: move table of struct_time members to the actual description of struct_time.
Georg Brandl [Fri, 15 Oct 2010 16:53:24 +0000 (16:53 +0000)]
#4968: updates to inspect.is* function docs.
Georg Brandl [Fri, 15 Oct 2010 16:42:37 +0000 (16:42 +0000)]
#6798: fix wrong docs for the arguments to several trace events.
Georg Brandl [Fri, 15 Oct 2010 16:42:14 +0000 (16:42 +0000)]
Fix issue references.
Georg Brandl [Fri, 15 Oct 2010 16:35:46 +0000 (16:35 +0000)]
#7303: add documentation for useful pkgutil functions and classes.
Alexander Belopolsky [Fri, 15 Oct 2010 16:28:20 +0000 (16:28 +0000)]
Issue #9308: Removed redundant coding cookies. Added tests for
importing encoded modules that do not depend on specific stdlib
modules being encoded in a certain way.
Georg Brandl [Fri, 15 Oct 2010 16:26:08 +0000 (16:26 +0000)]
#9054: fix crash when using pyexpat with a system expat lib version 2.0.1.
Georg Brandl [Fri, 15 Oct 2010 16:23:54 +0000 (16:23 +0000)]
Remove unused label.