Victor Stinner
ea3f305a25
Oops, revert unwanted _testcapi changes of r85174
2010-10-02 11:46:20 +00:00
Victor Stinner
749261e241
Issue #8670 : ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t
2010-10-02 11:25:35 +00:00
Victor Stinner
5593d8aeb4
Issue #8670 : PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replace
...
UTF-16 surrogate pairs by single non-BMP characters for 16 bits Py_UNICODE
and 32 bits wchar_t (eg. Linux in narrow build).
2010-10-02 11:11:27 +00:00
Victor Stinner
1c24bd0252
Issue #8870 : PyUnicode_AsWideCharString() doesn't count the trailing nul character
...
And write unit tests for PyUnicode_AsWideChar() and PyUnicode_AsWideCharString().
2010-10-02 11:03:13 +00:00
Senthil Kumaran
5a2da3b3ad
Use proper variable name 'data' instead of 'str' in the send method.
2010-10-02 10:33:13 +00:00
Senthil Kumaran
7cafd2644a
Fix - issue10010 .. index:: position in the docs.
2010-10-02 03:16:04 +00:00
Benjamin Peterson
aec5fd1397
type.__abstractmethods__ should raise an AttributeError #10006
2010-10-02 00:03:31 +00:00
Amaury Forgeot d'Arc
ea8676bf8b
Lower the tone of the warning about SSL certificate validation.
2010-10-01 23:42:24 +00:00
R. David Murray
70a9993bfd
Fix docstring typo.
2010-10-01 20:38:33 +00:00
R. David Murray
31e984c39c
#10004 : in Q encoded word ignore '=xx' when xx is not valid hex.
...
Bug report and fix by Thomas Guettler.
2010-10-01 15:40:20 +00:00
Brian Curtin
9e88b5aeee
Fix #10003 . Add SIGBREAK to the set of valid signals on Windows.
...
This fixes a regression noticed by bzr, introduced by issue #9324 .
2010-10-01 14:49:24 +00:00
Alexander Belopolsky
38e2996152
Issue #6608 : time.asctime is now checking struct tm fields its input
...
before passing it to the system asctime. Patch by MunSic Jeong.
2010-10-01 14:18:49 +00:00
Hirokazu Yamamoto
0b0ebb4837
Cosmetic fix for PCBuild/readme.txt.
2010-10-01 10:40:49 +00:00
Georg Brandl
d0ffa4cc8c
Fix weird markup that caused latex to fail.
2010-10-01 05:38:10 +00:00
R. David Murray
d2c310f0b7
Fix a couple spelling errors in comments and delete redundant __len__ def.
2010-10-01 02:08:02 +00:00
Senthil Kumaran
0f476d49f8
Issue1491 - BaseHTTPServer incorrectly implements response code 100
2010-09-30 06:09:18 +00:00
Brian Curtin
748cacee46
Remove an unreferenced variable. len is no longer needed.
2010-09-29 19:09:33 +00:00
Mark Dickinson
c60371748b
Issue #9599 : Further accuracy tweaks to loghelper. For an integer n that's small enough to be converted to a float without overflow, log(n) is now computed as log(float(n)), and similarly for log10.
2010-09-29 19:06:36 +00:00
Mark Dickinson
0c0714f954
Add testcases from bug report #9980 .
2010-09-29 18:41:54 +00:00
Victor Stinner
71e91a358b
Fix PyUnicode_AsWideCharString(): set *size if size is not NULL
2010-09-29 17:55:12 +00:00
Victor Stinner
15d597a245
test_imp: getfilesystemencoding() cannot be None anymore
...
And the codec name is normalized.
2010-09-29 16:59:46 +00:00
Victor Stinner
16004ace5b
Use os.fsencode() to support surrogates
2010-09-29 16:59:18 +00:00
Victor Stinner
c39211f51e
Issue #9630 : Redecode filenames when setting the filesystem encoding
...
Redecode the filenames of:
- all modules: __file__ and __path__ attributes
- all code objects: co_filename attribute
- sys.path
- sys.meta_path
- sys.executable
- sys.path_importer_cache (keys)
Keep weak references to all code objects until initfsencoding() is called, to
be able to redecode co_filename attribute of all code objects.
2010-09-29 16:35:47 +00:00
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