Senthil Kumaran
cd57ef1a47
merge from 3.2 - Fix closes issue12524 - update http.client POST example with a working example. - Patch contributed by Bharadwaj
2011-07-20 22:02:27 +08:00
Barry Warsaw
a4c383b8b3
Upstream merge.
2011-07-19 19:28:16 -04:00
Antoine Pitrou
495ee8f563
Issue #12571 : Add a plat-linux3 directory mirroring the plat-linux2 directory,
...
so that "import DLFCN" and other similar imports work on Linux 3.0.
2011-07-20 00:26:23 +02:00
Barry Warsaw
c56432804a
- Issue #10309 : Define _GNU_SOURCE so that mremap() gets the proper
...
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
2011-07-19 17:06:30 -04:00
Raymond Hettinger
39540a0226
Improve docstring for divmod()
2011-07-19 11:59:20 -07:00
Raymond Hettinger
aff394b64f
A number of small fixups for the sorting howto guide.
2011-07-19 01:35:35 -07:00
R David Murray
9522595d70
#7484 : no more <> around addresses in VRFY or EXPN
...
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix. Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
2011-07-18 21:34:04 -04:00
Senthil Kumaran
60bf489e8a
merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob
2011-07-19 08:05:44 +08:00
Antoine Pitrou
711cb58db1
Issue #6476 : Document that os.spawnle and os.spawnve are not thread-safe under Windows.
2011-07-19 01:26:58 +02:00
R David Murray
c8ebbbc09b
Better English.
2011-07-18 12:39:54 -04:00
Georg Brandl
3a04b4b180
Add missing "a".
2011-07-18 10:39:55 +02:00
Alex Gaynor
9737648c74
Backport 2eb8789e30e7.
2011-07-17 16:44:31 -07:00
Senthil Kumaran
1c0ebc0fa5
fix whitespace in rst.
2011-07-18 07:18:40 +08:00
Senthil Kumaran
a2dd57aaf1
merge from 3.2 - Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response.
2011-07-18 07:16:02 +08:00
Senthil Kumaran
612b2b338b
merge from 3.2 - Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi
2011-07-18 06:44:11 +08:00
Senthil Kumaran
4c9721ad40
merge from 3.2 - Issue10403 - datetime module documentation changes based on review.
2011-07-17 19:10:10 +08:00
Senthil Kumaran
a09f13a0bc
merge from 3.2.
2011-07-17 17:31:51 +08:00
Eli Bendersky
877f2e4530
Issue #12574 : correct capitalization of the Queue module. Patch by Rafe Kettler
2011-07-17 05:54:06 +03:00
Antoine Pitrou
304f0f952d
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:22:50 +02:00
Benjamin Peterson
c3349cd22e
port 8d05f697acd4 ( #11627 )
2011-07-15 14:15:40 -05:00
Charles-François Natali
2659140a5d
Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 19:49:02 +02:00
Victor Stinner
b30ac940db
Issue #12250 : test_socketserver uses a timeout of 60 seconds instead of 20
...
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 14:53:24 +02:00
Raymond Hettinger
cec795d639
It is really a suffix :-)
2011-07-14 14:41:43 +08:00
Benjamin Peterson
2e7ea507d6
carefully cleanup pointer cache after creating struct pointers
2011-07-13 23:09:30 -05:00
Ned Deily
0ab67ee79e
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
2011-07-13 15:05:31 -07:00
Victor Stinner
bf547fd3f2
Close #4376 : ctypes now supports nested structures in a endian different than
...
the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:47:31 +02:00
Georg Brandl
fbe84d92ab
Clarify that PyErr_NewException creates an exception *class*, not instance.
2011-07-13 15:59:24 +02:00
Benjamin Peterson
83c14fe1ee
this can be done without a custom dict (also fixes #12544 )
2011-07-12 19:21:42 -05:00
Antoine Pitrou
1616645a00
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 22:04:20 +02:00
Antoine Pitrou
0504532c39
Mention logging.captureWarnings in the warnings module doc.
2011-07-09 21:29:36 +02:00
Antoine Pitrou
73705902c4
Move sys.subversion at the right place in alphabetical order,
...
and add a note concerning its status.
2011-07-09 16:06:19 +02:00
Antoine Pitrou
ea901ad2c6
Issue #12326 : document the recommended idiom for checking sys.platform on Unix systems.
...
Also, point to the various alternatives.
2011-07-09 15:48:29 +02:00
Antoine Pitrou
4a4a0fed07
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:34:05 +02:00
Antoine Pitrou
2960308c0c
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
...
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:40:15 +02:00
Antoine Pitrou
a4d58d26a1
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:14:19 +02:00
Victor Stinner
8703be94b1
Issue #12423 : Fix os.abort() documentation
...
The Python signal handler for SIGABRT is not called on os.abort() (only if the
signal is raised manually or sent by another process). Patch by Kamil Kisiel.
2011-07-08 02:14:55 +02:00
Victor Stinner
ba8b3a2ca7
Close #12501 : Adjust callable() warning: callable() is only not supported in
...
Python 3.1. callable() is again supported in Python 3.2.
2011-07-08 02:07:45 +02:00
Ned Deily
885b164bfe
Issue #8716 : Instead of relying on Aqua Tk exceptions to detect lack of
...
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.
2011-07-05 19:08:38 -07:00
Ned Deily
09f6ab0d0f
Issue #8716 : Back out temporary changeset 18ce15f841cf
2011-07-05 15:09:32 -07:00
Ned Deily
8c653e094b
Issue #8716 : Add temporary code for 2.7 to help diagnose buildbot failure.
2011-07-05 14:16:03 -07:00
Victor Stinner
b78fed9ee6
Issue #12493 : skip test_communicate_eintr() if signal.SIGALRM is missing
2011-07-05 14:50:35 +02:00
Victor Stinner
e790131dc6
Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:08:01 +02:00
Victor Stinner
4c41f84033
test_io: make quiet the DeprecationWarning('classic int division')
2011-07-05 13:29:26 +02:00
Victor Stinner
42dcc679c2
test_array: make quiet the DeprecationWarning
2011-07-05 13:14:17 +02:00
Victor Stinner
59729ff609
Issue #9611 , #9015 : FileIO.read(), FileIO.readinto(), FileIO.write() and
...
os.write() clamp the length to INT_MAX on Windows.
2011-07-05 11:28:19 +02:00
Benjamin Peterson
4833c98f85
start out this branch always with filename NULL
2011-07-04 22:27:16 -05:00
Senthil Kumaran
6f18b98782
Fix closes issue10403 - Let's not use members anymore.
2011-07-04 12:50:02 -07:00
Victor Stinner
49d495fa25
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:44:46 +02:00
Ned Deily
eee1048e7b
Issue #8716 : Fix errors in the non-OS X path of the 27 backport.
2011-07-03 23:16:49 -07:00
Ned Deily
46268c49f6
Issue #8716 : Avoid crashes caused by Aqua Tk on OSX when attempting to run
...
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:52:35 -07:00