Antoine Pitrou
a5785b1524
Fix NNTP when there's a ".netrc" file
2010-09-29 16:19:50 +00:00
Antoine Pitrou
2620d81b7f
Disable the usenetrc option when testing nntplib
2010-09-29 16:08:29 +00:00
Antoine Pitrou
69ab95105f
Issue #9360 : Cleanup and improvements to the nntplib module. The API
...
now conforms to the philosophy of bytes and unicode separation in Python 3.
A test suite has also been added.
2010-09-29 15:03:40 +00:00
Brian Curtin
926f0da582
Fix #9978 . WINFUNCTYPE is from ctypes, not from ctypes.wintypes.
...
r85073 changed the importing in wintypes to not use *, so the previous
usage here became even more incorrect.
2010-09-29 14:51:42 +00:00
Antoine Pitrou
79ecd7621e
Issue #9983 : warn that urllib and httplib don't perform SSL certificate validation.
2010-09-29 11:24:21 +00:00
Antoine Pitrou
c3ed2e7f83
Issue #9962 : GzipFile now has the peek() method.
2010-09-29 10:49:46 +00:00
Victor Stinner
4c2e4fa242
Issue #9979 : Use PyUnicode_AsWideCharString() in _ctypes module
...
* Convert unicode to wide character string before creating the PyCapsule
object
* Catch integer overflow
* Avoid useless memset()
* Prepare the support of surrogates
2010-09-29 10:37:16 +00:00
Victor Stinner
b29047876d
Issue #9979 : Use PyUnicode_AsWideCharString() in time.strftime()
...
Allocate memory with PyMem_Alloc() instead of the PyBytes API. Prepare the
surrogates support.
2010-09-29 10:34:19 +00:00
Victor Stinner
449057f2fa
Issue #9979 : Use PyUnicode_AsWideCharString() for _locale.strcoll()
...
It simplifies the code and prepare the surrogates support.
2010-09-29 10:30:43 +00:00
Victor Stinner
255dfdb5ce
Issue #9979 : Use PyUnicode_AsWideCharString() in import.c
...
Don't truncate path if it is too long anymore, and allocate fewer memory (but
allocate it on the heap, not on the stack).
2010-09-29 10:28:51 +00:00
Victor Stinner
137c34c027
Issue #9979 : Create function PyUnicode_AsWideCharString().
2010-09-29 10:25:54 +00:00
Victor Stinner
41a64a53a3
linecache.updatecache(): don't the lines into the cache on IOError
...
Use the same behaviour than Python 2.7.
2010-09-29 01:30:45 +00:00
Victor Stinner
78f43a73cb
linecache.updatecache() returns an empty list on error
...
lines variable was not set on IOError
2010-09-29 01:24:59 +00:00
R. David Murray
d68d4e8e42
Have test_sqlite print version info when run in verbose mode.
2010-09-29 01:22:20 +00:00
R. David Murray
11cabcf73d
#7110 : have regrtest print test failures and tracebacks to stderr not stdout.
...
Patch by Sandro Tosi.
2010-09-29 01:08:05 +00:00
Antoine Pitrou
c663b58c9a
Give a dedicated page to memoryview objects, so that they can be part
...
of the concrete objects layer, while the buffer protocol is part of
the abstract objects layer.
2010-09-28 23:59:51 +00:00
Antoine Pitrou
f7ba2fa3d6
Buffers are not sequence objects (!). Put them in the abstract objects layers
...
instead.
2010-09-28 23:39:41 +00:00
Antoine Pitrou
99a00a455c
Various improvements to the docs of the buffer API
2010-09-28 23:04:04 +00:00
R. David Murray
b78b4893a9
#9628 : fix runtests.sh -x option so more than one test can be excluded.
2010-09-28 22:25:18 +00:00
Antoine Pitrou
c8f0196454
Fix compilation under Windows
2010-09-28 22:03:27 +00:00
Antoine Pitrou
a0b6873d47
Discourage use of the old buffer API funcs
2010-09-28 21:52:30 +00:00
Antoine Pitrou
3e1fd27b74
Issue #9090 : When a socket with a timeout fails with EWOULDBLOCK or EAGAIN,
...
retry the select() loop instead of bailing out. This is because select()
can incorrectly report a socket as ready for reading (for example, if it
received some data with an invalid checksum).
2010-09-28 21:23:11 +00:00
Hirokazu Yamamoto
cc868d430b
Issue #3612 : Added new types to ctypes.wintypes. (CHAR and pointers)
2010-09-28 21:08:38 +00:00
Hirokazu Yamamoto
7405c200bb
Updated PC/VC6 openssl build script. (for openssl-1.0.0a)
2010-09-28 18:36:04 +00:00
Hirokazu Yamamoto
313dab43fe
Now perl path with spaces can be used.
2010-09-28 18:29:57 +00:00
Hirokazu Yamamoto
57b4163086
Reverted to r70917.
2010-09-28 17:55:53 +00:00
Antoine Pitrou
826903ece3
Issue #9970 : improve C API documentation for memoryview objects
2010-09-28 15:29:16 +00:00
Ronald Oussoren
01c428999a
Fix for issue #9568 .
2010-09-28 14:38:31 +00:00
Ronald Oussoren
9af738022e
Add support for the ZSH shell to the "Update Shell Profile" script
...
on MacOSX.
Patch by Sylvain Mora, issue #9701 .
2010-09-28 13:57:58 +00:00
Hirokazu Yamamoto
a0b551acf8
Changed order to see other test results. (Also temporary commit)
2010-09-28 09:46:48 +00:00
Hirokazu Yamamoto
b0a71a01f9
Run test_ttk_guionly in verbose mode. (This commit is temporary)
2010-09-28 09:11:21 +00:00
Mark Dickinson
fa41e60c9d
Issue #9599 : Tweak loghelper algorithm to return slightly improved results for powers of 2.
2010-09-28 07:22:27 +00:00
Hirokazu Yamamoto
d057cd62f7
Updated VS8.0 bz2.vcproj with PCBuild/vs9to8.py.
2010-09-28 07:03:40 +00:00
Brett Cannon
5305a998d5
Since __import__ is not designed for general use, have its docstring point
...
people towards importlib.import_module().
Closes issue #7397 .
2010-09-27 21:08:38 +00:00
Brian Curtin
1771b54bed
Implement #8521 . Added named argument handling to winreg's CreateKeyEx,
...
DeleteKeyEx, and OpenKeyEx.
Note that CKE and DKE are new functions for 3.2 so I didn't give them a
versionchanged because of the existing versionadded. OpenKeyEx already
existed so it gets a versionchanged tag.
2010-09-27 17:56:36 +00:00
Antoine Pitrou
6d7df63837
Issue #9950 : Fix socket.sendall() crash or misbehaviour when a signal is
...
received. Now sendall() properly calls signal handlers if necessary,
and retries sending if these returned successfully, including on sockets
with a timeout.
2010-09-27 17:52:25 +00:00
Alexander Belopolsky
0ae33611fa
Issue 9941: Minor code cleanup before implementing the context manager feature:
...
- Eliminated code repetition between run and runctx;
- Removed redundant calls to dict.key;
- Removed unused "blabbed" attribute;
- Simplified the loop in write_results_file().
2010-09-27 15:49:20 +00:00
Vinay Sajip
76ca3b430c
logging: Updated library configuration documentation.
2010-09-27 13:53:47 +00:00
Kristján Valur Jónsson
3b69db27d7
issue 9910
...
Add a Py_SetPath api to override magic path computations when starting up python.
2010-09-27 05:32:54 +00:00
Senthil Kumaran
42ef4b1f4c
Fix Issue1595365 - Adding the req.headers after the un-redirect headers have
...
been added. This helps in accidental overwritting of User-Agent header to
default value. To preserve the old behavior, only headers not in unredirected
headers will be updated.
2010-09-27 01:26:03 +00:00
Antoine Pitrou
cb15988114
Issue #8445 : try to fix some buildbot failures on test_ttk_guionly.
...
Patch by Guilherme.
2010-09-26 16:36:33 +00:00
Vinay Sajip
4fbe4b340a
logging: NullHandler optimisation.
2010-09-26 11:04:10 +00:00
Antoine Pitrou
a305ca786c
Fix typo.
2010-09-25 22:12:00 +00:00
Vinay Sajip
9fdd11b3b6
Issue #9947 : logging: Fixed locking bug in stopListening.
2010-09-25 17:48:25 +00:00
Vinay Sajip
32fb6a81f9
Issue #9945 : logging: Fixed locking bugs in addHandler/removeHandler.
2010-09-25 17:42:36 +00:00
Georg Brandl
fda2106ac2
#9562 : slight clarification.
2010-09-25 16:56:36 +00:00
Georg Brandl
a0fc3d37d3
#9944 : fix typo.
2010-09-25 13:30:03 +00:00
Benjamin Peterson
aa7fbd9564
revert r85003, poorly considered; breaks tests
2010-09-25 03:25:42 +00:00
Benjamin Peterson
81437c9025
don't count keyword arguments as positional #9943
2010-09-25 03:14:33 +00:00
Alexander Belopolsky
a847c81914
This should fix buildbot failure introduced by r84994
2010-09-24 22:04:22 +00:00