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
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