Georg Brandl
16fd5cdfeb
#8783 : replace link to now dead hash collision FAQ.
2010-05-21 20:24:45 +00:00
Vinay Sajip
c76defc118
Updated logging documentation with more dictConfig information.
2010-05-21 17:41:34 +00:00
Antoine Pitrou
6a2656094d
Issue #5753 : A new C API function, :cfunc:`PySys_SetArgvEx`, allows
...
embedders of the interpreter to set sys.argv without also modifying
sys.path. This helps fix `CVE-2008-5983
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983 >`_.
2010-05-21 17:12:38 +00:00
Benjamin Peterson
a85bd06a82
fix extra 't' #8778
2010-05-20 22:23:37 +00:00
Brett Cannon
eb3cd301ae
Turned out that if you used explicit relative import syntax
...
(e.g. from .os import sep) and it failed, import would still try the implicit
relative import semantics of an absolute import (from os import sep). That's
not right, so when level is negative, only do explicit relative import
semantics.
Fixes issue #7902 . Thanks to Meador Inge for the patch.
2010-05-20 18:37:55 +00:00
Victor Stinner
b1556c537d
libpython.py: fix support of non-BMP unicode characters
...
Forward port some code from Python3:
* join surrogate pairs if sizeof(Py_UNICODE)==2
* Enable non-BMP test on narrow builds using u"\U0001D121" instead of
unichr(0x1D121)
2010-05-20 11:29:45 +00:00
Tarek Ziadé
8f692275e9
#8759 : Fixed user paths in sysconfig for posix and os2 schemes
2010-05-19 22:20:14 +00:00
Stefan Krah
4a769059be
Fix typo.
2010-05-19 15:59:40 +00:00
Stefan Krah
8a6f3fe3b5
Fix typos in docstrings.
2010-05-19 15:46:39 +00:00
Ezio Melotti
019551fa1b
Fix typo in argparse doc.
2010-05-19 00:32:52 +00:00
Giampaolo Rodolà
e3a84e857f
Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included NameError in the tuple of expected exception; added test case for asyncore._strerror.
2010-05-18 20:04:31 +00:00
Senthil Kumaran
cccfce1959
Doc Fix. Correct link to Zephyr ASDL Abstract page.
2010-05-18 13:40:23 +00:00
Vinay Sajip
a38cd52e96
Fixed minor typo in ReST markup.
2010-05-18 08:16:27 +00:00
Senthil Kumaran
71a632433f
Fix minor typo.
2010-05-18 03:20:43 +00:00
Antoine Pitrou
83137c2e16
Issue #7079 : Fix a possible crash when closing a file object while using
...
it from another thread. Patch by Daniel Stutzbach.
2010-05-17 19:56:59 +00:00
Florent Xicluna
af87f9f09f
Issue #1285086 : Speed up urllib.quote and urllib.unquote for simple cases.
2010-05-17 13:35:09 +00:00
Tarek Ziadé
4fc2a008b8
upgraded distutils docs w.r.t. the manifest regeneration
2010-05-17 10:54:43 +00:00
Florent Xicluna
e127e24359
Slight style cleanup.
2010-05-17 10:39:07 +00:00
Tarek Ziadé
422545f0e7
Fixed #8688 : Distutils now recalculates MANIFEST everytime.
2010-05-17 10:06:20 +00:00
Andrew M. Kuchling
1b553473ed
Add cross-reference to later section
2010-05-16 23:31:16 +00:00
Antoine Pitrou
508a237c97
Clear the OpenSSL error queue each time an error is signalled.
...
When the error queue is not emptied, strange things can happen on the next SSL call, depending on the OpenSSL version.
2010-05-16 23:11:46 +00:00
Antoine Pitrou
308c2af9a4
Document that SSL v2 is insecure.
2010-05-16 14:16:56 +00:00
Victor Stinner
8a470d6039
Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close()
...
fo is not set if the open() fails.
2010-05-16 00:34:40 +00:00
Victor Stinner
3bea1ede7d
Use 4-spaces for indentation (instead of tabs) in pgen outputs
...
Regenerate (reindent) Python/graminit.c
2010-05-15 22:55:28 +00:00
Victor Stinner
fd2103e68d
reindent _cursesmodule.c
...
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
2010-05-15 22:19:27 +00:00
Amaury Forgeot d'Arc
03acec2256
Remove unused variable, and fix a compilation warning on Windows
2010-05-15 21:45:30 +00:00
Victor Stinner
db99092eae
NEWS: strip trailing spaces
2010-05-15 21:00:59 +00:00
Benjamin Peterson
5b5134b8d1
use TestCase skip method
2010-05-15 17:48:55 +00:00
Stefan Krah
7622eba757
If the timeout is exceeded, count the tests as skipped instead of just
...
issuing a warning.
2010-05-15 09:31:08 +00:00
Victor Stinner
2b271f7e30
Fix regression introduced by r81154 (Issue #5099 , subprocess destructor)
2010-05-14 21:52:26 +00:00
Victor Stinner
5f8aae0be3
Issue #8711 : add paragraph titles to c-api/unicode.rst
...
(Python2 doesn't have PyUnicode_DecodeFSDefault*() functions)
2010-05-14 15:53:20 +00:00
Victor Stinner
8ded477916
Doc: replace PEP xxx by :pep:`xxx` to create a link on the PEP
2010-05-14 14:20:07 +00:00
Brett Cannon
42a0ba7b2c
subprocess.Popen.__del__ referenced global objects, which is a no-no thanks to
...
interpreter shutdown semantics. Same issue goes for the methods that __del__
called. Now all the methods capture the global objects it needs as default
values to private parameters (could have stuck them on the class object itself,
but since the objects have nothing directly to do with the class that seemed
wrong).
There is no test as making one that works is hard. This patch was
verified against a consistently failing test in Mercurial's test suite, though,
so it has been tested in some regard.
Closes issue #5099 . Thanks to Mary Stern for the bug report and Gabriel
Genellina for writing another patch for the same issue and attempting to write
a test.
2010-05-14 00:21:48 +00:00
Brett Cannon
da9af75d5f
test_site was failing under darwin for non-framework builds because a test was
...
assuming framework-specific site-packages directories were being used.
2010-05-13 23:59:41 +00:00
Florent Xicluna
b3d0554040
Revert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot.
2010-05-13 23:46:48 +00:00
Florent Xicluna
9cf210f392
Improve test feedback to troubleshoot issue #8423 on OS X.
2010-05-13 21:41:05 +00:00
Florent Xicluna
9ac6114dc9
Better test skipping, with message in the log.
2010-05-13 21:40:01 +00:00
Benjamin Peterson
8c72b4e931
rip out mention of types.ListType #8703
2010-05-13 21:14:10 +00:00
Florent Xicluna
8652f2e83e
Revert the additional OS X information (r81140). Keep the endianness information.
2010-05-13 18:16:06 +00:00
Florent Xicluna
b7d413f9bc
Add sensible information about the OS X platform to diagnose issue #8423 :
...
test_pep277 fails on "x86 Tiger" buildbot but not on "PPC Tiger".
2010-05-13 17:05:29 +00:00
Victor Stinner
37368163bd
Fix verb tense in skip message.
...
Ooops, merge also r80334 (patch by r.david.murray)
2010-05-13 16:22:15 +00:00
Victor Stinner
20c3258bf2
Issue #8422 , test_genericpath: skip the creation of a directory with an invalid
...
UTF name on Mac OS X because the OS deny it (the name have to be a valid UTF8
string).
Merge r80163 from py3k branch.
2010-05-13 16:18:14 +00:00
Senthil Kumaran
81a0450cb5
Fix Issue8657 - adding git and git+ssh as know schemes.
2010-05-13 03:25:21 +00:00
Mark Dickinson
62f7e8b0b8
Fix unused variable in test_factorial.
2010-05-12 19:53:36 +00:00
Andrew M. Kuchling
f09bc66083
#8696 : add documentation for logging.config.dictConfig (PEP 391)
2010-05-12 18:56:48 +00:00
Antoine Pitrou
2e136abd16
Improve _ssl.c formatting
2010-05-12 14:02:34 +00:00
Andrew M. Kuchling
e551337f16
Grammar fix
2010-05-12 13:56:07 +00:00
Fred Drake
62bebdf49f
- clarify Attr.name comment on the presence of colons in namespace mode
...
- document Attr.value
- wrap some long lines
2010-05-12 02:24:50 +00:00
Fred Drake
5840469067
fix error introduced in previous commit, and the adjacent additional typo
2010-05-12 01:22:03 +00:00
Andrew M. Kuchling
68df234b73
Let's call this done
2010-05-12 00:40:47 +00:00