Georg Brandl
151973e1c8
#1436346 : make it more obvious that timetuple[7] is yday.
2010-05-23 21:29:29 +00:00
Georg Brandl
fee0f44b91
NEWS rewrap and punctuation consistency.
2010-05-22 21:26:21 +00:00
Benjamin Peterson
36cd75ab8d
Merged revisions 80937,81478 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r80937 | benjamin.peterson | 2010-05-07 14:10:58 -0500 (Fri, 07 May 2010) | 1 line
remove redundant unicode call
........
r81478 | benjamin.peterson | 2010-05-22 13:47:39 -0500 (Sat, 22 May 2010) | 1 line
ensure doctests have some future_features
........
2010-05-22 18:52:21 +00:00
Victor Stinner
54b40ee929
Fix my last commit (r81471) about codecs
...
Rememder: don't touch the code just before a commit
2010-05-22 13:44:25 +00:00
Victor Stinner
7df55dad3b
Issue #6268 : More bugfixes about BOM, UTF-16 and UTF-32
...
* Fix seek() method of codecs.open(), don't write the BOM twice after seek(0)
* Fix reset() method of codecs, UTF-16, UTF-32 and StreamWriter classes
* test_codecs: use "w+" mode instead of "wt+". "t" mode is not supported by
Solaris or Windows, but does it really exist? I found it the in the issue.
2010-05-22 13:37:56 +00:00
Georg Brandl
54d2898ef8
#8635 : document enumerate() start parameter in docstring.
2010-05-22 11:43:25 +00:00
Georg Brandl
a19baf58e6
Underscore the name of an internal utility function.
2010-05-22 11:31:16 +00:00
Georg Brandl
5d0ca2c832
Issue #3924 : Ignore cookies with invalid "version" field in cookielib.
2010-05-22 11:29:19 +00:00
Georg Brandl
f93ce0c1f5
#8785 : less confusing description of regex.find*.
2010-05-22 08:17:23 +00:00
Victor Stinner
262be5e70b
Issue #6268 : Fix seek() method of codecs.open(), don't read the BOM twice
...
after seek(0)
2010-05-22 02:11:07 +00:00
Victor Stinner
d6703b5e38
Issue #5640 : Fix Shift-JIS incremental encoder for error handlers different
...
than strict
2010-05-21 22:50:28 +00:00
Georg Brandl
fa0fdb89e9
#8709 : mention Windows support for os.devnull.
2010-05-21 22:03:29 +00:00
Georg Brandl
93f6615a02
typo
2010-05-21 21:48:57 +00:00
Georg Brandl
042d6a4f75
Correct info for Semaphore.acquire() semantics under OSX.
2010-05-21 21:47:05 +00:00
Benjamin Peterson
26da187193
simplify and modernize updatecache()
2010-05-21 21:35:44 +00:00
Benjamin Peterson
b9e7c01294
remove debugging rubish
2010-05-21 21:32:49 +00:00
Benjamin Peterson
266e454866
ensure the last line has a trailing newline #8782
2010-05-21 21:31:24 +00:00
Georg Brandl
dd59f1bf92
#8707 : remove duplicate paragraph part.
2010-05-21 21:30:47 +00:00
Benjamin Peterson
bd289dae35
fix name
2010-05-21 21:17:22 +00:00
Benjamin Peterson
6722ac2f00
use addCleanup
2010-05-21 21:16:12 +00:00
Georg Brandl
233eb54051
Add missing parameter in SimpleXMLRPCServer signature.
2010-05-21 20:58:12 +00:00
Georg Brandl
da69add804
typo
2010-05-21 20:52:46 +00:00
Benjamin Peterson
eb318d3b16
return NotImplemented from Mapping when comparing to a non-mapping #8729
2010-05-21 20:51:45 +00:00
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