Commit Graph

43041 Commits

Author SHA1 Message Date
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
Vinay Sajip 89994b279f Issue #9512: Made comment more informative. 2010-08-22 18:11:02 +00:00
Antoine Pitrou 7224d073d2 Test that calls to path hooks and meta_path entries are serialized by the import lock.
(part of issue #9251)
2010-08-22 10:18:36 +00:00
Martin v. Löwis 7ebe4f9209 Add Daniel Stutzbach. 2010-08-22 08:46:19 +00:00
Raymond Hettinger 819a064556 Issue 8403: Don't mask KeyboardInterrupt during peephole operation. 2010-08-22 08:39:49 +00:00
Raymond Hettinger 9117c75148 Issue #9214: Fix set operations on KeysView and ItemsView. 2010-08-22 07:44:24 +00:00
Georg Brandl a52bae7521 Remove usage of rexec in tkinter demo. 2010-08-21 23:20:01 +00:00
Benjamin Peterson 3cabbeb077 fix old markup 2010-08-21 21:23:28 +00:00
Giampaolo Rodolà 6545ed6e4f remove obsolete 'import SOCKS' statement 2010-08-21 20:34:37 +00:00
Benjamin Peterson 2d55e2aab3 provide sample implementations for attrgetter and methodcaller 2010-08-21 20:08:36 +00:00
Benjamin Peterson c16f8b33e0 fix more indentation 2010-08-21 20:03:15 +00:00