Commit Graph

53518 Commits

Author SHA1 Message Date
Brett Cannon 6858cabb26 merge 2012-02-23 19:34:55 -05:00
Brett Cannon dfc32706a0 Make the benchmark recording more sensible for importlib.test.benchmark. 2012-02-23 19:34:35 -05:00
Victor Stinner 41a863cb81 Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator
* Decode thousands separator and decimal point using PyUnicode_DecodeLocale()
   (from the locale encoding), instead of decoding them implicitly from latin1
 * Remove _PyUnicode_InsertThousandsGroupingLocale(), it was not used
 * Change _PyUnicode_InsertThousandsGrouping() API to return the maximum
   character if unicode is NULL
 * Replace MIN/MAX macros by Py_MIN/Py_MAX
 * stringlib/undef.h undefines STRINGLIB_IS_UNICODE
 * stringlib/localeutil.h only supports Unicode
2012-02-24 00:37:51 +01:00
Brett Cannon dcb30cf959 merge 2012-02-23 18:30:04 -05:00
Brett Cannon f500778f65 Improper type for __package__ should raise TypeError, not ValueError. 2012-02-23 18:29:12 -05:00
Brett Cannon 068915cc8b Do a type check instead of an interface check. 2012-02-23 18:18:48 -05:00
Victor Stinner 0a786221d9 Issue #13846: Enhance time.monotonic() documentation 2012-02-24 00:10:45 +01:00
Vinay Sajip a751885e0e Merged upstream changes. 2012-02-23 20:55:35 +00:00
Vinay Sajip 349c900ed0 Merged upstream changes. 2012-02-23 20:53:40 +00:00
Vinay Sajip 13d244f72e Merged upstream changes. 2012-02-23 20:51:57 +00:00
Vinay Sajip 323e4fb864 Merged fix added for recent changes in non-threading environments. 2012-02-23 20:51:18 +00:00
Vinay Sajip f05090372a Fix added for recent changes in non-threading environments. 2012-02-23 20:49:08 +00:00
Georg Brandl 335d628a66 merge with 3.2 2012-02-23 21:17:27 +01:00
Georg Brandl bada35bdf5 merge heads 2012-02-23 21:16:49 +01:00
Georg Brandl 29ca21c702 Update pydoc topics. 2012-02-23 21:12:41 +01:00
Georg Brandl eb25fb7af7 Fix markup errors. 2012-02-23 21:12:39 +01:00
Vinay Sajip 57c223791d Merged logging flush/close changes from 3.2. 2012-02-23 20:03:49 +00:00
Vinay Sajip 0abf61db4d logging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf Khan for the suggestion. 2012-02-23 19:45:52 +00:00
Benjamin Peterson c4c90bdf20 merge 3.2 2012-02-23 10:54:36 -05:00
Benjamin Peterson ba528f57ca merge 3.1 2012-02-23 10:54:28 -05:00
Benjamin Peterson 273cd1812a update copyright year 2012-02-23 10:53:44 -05:00
Benjamin Peterson ea1cb7a9c3 merge 3.2 2012-02-23 10:48:22 -05:00
Benjamin Peterson bff13be344 merge 3.1 (with 3.1.5rc1 release tag) 2012-02-23 10:48:03 -05:00
Benjamin Peterson 31833d4728 Added tag v3.1.5rc1 for changeset ee26aca3219c 2012-02-23 10:46:00 -05:00
Benjamin Peterson 36a6558891 version now 3.1.5rc1 2012-02-23 10:45:48 -05:00
Brett Cannon 5b761f1dca Merge 2012-02-23 10:17:56 -05:00
Nadeem Vawda 197e22c1d7 Simplify zlib bigmem tests. 2012-02-23 14:23:17 +02:00
Nadeem Vawda bc8c8175cc Fix previous fix (for test_zlib) to work on 32-bit systems. 2012-02-23 14:16:15 +02:00
Nadeem Vawda b063a48406 Issue #13873: Fix crash in test_zlib on bigmem buildbot. 2012-02-23 13:36:25 +02:00
Brett Cannon 34d8e41a47 Refactor importlib to make it easier to re-implement in C. 2012-02-22 18:33:05 -05:00
Victor Stinner b429d3b09c Fix doc of an internal function: unicode_write_cstr() 2012-02-22 21:22:20 +01:00
Charles-François Natali 6db1c40b37 Issue #14077: importlib: Fix regression introduced by de6703671386. 2012-02-22 21:03:09 +01:00
Antoine Pitrou e887f3135c Null merge 2012-02-22 19:23:13 +01:00
Antoine Pitrou cf1c8339f9 Issue #14084: Fix a file descriptor leak when importing a module with a bad encoding. 2012-02-22 18:08:30 +01:00
Antoine Pitrou 4f22a8d739 Issue #14084: Fix a file descriptor leak when importing a module with a bad encoding. 2012-02-22 18:05:43 +01:00
Antoine Pitrou 7214612443 In find_module(), do not silence fileno() and dup() errors. 2012-02-22 18:03:04 +01:00
Antoine Pitrou ba6bafcfbe Fix compile failure under Windows 2012-02-22 16:41:50 +01:00
Victor Stinner c516610f0b Optimize str%arg for number formats: %i, %d, %u, %x, %p
Write a specialized function to write an ASCII/latin1 C char* string into a
Python Unicode string.
2012-02-22 13:55:02 +01:00
Victor Stinner 99d7ad0bb0 Micro-optimize computation of maxchar in PyUnicode_TransformDecimalToASCII() 2012-02-22 13:37:39 +01:00
Victor Stinner da79e632c4 Micro-optimize unicode_expandtabs(): use FILL() macro to write N spaces 2012-02-22 13:37:04 +01:00
Victor Stinner 15e9ed299c PyUnicode_New() and unicode_putchar() check for MAX_UNICODE maximum (U+10FFFF) 2012-02-22 13:36:20 +01:00
Nadeem Vawda 6721149501 Merge: #14053: Fix "make patchcheck" to work with MQ.
Patch by Francisco Martín Brugué
2012-02-22 11:53:09 +02:00
Nadeem Vawda 9f64f73193 Issue #14053: Fix "make patchcheck" to work with MQ.
Patch by Francisco Martín Brugué
2012-02-22 11:46:41 +02:00
Ross Lagerwall e7ad419058 Fix sporadic test_subprocess regression introduced by 834650d63130. 2012-02-22 06:02:07 +02:00
Antoine Pitrou c09424255a Fix (presumably) test_hash under big-endian systems (PPC). 2012-02-22 03:33:56 +01:00
Antoine Pitrou 679be99a85 Fix (presumably) test_hash under big-endian systems (PPC). 2012-02-22 03:33:56 +01:00
Antoine Pitrou 658d1963e1 Additional debug info in case of failure 2012-02-22 02:46:58 +01:00
Antoine Pitrou 037615e1ef unload() should be sufficient 2012-02-22 02:30:09 +01:00
Antoine Pitrou abe72d7eb3 Try to debug sporadic test failures 2012-02-22 01:11:31 +01:00
Benjamin Peterson b43fde98b4 remove unapplicable statement 2012-02-21 18:03:26 -05:00