Commit Graph

43869 Commits

Author SHA1 Message Date
R. David Murray a90032a3fb #1343: Add short_empty_elements option to XMLGenerator.
Patch and tests by Neil Muller.
2010-10-17 22:46:45 +00:00
Skip Montanaro 961aaf5cfa Note the resolution of issue 9778. 2010-10-17 22:22:24 +00:00
Benjamin Peterson e7dfeeb889 -1 is reserved for errors 2010-10-17 21:27:01 +00:00
Benjamin Peterson e6baa46aab fix prototype 2010-10-17 21:20:58 +00:00
Benjamin Peterson 223f091737 fix strict aliasing warnings 2010-10-17 21:12:18 +00:00
Benjamin Peterson 8f67d0893f make hashes always the size of pointers; introduce Py_hash_t #9778 2010-10-17 20:54:53 +00:00
Victor Stinner 6fb457526c 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 :-)
2010-10-17 20:17:41 +00:00
Victor Stinner 3218c31429 test_httpservers: Fix skip test check, the python executable path have to be
encodable to utf-8, not to the file1 encoding.
2010-10-17 20:13:36 +00:00
Benjamin Peterson 23d05c1d98 use helper hash unimplemented function 2010-10-17 20:13:05 +00:00
Martin v. Löwis a2e7d9bdc1 Fix T_BOOL bug of issue 8845. 2010-10-17 19:48:29 +00:00
Victor Stinner 0b0ca0c37e test_httpservers: skip CGI tests if Python executable path is not encodable 2010-10-17 19:46:36 +00:00
Gregory P. Smith 3ebc22a628 Remove the external non-python.org hyperlink and point people to
Tools/gdb/libpython.py.
2010-10-17 19:40:59 +00:00
Martin v. Löwis c980ffde14 Drop OPT:Olimit, as it confuses SunPRO (and other compilers). 2010-10-17 19:36:54 +00:00
Victor Stinner 6ffbee77dc libpython: implementation of os.fsencode() with surrogateescape error handler 2010-10-17 19:35:30 +00:00
Victor Stinner e0f3268715 run_file(): encode the filename with PyUnicode_EncodeFSDefault() instead of
PyUnicode_AsUTF8String()
2010-10-17 19:34:51 +00:00
Victor Stinner c049982ea5 compiler_error(): use PyUnicode_DecodeFSDefault() to decode the filename,
instead of utf-8 in strict mode.
2010-10-17 19:16:33 +00:00
Victor Stinner 15a71cdad2 PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead of
PyUnicode_FromString(), to decode the filename.
2010-10-17 19:03:16 +00:00
Gregory P. Smith 5b5d8d58c7 The py_decref macro was incorrect and unnecessary. 2010-10-17 18:59:56 +00:00
Gregory P. Smith 03efcf2d99 * 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.
2010-10-17 18:38:04 +00:00
Matthias Klose 8690ae57f3 - Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension. 2010-10-17 13:22:33 +00:00
Senthil Kumaran c961322f4f Syntax fixes for examples in the Doc/includes 2010-10-17 11:42:21 +00:00
Georg Brandl 134c35b191 #9730: fix example. 2010-10-17 11:36:28 +00:00
Georg Brandl 2379877246 Fix documentation of dis.opmap direction. 2010-10-17 11:29:07 +00:00
Georg Brandl c16e8f17ac Make twisted example a bit more logical. 2010-10-17 11:23:56 +00:00
Georg Brandl c8148265dc Port changes to pickle docs apparently lost in py3k. 2010-10-17 11:13:37 +00:00
Georg Brandl 8527126f85 #9237: document sys.call_tracing(). 2010-10-17 11:06:14 +00:00
Georg Brandl 12c695cea9 #5121: fix claims about default values leading to segfaults. 2010-10-17 11:03:22 +00:00
Georg Brandl 2aff335c36 #9204: remove mentions of removed types in the types module. 2010-10-17 10:59:41 +00:00
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