Commit Graph

43230 Commits

Author SHA1 Message Date
Antoine Pitrou b0fa831d1e Issue #7415: PyUnicode_FromEncodedObject() now uses the new buffer API
properly.  Patch by Stefan Behnel.
2010-09-01 15:10:12 +00:00
Antoine Pitrou f68c2a701b Issue #3101: Helper functions _add_one_to_C() and _add_one_to_F() become
_Py_add_one_to_C() and _Py_add_one_to_F(), respectively.
2010-09-01 12:58:21 +00:00
Raymond Hettinger 53c58f8bcc Forward port sorting howto 2010-09-01 09:15:42 +00:00
Raymond Hettinger 9707fd2ec0 More descriptive title. 2010-09-01 08:57:16 +00:00
Raymond Hettinger 6b3d72c243 Fix line wrapping 2010-09-01 08:56:10 +00:00
Raymond Hettinger d292a17fc7 2-to-3 fixup for map() example in docs 2010-09-01 07:46:54 +00:00
Raymond Hettinger 20933e08b1 Clean-up bisect docs.
* Document the post conditions for bisect_left() and bisect_right().
* Fix the grades example to use more obvious breakpoints
  and to use a list comprehension instead of map() which returns
  an iterator in Py3.x.
* Improve and expand the examples of searching sorted lists.
* Issue 4356 -- move up reference to the SortedCollection recipe.
2010-09-01 06:58:25 +00:00
Benjamin Peterson 49203dc9f2 reformat comment 2010-08-31 20:10:55 +00:00
Daniel Stutzbach 19d6a4fd49 Issue #808164: Fixed socket.close to avoid references to globals, to
avoid issues when socket.close is called from a __del__ method.
2010-08-31 20:08:07 +00:00
Daniel Stutzbach a606faa491 Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers other than MSC 2010-08-31 19:51:07 +00:00
Daniel Stutzbach 061b14a4a1 Reverted r84315 and r84316, with Benjamin's blessing. The tests were
fine.  They were failing due to a problem exposed in r84307 and fixed
in r84317.   See Issue 8781 for details.
2010-08-31 15:45:04 +00:00
Benjamin Peterson f5a3d699a7 add nonlocal to pydoc topics #9724 2010-08-31 14:31:01 +00:00
Vinay Sajip dc5097ff07 Removed _unicode variable which is always False in Python 3.x. 2010-08-31 07:52:17 +00:00
Vinay Sajip ec1cd1c475 logging: merged duplicated code in fileConfig and dictConfig paths. 2010-08-30 19:02:14 +00:00
Vinay Sajip 609364a989 Logging: removed some old commented out code. 2010-08-30 18:31:13 +00:00
Giampaolo Rodolà 8b7da623ce Fix issue #9711: raise ValueError is SSLConnection constructor is invoked with keyfile and not certfile. 2010-08-30 18:28:05 +00:00
Vinay Sajip 40d9a4e854 Improved logging.Formatter date/time formatting documentation. 2010-08-30 18:10:03 +00:00
Antoine Pitrou 33a299428d Issue #9700: define HAVE_BROKEN_POSIX_SEMAPHORES under AIX 6.x. Patch by
Sébastien Sablé.
2010-08-30 14:52:00 +00:00
Benjamin Peterson 33856de84d handle names starting with non-ascii characters correctly #9712 2010-08-30 14:41:20 +00:00
Florent Xicluna e01de8f2f3 remove pointless coding cookies 2010-08-30 14:05:50 +00:00
Benjamin Peterson e992a7da01 remove pointless coding cookie 2010-08-30 13:57:28 +00:00
Benjamin Peterson 6b4fa776ac rewrite and move open() docs only to functions.rst 2010-08-30 13:19:53 +00:00
Benjamin Peterson 4e4ffb1181 sync open() doc 2010-08-30 12:46:09 +00:00
Antoine Pitrou b530e1438b Issue #9715: improve documentation of the io module 2010-08-30 12:41:00 +00:00
Giampaolo Rodolà 4a656ebe05 dedent some lines in test_ssl so that they are actually executed 2010-08-29 22:50:39 +00:00
Giampaolo Rodolà cd9dfb919a in ssl tests rely on IOError.errno rather thanf IOError.strerror for better compatibility across platforms. 2010-08-29 20:56:56 +00:00
Giampaolo Rodolà 51078b1e5d update Misc/NEWS to include issue #9706 changes 2010-08-29 19:31:49 +00:00
Giampaolo Rodolà 745ab3807e Fix issue issue9706: provides a better error handling for various SSL operations 2010-08-29 19:25:49 +00:00
Giampaolo Rodolà 374f835316 Raise ValuError if non-zero flag argument is provided for sendall() method for conformity with send(), recv() and recv_into() 2010-08-29 12:08:09 +00:00
Antoine Pitrou 67c7ce4bef Issue #4835: make PyLong_FromSocket_t() and PyLong_AsSocket_t() private
to the socket module, and fix the width of socket descriptors to be
correctly detected under 64-bit Windows.
2010-08-28 20:42:55 +00:00
Antoine Pitrou 1a9a9d5433 Issue #1868: Eliminate subtle timing issues in thread-local objects by
getting rid of the cached copy of thread-local attribute dictionary.
2010-08-28 18:17:03 +00:00
Mark Dickinson 64a38c0eb5 Issue #1512791: In setframerate method of Wave_write, round non-integral
inputs to the nearest integer.  Thanks Neil Tallim for the patch.
2010-08-28 17:22:16 +00:00
Martin v. Löwis a62074883b Stop packaging versioncheck. 2010-08-28 13:40:10 +00:00
Martin v. Löwis 49561ada3e Replace cabarc with FCICreate. 2010-08-28 13:39:09 +00:00
Martin v. Löwis 9f59fa5d67 Fix various build problems. 2010-08-28 13:06:43 +00:00
Martin v. Löwis c8fdd10839 Add file needed to make distclean. 2010-08-28 07:42:21 +00:00
Martin v. Löwis ccbd427d37 Issue #9704: Add zlib files necessary to run configure
and make.
2010-08-28 07:37:05 +00:00
Brett Cannon a7ceeb335f OSError is the exception raised when one tries to create a directory that
already exists, not IOError.

Part of the continuing saga of issue #9572.
2010-08-26 21:07:13 +00:00
Georg Brandl 816756182e #9681: typo. 2010-08-26 14:30:56 +00:00
Georg Brandl 179249f493 #9689: add links from overview to in-depth class API descriptions. 2010-08-26 14:30:15 +00:00
Senthil Kumaran 4bb5c273c6 Fix Issue8797 - Reset the basic auth retry count when response code is not 401. 2010-08-26 06:16:22 +00:00
Benjamin Peterson 0e10206f2c basicsize and itemsize are Py_ssize_t #9688 2010-08-25 23:13:17 +00:00
Martin v. Löwis dc078de493 Disable deletion of openssl again. 2010-08-25 22:15:18 +00:00
Daniel Stutzbach 864078a5dd Issue 8781: Define SIZEOF_WCHAR_T on Windows 2010-08-25 19:18:59 +00:00
Benjamin Peterson 6505ee8453 apparently this test should be gated, too 2010-08-25 17:57:04 +00:00
Benjamin Peterson b35f646796 this test is only valid when sizeof(wchar) == Py_UNICODE_SIZE 2010-08-25 17:02:22 +00:00
Victor Stinner ef6ff662c9 Fix test_sys: set LC_ALL instead of LANG
LC_ALL is read before LANG to choose the locale encoding (LC_ALL, LANG and then
LC_CTYPE: use the first non empty variable).
2010-08-25 08:33:34 +00:00
Martin v. Löwis 112c0f3411 Issue #1027206: getnameinfo is now restricted to numeric addresses as input. 2010-08-25 07:38:15 +00:00
R. David Murray 219d1c8ae3 #1194222: make parsedate always return RFC2822 four character years.
Two character years are now converted to four character years using
the Posix standard rule (<68 == 2000, >=68==1900).  This makes the
parsed date RFC2822 compliant even if the input is not.

Patch and test by Jeffrey Finkelstein.
2010-08-25 00:45:55 +00:00
Victor Stinner 1970b62aee Disable test_undecodable_code() of test_sys on Windows
This test is irrevelant on Windows
2010-08-25 00:20:27 +00:00