Christian Heimes
a5bcd7c0ee
Issue #19183 : too many tests depend on the sort order of repr().
...
The bitshift and xor op for 32bit builds has changed the order of hash values.
2013-11-20 12:49:05 +01:00
Victor Stinner
5132493155
Issue #19183 : Fix repr() tests of test_gdb, hash() is now platform dependent
2013-11-20 12:27:48 +01:00
Christian Heimes
156983ae3b
Issue #19183 : test_gdb's test_dict was failing on some machines as the order or dict keys has changed again.
2013-11-20 12:00:35 +01:00
Christian Heimes
985ecdcfc2
ssue #19183 : Implement PEP 456 'secure and interchangeable hash algorithm'.
...
Python now uses SipHash24 on all major platforms.
2013-11-20 11:46:18 +01:00
Christian Heimes
fe32aec25a
configure: use AC_MSG_NOTICE() instead of AC_MSG_WARN() to inform user about C++ compiler.
...
Now './configure --silent && make -s' doesn't print any message to stdout or stderr.
2013-11-20 01:18:26 +01:00
Christian Heimes
0bedc973ba
configure: echo message to AS_MESSAGE_FD. --silent redirects fd to /dev/null.
2013-11-20 01:11:33 +01:00
Christian Heimes
75ed890de5
configure: echo message to AS_MESSAGE_FD. --silent redirects fd to /dev/null.
2013-11-20 01:11:18 +01:00
Christian Heimes
888dcc32cd
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
2013-11-20 00:50:38 +01:00
Christian Heimes
2658dd7cab
Add workaround for VS 2010 nmake clean issue. VS 2010 doesn't set up PATH for nmake.exe correctly.
2013-11-20 00:41:29 +01:00
Victor Stinner
6715828d89
_msi.c: Fix compiler warnings on Windows 64-bit
...
"hf" type is INT_PTR, it is used to store an int in _msi.c.
2013-11-20 00:14:49 +01:00
Victor Stinner
f8e3221fa5
Issue #9566 , #19617 : Fix more compiler warnings in compile.c on Windows 64-bit
2013-11-19 23:56:34 +01:00
Victor Stinner
5323fb0990
Issue #19637 : fix test_undecodable_env() of test_subprocess on AIX
...
On AIX, the C locale encoding uses the ISO-8859-1 encoding, not ASCII.
2013-11-19 23:46:06 +01:00
Victor Stinner
85fe8a645e
Issue #9566 , #19617 : New try to fix compilation on Windows
...
Some compilers (ex: Visual Studio) decode -2147483648 as a unsigned integer
instead of an signed integer.
2013-11-19 23:03:25 +01:00
Victor Stinner
b679a2eb78
Issue #9566 , #19617 : Fix compilation on Windows
...
INT32_MIN and INT32_MAX constants are unknown on Windows.
2013-11-19 22:28:01 +01:00
Victor Stinner
ad9a066050
Issue #9566 : compile.c uses Py_ssize_t instead of int to store sizes to fix
...
compiler warnings on Windows 64-bit. Use Py_SAFE_DOWNCAST() where the final
downcast is needed.
The bytecode doesn't support integer parameters larger than 32-bit yet.
2013-11-19 22:23:20 +01:00
Guido van Rossum
1540b16ff4
asyncio: Add streams.start_server(), by Gustavo Carneiro.
2013-11-19 11:43:38 -08:00
Ezio Melotti
4a9ee26750
#2927 : Added the unescape() function to the html module.
2013-11-19 20:28:45 +02:00
R David Murray
5160da1afc
Merge: #19449 : Handle non-string keys when generating 'fieldnames' error.
2013-11-19 13:17:26 -05:00
R David Murray
fb099c9ef1
#19449 : Handle non-string keys when generating 'fieldnames' error.
...
csv was handling non-string keys fine except for the error message
generated when a non-string key was not in 'fieldnames'.
Fix by Tomas Grahn, full patch-with-test by Vajrasky Kok (tweaked slightly).
2013-11-19 13:16:20 -05:00
Andrew Kuchling
0e60f85ce4
Merge from 3.3
2013-11-19 11:06:44 -05:00
Andrew Kuchling
30c5ad2aa2
#1098749 : re-word gettext docs to not encourage using pygettext so much.
...
Also, add a link to the Babel package.
2013-11-19 11:05:20 -05:00
Martin v. Löwis
dd7436c613
Issue #19550 : Implement Windows installer changes of PEP 453 (ensurepip).
2013-11-19 17:02:36 +01:00
Serhiy Storchaka
dc2fd5101a
Remove dead code committed in issue #12892 .
2013-11-19 15:56:05 +02:00
Nick Coghlan
f1de55fb33
Also chain codec exceptions that allow weakrefs
...
The zlib and hex codecs throw custom exception types with
weakref support if the input type is valid, but the data
fails validation. Make sure the exception chaining in the
codec infrastructure can wrap those as well.
2013-11-19 22:33:10 +10:00
Victor Stinner
a726192181
oops, remove _PyObject_ReprWriter() definition (unwanted change)
2013-11-19 13:18:45 +01:00
Victor Stinner
f91929b1d8
Issue #19646 : repr(dict) now uses _PyUnicodeWriter API for better performances
2013-11-19 13:07:38 +01:00
Victor Stinner
88a9cd9b57
Issue #19513 : repr(tuple) now uses _PyUnicodeWriter for better performances
2013-11-19 12:59:46 +01:00
Victor Stinner
4a58707a34
Add _PyUnicodeWriter_WriteASCIIString() function
2013-11-19 12:54:53 +01:00
Victor Stinner
4d3f109ad3
Issue #19513 : Disable overallocation of the PyUnicodeWriter before the last write
2013-11-19 12:09:00 +01:00
Serhiy Storchaka
58cf607d13
Issue #12892 : The utf-16* and utf-32* codecs now reject (lone) surrogates.
...
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.
Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
2013-11-19 11:32:41 +02:00
doko@ubuntu.com
a938bcfe95
- Remove execute permissions from test_dbm_gnu.py and test_dbm_ndbm.py
2013-11-19 09:12:50 +01:00
doko@ubuntu.com
7ad11bf815
- Remove execute permissions from test_dbm_gnu.py and test_dbm_ndbm.py
2013-11-19 09:12:28 +01:00
doko@ubuntu.com
61b3dbdd3e
- Update config.{guess,sub} for new ports.
2013-11-19 08:55:06 +01:00
doko@ubuntu.com
ecf4193573
- Update config.{guess,sub} for new ports.
2013-11-19 08:54:38 +01:00
Zachary Ware
d2a5cfaf48
Issue #19596 : Null merge with 3.3
...
This will be merged into default when PEP451 is merged in. See
changeset 5d38989191bb in features/pep-451
2013-11-18 21:47:35 -06:00
Zachary Ware
4accf45f0e
Issue #19596 : Set untestable tests in test_importlib to None
...
to avoid reporting success on empty tests.
2013-11-18 21:44:38 -06:00
Victor Stinner
b8fb197aa0
Issue #19513 : Simplify list_repr()
2013-11-18 22:15:44 +01:00
Gregory P. Smith
99b7b1c514
null merge (already in 3.4)
2013-11-18 21:10:29 +00:00
Gregory P. Smith
30d8e167ff
Cleanup this test's modification of os.environ in teardown (this already
...
exists in 3.4 but apparently wasn't done for 3.3).
2013-11-18 21:10:04 +00:00
Victor Stinner
5c733473f2
Issue #19513 : repr(list) now uses the PyUnicodeWriter API, it is faster than
...
the PyAccu API
2013-11-18 21:11:57 +01:00
Victor Stinner
6989ba0174
Issue #19581 : Change the overallocation factor of _PyUnicodeWriter on Windows
...
On Windows, a factor of 50% gives best performances.
2013-11-18 21:08:39 +01:00
Charles-François Natali
f47981f51e
selectors: use a single return.
2013-11-18 18:59:43 +01:00
Victor Stinner
e106e5ce4b
Issue #19437 : Fix error handling of PyCArrayType_new(), don't decreases the
...
reference counter of stgdict after result stole a reference to it
2013-11-18 18:37:33 +01:00
Victor Stinner
2399ad51d4
Issue #19437 : Fix error handling of CDataType_from_buffer()
...
KeepRef() decreases the reference counter of its 'keep' parameter on error
2013-11-18 18:35:55 +01:00
Larry Hastings
ed4a1c5703
Argument Clinic: rename "self" to "module" for module-level functions.
2013-11-18 09:32:13 -08:00
Serhiy Storchaka
fd32fffa5a
Issue #8402 : Added the escape() function to the glob module.
2013-11-18 13:06:43 +02:00
Victor Stinner
e3010fd740
Relax timing on test_asyncio for busy (slow) Windows buildbots
...
http://buildbot.python.org/all/builders/AMD64%20Windows%20Server%202008%20%5BSB%5D%203.x/builds/1649/steps/test/logs/stdio
======================================================================
FAIL: test_wait_for_handle (test.test_asyncio.test_windows_events.ProactorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\home\cpython\buildslave\x64\3.x.snakebite-win2k8r2sp1-amd64\build\lib\test\test_asyncio\test_windows_events.py", line 112, in test_wait_for_handle
self.assertTrue(0.18 < elapsed < 0.22, elapsed)
AssertionError: False is not true : 0.25
2013-11-18 11:05:22 +01:00
Christian Heimes
85ba92a0b8
GetVolumePathNameW: downcast bufsize to DWORD
2013-11-18 10:30:42 +01:00
Christian Heimes
b08ff7dcb4
Safely downcast SOCKET_T to int in _ssl module
2013-11-18 10:04:07 +01:00
Christian Heimes
cc6cdce750
Remove unused code path from PBKDF2 that is causing a warning on Win64
2013-11-18 09:59:44 +01:00