Raymond Hettinger [Thu, 2 Sep 2010 18:44:16 +0000 (18:44 +0000)]
Make OrderedDict.popitem() a bit smarter and faster
Daniel Stutzbach [Thu, 2 Sep 2010 15:13:35 +0000 (15:13 +0000)]
Credit where credit is due
Daniel Stutzbach [Thu, 2 Sep 2010 15:06:06 +0000 (15:06 +0000)]
Issue #9212: Added the missing isdisjoint method to the dict_keys and
dict_items views. The method is required by the collections.Set ABC,
which the views register as supporting.
Daniel Stutzbach [Thu, 2 Sep 2010 15:06:03 +0000 (15:06 +0000)]
Removed an extraneous semicolon
Raymond Hettinger [Thu, 2 Sep 2010 09:44:28 +0000 (09:44 +0000)]
Speed-up cache updates
Raymond Hettinger [Thu, 2 Sep 2010 09:17:31 +0000 (09:17 +0000)]
Keep contents order the same between versions.
Victor Stinner [Wed, 1 Sep 2010 23:43:53 +0000 (23:43 +0000)]
Create PyUnicode_strdup() function
Victor Stinner [Wed, 1 Sep 2010 23:43:50 +0000 (23:43 +0000)]
Create Py_UNICODE_strcat() function
Raymond Hettinger [Wed, 1 Sep 2010 22:11:53 +0000 (22:11 +0000)]
Glossary cleanup
Raymond Hettinger [Wed, 1 Sep 2010 21:27:31 +0000 (21:27 +0000)]
Cleanup heapq docs
Antoine Pitrou [Wed, 1 Sep 2010 21:14:46 +0000 (21:14 +0000)]
Fix a compilation warning
Antoine Pitrou [Wed, 1 Sep 2010 21:14:16 +0000 (21:14 +0000)]
Issue #9737: Fix a crash when trying to delete a slice or an item from
a memoryview object.
Georg Brandl [Wed, 1 Sep 2010 21:02:50 +0000 (21:02 +0000)]
#9677: fix link.
Antoine Pitrou [Wed, 1 Sep 2010 20:55:41 +0000 (20:55 +0000)]
Try to fix some buildbot failures on test_ssl
Raymond Hettinger [Wed, 1 Sep 2010 20:31:59 +0000 (20:31 +0000)]
'Using Python' now called 'Python Setup'
Antoine Pitrou [Wed, 1 Sep 2010 20:29:34 +0000 (20:29 +0000)]
Issue #8990: array.fromstring() and array.tostring() get renamed to
frombytes() and tobytes(), respectively, to avoid confusion. Furthermore,
array.frombytes(), array.extend() as well as the array.array()
constructor now accept bytearray objects. Patch by Thomas Jollans.
Victor Stinner [Wed, 1 Sep 2010 19:39:01 +0000 (19:39 +0000)]
Remove unicode_default_encoding constant
Inline its value in PyUnicode_GetDefaultEncoding(). The comment is now outdated
(we will not change its value anymore).
Giampaolo Rodolà [Wed, 1 Sep 2010 19:28:49 +0000 (19:28 +0000)]
Issue #9693 - msg 115273: attempt to fix ssl module failures on certain OpenSSL versions by calling ERR_clear_error() before raising IOError
Antoine Pitrou [Wed, 1 Sep 2010 18:54:56 +0000 (18:54 +0000)]
Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
Antoine Pitrou [Wed, 1 Sep 2010 15:10:12 +0000 (15:10 +0000)]
Issue #7415: PyUnicode_FromEncodedObject() now uses the new buffer API
properly. Patch by Stefan Behnel.
Antoine Pitrou [Wed, 1 Sep 2010 12:58:21 +0000 (12:58 +0000)]
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.
Raymond Hettinger [Wed, 1 Sep 2010 09:15:42 +0000 (09:15 +0000)]
Forward port sorting howto
Raymond Hettinger [Wed, 1 Sep 2010 08:57:16 +0000 (08:57 +0000)]
More descriptive title.
Raymond Hettinger [Wed, 1 Sep 2010 08:56:10 +0000 (08:56 +0000)]
Fix line wrapping
Raymond Hettinger [Wed, 1 Sep 2010 07:46:54 +0000 (07:46 +0000)]
2-to-3 fixup for map() example in docs
Raymond Hettinger [Wed, 1 Sep 2010 06:58:25 +0000 (06:58 +0000)]
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.
Benjamin Peterson [Tue, 31 Aug 2010 20:10:55 +0000 (20:10 +0000)]
reformat comment
Daniel Stutzbach [Tue, 31 Aug 2010 20:08:07 +0000 (20:08 +0000)]
Issue #808164: Fixed socket.close to avoid references to globals, to
avoid issues when socket.close is called from a __del__ method.
Daniel Stutzbach [Tue, 31 Aug 2010 19:51:07 +0000 (19:51 +0000)]
Issue 5553: Improved Py_LOCAL_INLINE to actually inline under compilers other than MSC
Daniel Stutzbach [Tue, 31 Aug 2010 15:45:04 +0000 (15:45 +0000)]
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.
Benjamin Peterson [Tue, 31 Aug 2010 14:31:01 +0000 (14:31 +0000)]
add nonlocal to pydoc topics #9724
Vinay Sajip [Tue, 31 Aug 2010 07:52:17 +0000 (07:52 +0000)]
Removed _unicode variable which is always False in Python 3.x.
Vinay Sajip [Mon, 30 Aug 2010 19:02:14 +0000 (19:02 +0000)]
logging: merged duplicated code in fileConfig and dictConfig paths.
Vinay Sajip [Mon, 30 Aug 2010 18:31:13 +0000 (18:31 +0000)]
Logging: removed some old commented out code.
Giampaolo Rodolà [Mon, 30 Aug 2010 18:28:05 +0000 (18:28 +0000)]
Fix issue #9711: raise ValueError is SSLConnection constructor is invoked with keyfile and not certfile.
Vinay Sajip [Mon, 30 Aug 2010 18:10:03 +0000 (18:10 +0000)]
Improved logging.Formatter date/time formatting documentation.
Antoine Pitrou [Mon, 30 Aug 2010 14:52:00 +0000 (14:52 +0000)]
Issue #9700: define HAVE_BROKEN_POSIX_SEMAPHORES under AIX 6.x. Patch by
Sébastien Sablé.
Benjamin Peterson [Mon, 30 Aug 2010 14:41:20 +0000 (14:41 +0000)]
handle names starting with non-ascii characters correctly #9712
Florent Xicluna [Mon, 30 Aug 2010 14:05:50 +0000 (14:05 +0000)]
remove pointless coding cookies
Benjamin Peterson [Mon, 30 Aug 2010 13:57:28 +0000 (13:57 +0000)]
remove pointless coding cookie
Benjamin Peterson [Mon, 30 Aug 2010 13:19:53 +0000 (13:19 +0000)]
rewrite and move open() docs only to functions.rst
Benjamin Peterson [Mon, 30 Aug 2010 12:46:09 +0000 (12:46 +0000)]
sync open() doc
Antoine Pitrou [Mon, 30 Aug 2010 12:41:00 +0000 (12:41 +0000)]
Issue #9715: improve documentation of the io module
Giampaolo Rodolà [Sun, 29 Aug 2010 22:50:39 +0000 (22:50 +0000)]
dedent some lines in test_ssl so that they are actually executed
Giampaolo Rodolà [Sun, 29 Aug 2010 20:56:56 +0000 (20:56 +0000)]
in ssl tests rely on IOError.errno rather thanf IOError.strerror for better compatibility across platforms.
Giampaolo Rodolà [Sun, 29 Aug 2010 19:31:49 +0000 (19:31 +0000)]
update Misc/NEWS to include issue #9706 changes
Giampaolo Rodolà [Sun, 29 Aug 2010 19:25:49 +0000 (19:25 +0000)]
Fix issue issue9706: provides a better error handling for various SSL operations
Giampaolo Rodolà [Sun, 29 Aug 2010 12:08:09 +0000 (12:08 +0000)]
Raise ValuError if non-zero flag argument is provided for sendall() method for conformity with send(), recv() and recv_into()
Antoine Pitrou [Sat, 28 Aug 2010 20:42:55 +0000 (20:42 +0000)]
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.
Antoine Pitrou [Sat, 28 Aug 2010 18:17:03 +0000 (18:17 +0000)]
Issue #1868: Eliminate subtle timing issues in thread-local objects by
getting rid of the cached copy of thread-local attribute dictionary.
Mark Dickinson [Sat, 28 Aug 2010 17:22:16 +0000 (17:22 +0000)]
Issue #
1512791: In setframerate method of Wave_write, round non-integral
inputs to the nearest integer. Thanks Neil Tallim for the patch.
Martin v. Löwis [Sat, 28 Aug 2010 13:40:10 +0000 (13:40 +0000)]
Stop packaging versioncheck.
Martin v. Löwis [Sat, 28 Aug 2010 13:39:09 +0000 (13:39 +0000)]
Replace cabarc with FCICreate.
Martin v. Löwis [Sat, 28 Aug 2010 13:06:43 +0000 (13:06 +0000)]
Fix various build problems.
Martin v. Löwis [Sat, 28 Aug 2010 07:42:21 +0000 (07:42 +0000)]
Add file needed to make distclean.
Martin v. Löwis [Sat, 28 Aug 2010 07:37:05 +0000 (07:37 +0000)]
Issue #9704: Add zlib files necessary to run configure
and make.
Brett Cannon [Thu, 26 Aug 2010 21:07:13 +0000 (21:07 +0000)]
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.
Georg Brandl [Thu, 26 Aug 2010 14:30:56 +0000 (14:30 +0000)]
#9681: typo.
Georg Brandl [Thu, 26 Aug 2010 14:30:15 +0000 (14:30 +0000)]
#9689: add links from overview to in-depth class API descriptions.
Senthil Kumaran [Thu, 26 Aug 2010 06:16:22 +0000 (06:16 +0000)]
Fix Issue8797 - Reset the basic auth retry count when response code is not 401.
Benjamin Peterson [Wed, 25 Aug 2010 23:13:17 +0000 (23:13 +0000)]
basicsize and itemsize are Py_ssize_t #9688
Martin v. Löwis [Wed, 25 Aug 2010 22:15:18 +0000 (22:15 +0000)]
Disable deletion of openssl again.
Daniel Stutzbach [Wed, 25 Aug 2010 19:18:59 +0000 (19:18 +0000)]
Issue 8781: Define SIZEOF_WCHAR_T on Windows
Benjamin Peterson [Wed, 25 Aug 2010 17:57:04 +0000 (17:57 +0000)]
apparently this test should be gated, too
Benjamin Peterson [Wed, 25 Aug 2010 17:02:22 +0000 (17:02 +0000)]
this test is only valid when sizeof(wchar) == Py_UNICODE_SIZE
Victor Stinner [Wed, 25 Aug 2010 08:33:34 +0000 (08:33 +0000)]
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).
Martin v. Löwis [Wed, 25 Aug 2010 07:38:15 +0000 (07:38 +0000)]
Issue #
1027206: getnameinfo is now restricted to numeric addresses as input.
R. David Murray [Wed, 25 Aug 2010 00:45:55 +0000 (00:45 +0000)]
#
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.
Victor Stinner [Wed, 25 Aug 2010 00:20:27 +0000 (00:20 +0000)]
Disable test_undecodable_code() of test_sys on Windows
This test is irrevelant on Windows
Victor Stinner [Tue, 24 Aug 2010 23:05:51 +0000 (23:05 +0000)]
Fix test_sys for FreeBSD, Solaris and Mac OS X
_Py_char2wchar() (mbctowcs) decodes b'\xff' to '\xff' on FreeBSD, Solaris and
Mac OS X, even if the locale is C (and the locale encoding is ASCII). Patch
test_undecodable_code() to support this output and document the two different
kinds of outputs.
Daniel Stutzbach [Tue, 24 Aug 2010 21:57:33 +0000 (21:57 +0000)]
Issue 8781: On systems a signed 4-byte wchar_t and a 4-byte Py_UNICODE, use memcpy to convert between the two (as already done when wchar_t is unsigned)
Benjamin Peterson [Tue, 24 Aug 2010 21:30:14 +0000 (21:30 +0000)]
remove parens
Brett Cannon [Tue, 24 Aug 2010 21:04:05 +0000 (21:04 +0000)]
Fix a bug where an attribute was lacking an object to work off of.
Related to the fix for issue #9572. Thanks to Łukasz Czuja for catching the
bug.
Benjamin Peterson [Tue, 24 Aug 2010 21:03:37 +0000 (21:03 +0000)]
further clarify
Daniel Stutzbach [Tue, 24 Aug 2010 20:49:57 +0000 (20:49 +0000)]
Issue 8750: Fixed MutableSet's methods to correctly handle reflexive operations, namely x -= x and x ^= x
Benjamin Peterson [Tue, 24 Aug 2010 18:08:22 +0000 (18:08 +0000)]
tabbing no longer applicable
Brian Curtin [Tue, 24 Aug 2010 05:20:30 +0000 (05:20 +0000)]
Fix #7579. Add docstrings to msvcrt and adjust some wording for bytes.
Benjamin Peterson [Tue, 24 Aug 2010 03:26:23 +0000 (03:26 +0000)]
only catch AttributeError in hasattr() #9666
Giampaolo Rodolà [Mon, 23 Aug 2010 22:28:13 +0000 (22:28 +0000)]
fix issue 9129: adds proper error handling on accept() when smtpd accepts new incoming connections.
Giampaolo Rodolà [Mon, 23 Aug 2010 22:10:32 +0000 (22:10 +0000)]
fix issue 9601: ftplib now provides a workaround for invalid response code returned on MKD and PWD by non-compliant FTPserver implementations such as ISS shipped with Windows server 2003
Benjamin Peterson [Mon, 23 Aug 2010 21:58:59 +0000 (21:58 +0000)]
cleanup imports
Giampaolo Rodolà [Mon, 23 Aug 2010 21:53:41 +0000 (21:53 +0000)]
fix issue 658749: correctly interprets asyncore's windows errors on connect()
Benjamin Peterson [Mon, 23 Aug 2010 19:35:39 +0000 (19:35 +0000)]
reorder and save a comparison
Vinay Sajip [Mon, 23 Aug 2010 17:50:30 +0000 (17:50 +0000)]
Issue #9501: Fixed logging regressions in cleanup code.
Benjamin Peterson [Mon, 23 Aug 2010 17:47:43 +0000 (17:47 +0000)]
news note for last change
Benjamin Peterson [Mon, 23 Aug 2010 17:40:33 +0000 (17:40 +0000)]
run total_ordering() tests, and fix the function (default comparisons shouldn't be considered)
Matthias Klose [Mon, 23 Aug 2010 16:47:09 +0000 (16:47 +0000)]
Fix builds with builddir != srcdir, introduced in r83988.
os.path.dirname(__file__) points to the scrdir, not the builddir.
Use os.getcwd() instead.
Martin v. Löwis [Mon, 23 Aug 2010 15:27:26 +0000 (15:27 +0000)]
Explicitly pass socket type and family for getaddrinfo,
to make test work on Solaris.
Disable gethostbyaddr IDNA test for now as there is no
reverse DNS entry for the IPv6 address of the test name.
Brett Cannon [Sun, 22 Aug 2010 22:19:11 +0000 (22:19 +0000)]
One of the joys of having test_multiprocessing occasionally execute after
test_importlib is that it discovers special little race conditions. For
instance, it turns out that importlib would throw an exception if two different
Python processes both tried to create the __pycache__ directory as one process
would succeed, causing the other process to fail as it didn't expect to get any
"help". So now importlib simply stays calm and just accepts someone else did
the work of creating the __pycache__ directory for it, moving on with life.
Closes issue #9572.
Brett Cannon [Sun, 22 Aug 2010 22:11:06 +0000 (22:11 +0000)]
Make sure that no __pycache__ directory is needlessly left behind when testing
imports with an empty string in sys.path.
Antoine Pitrou [Sun, 22 Aug 2010 20:43:26 +0000 (20:43 +0000)]
Add an import lock test for multithreaded circular imports.
(part of #9657)
Brett Cannon [Sun, 22 Aug 2010 20:38:47 +0000 (20:38 +0000)]
While not strictly necessary thanks to the odd ABC inheritance done through
importlib._bootstrap, add the optional methods for importlib.abc.SourceLoader
for completeness.
Brett Cannon [Sun, 22 Aug 2010 20:36:25 +0000 (20:36 +0000)]
Under OS X, history_get from readline returns a const char *, but the local
variable the return value is assigned to is char *. Since the assigned-to
variable is never changed, simply make that a const char * and cast all calls
to get_history to const char * to silence the compiler warning (found with
LLVM).
Georg Brandl [Sun, 22 Aug 2010 20:23:38 +0000 (20:23 +0000)]
#9649: fix default value description.
Daniel Stutzbach [Sun, 22 Aug 2010 19:41:04 +0000 (19:41 +0000)]
Added myself to Misc/maintainers.rst for topics on which I'd like to be added to the nosy list
Martin v. Löwis [Sun, 22 Aug 2010 19:38:04 +0000 (19:38 +0000)]
Mention that gethostbyaddr now also supports IDNA.
Martin v. Löwis [Sun, 22 Aug 2010 19:33:47 +0000 (19:33 +0000)]
Issue #
1027206: Support IDNA in gethostbyname, gethostbyname_ex and
getaddrinfo. Patch by David Watson.
Vinay Sajip [Sun, 22 Aug 2010 18:41:24 +0000 (18:41 +0000)]
Updated maintainers.rst to reflect correct Roundup name.
Vinay Sajip [Sun, 22 Aug 2010 18:11:02 +0000 (18:11 +0000)]
Issue #9512: Made comment more informative.
Antoine Pitrou [Sun, 22 Aug 2010 10:18:36 +0000 (10:18 +0000)]
Test that calls to path hooks and meta_path entries are serialized by the import lock.
(part of issue #9251)