Commit graph

43201 commits

Author SHA1 Message Date
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
Victor Stinner
ebe53a23c9 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.
2010-08-24 23:05:51 +00:00
Daniel Stutzbach
8515eaefda 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) 2010-08-24 21:57:33 +00:00
Benjamin Peterson
16925e8539 remove parens 2010-08-24 21:30:14 +00:00
Brett Cannon
1d6569cfb9 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.
2010-08-24 21:04:05 +00:00
Benjamin Peterson
f52c2c63cd further clarify 2010-08-24 21:03:37 +00:00
Daniel Stutzbach
31da5b2f69 Issue 8750: Fixed MutableSet's methods to correctly handle reflexive operations, namely x -= x and x ^= x 2010-08-24 20:49:57 +00:00
Benjamin Peterson
d8e5f2df68 tabbing no longer applicable 2010-08-24 18:08:22 +00:00
Brian Curtin
8790a07927 Fix #7579. Add docstrings to msvcrt and adjust some wording for bytes. 2010-08-24 05:20:30 +00:00
Benjamin Peterson
17689991e6 only catch AttributeError in hasattr() #9666 2010-08-24 03:26:23 +00:00
Giampaolo Rodolà
9cf5ef4cc0 fix issue 9129: adds proper error handling on accept() when smtpd accepts new incoming connections. 2010-08-23 22:28:13 +00:00
Giampaolo Rodolà
bbc4782d77 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 2010-08-23 22:10:32 +00:00
Benjamin Peterson
076e031e54 cleanup imports 2010-08-23 21:58:59 +00:00
Giampaolo Rodolà
76fc8c7098 fix issue 658749: correctly interprets asyncore's windows errors on connect() 2010-08-23 21:53:41 +00:00
Benjamin Peterson
0538064554 reorder and save a comparison 2010-08-23 19:35:39 +00:00
Vinay Sajip
de6e9d615d Issue #9501: Fixed logging regressions in cleanup code. 2010-08-23 17:50:30 +00:00
Benjamin Peterson
06b8b10090 news note for last change 2010-08-23 17:47:43 +00:00
Benjamin Peterson
9c2930e4be run total_ordering() tests, and fix the function (default comparisons shouldn't be considered) 2010-08-23 17:40:33 +00:00
Matthias Klose
7311729790 Fix builds with builddir != srcdir, introduced in r83988.
os.path.dirname(__file__) points to the scrdir, not the builddir.
Use os.getcwd() instead.
2010-08-23 16:47:09 +00:00
Martin v. Löwis
67e91ad9cf 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.
2010-08-23 15:27:26 +00:00
Brett Cannon
ee6d64773b 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.
2010-08-22 22:19:11 +00:00
Brett Cannon
186335bd5c Make sure that no __pycache__ directory is needlessly left behind when testing
imports with an empty string in sys.path.
2010-08-22 22:11:06 +00:00
Antoine Pitrou
0723d2c78d Add an import lock test for multithreaded circular imports.
(part of #9657)
2010-08-22 20:43:26 +00:00
Brett Cannon
8d18907a2e While not strictly necessary thanks to the odd ABC inheritance done through
importlib._bootstrap, add the optional methods for importlib.abc.SourceLoader
for completeness.
2010-08-22 20:38:47 +00:00
Brett Cannon
2525dc8fb6 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).
2010-08-22 20:36:25 +00:00
Georg Brandl
6a74da3cdb #9649: fix default value description. 2010-08-22 20:23:38 +00:00
Daniel Stutzbach
51a059bc83 Added myself to Misc/maintainers.rst for topics on which I'd like to be added to the nosy list 2010-08-22 19:41:04 +00:00
Martin v. Löwis
56773cf0d2 Mention that gethostbyaddr now also supports IDNA. 2010-08-22 19:38:04 +00:00
Martin v. Löwis
fc0275a14a Issue #1027206: Support IDNA in gethostbyname, gethostbyname_ex and
getaddrinfo. Patch by David Watson.
2010-08-22 19:33:47 +00:00
Vinay Sajip
d41a37a148 Updated maintainers.rst to reflect correct Roundup name. 2010-08-22 18:41:24 +00:00