]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
14 years agoremove "fast-path" for (i)adding strings
Benjamin Peterson [Sat, 1 Oct 2011 01:31:21 +0000 (21:31 -0400)] 
remove "fast-path" for (i)adding strings

These were just an artifact of the old unicode concatenation hack and likely
just penalized other kinds of adding. Also, this fixes __(i)add__ on string
subclasses.

14 years agoOoops, avoid a division by zero in unicode_repeat()
Victor Stinner [Sat, 1 Oct 2011 01:09:58 +0000 (03:09 +0200)] 
Ooops, avoid a division by zero in unicode_repeat()

14 years agoPyUnicode_FromObject() ensures that its output is a ready string
Victor Stinner [Sat, 1 Oct 2011 01:09:33 +0000 (03:09 +0200)] 
PyUnicode_FromObject() ensures that its output is a ready string

14 years agoI want a super fast 'a' * n!
Victor Stinner [Sat, 1 Oct 2011 00:47:29 +0000 (02:47 +0200)] 
I want a super fast 'a' * n!

 * Optimize unicode_repeat() for a special case with memset()
 * Simplify integer overflow checking; remove the second check because
   PyUnicode_New() already does it and uses a smaller limit (Py_ssize_t vs
   size_t)

14 years agoPyUnicode_CHARACTER_SIZE(): add a reference to PyUnicode_KIND_SIZE()
Victor Stinner [Sat, 1 Oct 2011 00:39:37 +0000 (02:39 +0200)] 
PyUnicode_CHARACTER_SIZE(): add a reference to PyUnicode_KIND_SIZE()

14 years agoFix usage of PyUnicode_READY in unicodeobject.c
Victor Stinner [Sat, 1 Oct 2011 00:14:59 +0000 (02:14 +0200)] 
Fix usage of PyUnicode_READY in unicodeobject.c

14 years agoRemove private substring() function, reuse public PyUnicode_Substring()
Victor Stinner [Fri, 30 Sep 2011 23:53:49 +0000 (01:53 +0200)] 
Remove private substring() function, reuse public PyUnicode_Substring()

 * PyUnicode_Substring() now fails if start or end is invalid
 * PyUnicode_Substring() reuses PyUnicode_Copy() for non-exact strings

14 years agoOptimize PyUnicode_Copy(): don't recompute maximum character
Victor Stinner [Fri, 30 Sep 2011 23:34:32 +0000 (01:34 +0200)] 
Optimize PyUnicode_Copy(): don't recompute maximum character

14 years agoRemove commented code: str+=str is no more super-optimized
Victor Stinner [Fri, 30 Sep 2011 23:26:08 +0000 (01:26 +0200)] 
Remove commented code: str+=str is no more super-optimized

14 years agoPyUnicode_FromObject() reuses PyUnicode_Copy()
Victor Stinner [Fri, 30 Sep 2011 23:16:59 +0000 (01:16 +0200)] 
PyUnicode_FromObject() reuses PyUnicode_Copy()

 * PyUnicode_Copy() is faster than substring()
 * Fix also a compiler warning

14 years agopyexat uses the new Unicode API
Victor Stinner [Fri, 30 Sep 2011 23:05:40 +0000 (01:05 +0200)] 
pyexat uses the new Unicode API

14 years agoFix ResourceWarnings in makeunicodedata.py.
Ezio Melotti [Fri, 30 Sep 2011 05:46:25 +0000 (08:46 +0300)] 
Fix ResourceWarnings in makeunicodedata.py.

14 years agoAdd PyUnicode_Copy() function, include it to the public API
Victor Stinner [Fri, 30 Sep 2011 00:26:44 +0000 (02:26 +0200)] 
Add PyUnicode_Copy() function, include it to the public API

14 years agoPyUnicode_CopyCharacters() uses exceptions instead of assertions
Victor Stinner [Fri, 30 Sep 2011 00:26:10 +0000 (02:26 +0200)] 
PyUnicode_CopyCharacters() uses exceptions instead of assertions

Call PyErr_BadInternalCall() if inputs are not unicode strings.

14 years agoFix a compiler warning
Victor Stinner [Thu, 29 Sep 2011 23:55:49 +0000 (01:55 +0200)] 
Fix a compiler warning

14 years agoFix array.array('u') constructor
Victor Stinner [Thu, 29 Sep 2011 23:54:04 +0000 (01:54 +0200)] 
Fix array.array('u') constructor

14 years agoposix module catches PyUnicode_AsUnicode() failure
Victor Stinner [Thu, 29 Sep 2011 23:44:27 +0000 (01:44 +0200)] 
posix module catches PyUnicode_AsUnicode() failure

 * Replace PyUnicode_AS_UNICODE by PyUnicode_AsUnicode, PyUnicode_AS_UNICODE is
   no more a real macro
 * Replace Py_UNICODE by wchar_t in code specific to Windows

14 years agoarray module uses the new Unicode API
Victor Stinner [Thu, 29 Sep 2011 22:51:10 +0000 (00:51 +0200)] 
array module uses the new Unicode API

 * Use Py_UCS4* buffer instead of Py_UNICODE*
 * Use "I" or "L" format, instead of "u" format

14 years agoarray module stores the typecode in a char, instead of Py_UNICODE
Victor Stinner [Thu, 29 Sep 2011 22:03:59 +0000 (00:03 +0200)] 
array module stores the typecode in a char, instead of Py_UNICODE

14 years agoraw_unicode_escape() uses the new Unicode API
Victor Stinner [Thu, 29 Sep 2011 21:50:23 +0000 (23:50 +0200)] 
raw_unicode_escape() uses the new Unicode API

14 years agoStrip trailing spaces of _pickle.c
Victor Stinner [Thu, 29 Sep 2011 21:40:53 +0000 (23:40 +0200)] 
Strip trailing spaces of _pickle.c

14 years agoPyLocale_strxfrm() uses the new Unicode API
Victor Stinner [Thu, 29 Sep 2011 21:32:06 +0000 (23:32 +0200)] 
PyLocale_strxfrm() uses the new Unicode API

14 years agofileio_init() checks for failure on conversion to Py_UNICODE*
Victor Stinner [Thu, 29 Sep 2011 21:19:04 +0000 (23:19 +0200)] 
fileio_init() checks for failure on conversion to Py_UNICODE*

14 years agoFix test_codeccallbacks for Windows: check size of wchar_t, not sys.maxunicode
Victor Stinner [Thu, 29 Sep 2011 18:01:55 +0000 (20:01 +0200)] 
Fix test_codeccallbacks for Windows: check size of wchar_t, not sys.maxunicode

14 years agoFix test_codecs for Windows: check size of wchar_t, not sys.maxunicode
Victor Stinner [Thu, 29 Sep 2011 17:53:55 +0000 (19:53 +0200)] 
Fix test_codecs for Windows: check size of wchar_t, not sys.maxunicode

14 years agoMerge.
Charles-François Natali [Thu, 29 Sep 2011 17:51:46 +0000 (19:51 +0200)] 
Merge.

14 years agoIssue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
Charles-François Natali [Thu, 29 Sep 2011 17:49:37 +0000 (19:49 +0200)] 
Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
Jarosch.

14 years agoIssue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
Charles-François Natali [Thu, 29 Sep 2011 17:46:37 +0000 (19:46 +0200)] 
Issue #13058: ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
Jarosch.

14 years ago_PyUnicode_Ready() cannot be used on ready strings anymore
Victor Stinner [Thu, 29 Sep 2011 17:43:17 +0000 (19:43 +0200)] 
_PyUnicode_Ready() cannot be used on ready strings anymore

 * Change its prototype: PyObject* instead of PyUnicodeoObject*.
 * Remove an old assertion, the result of PyUnicode_READY (_PyUnicode_Ready)
   must be checked instead

14 years agoMove _PyUnicode_UTF8() and _PyUnicode_UTF8_LENGTH() outside unicodeobject.h
Victor Stinner [Thu, 29 Sep 2011 17:31:34 +0000 (19:31 +0200)] 
Move _PyUnicode_UTF8() and _PyUnicode_UTF8_LENGTH() outside unicodeobject.h

Move these macros to unicodeobject.c

14 years agoAdd a note in PyUnicode_CopyCharacters() doc: it doesn't write null character
Victor Stinner [Thu, 29 Sep 2011 12:14:38 +0000 (14:14 +0200)] 
Add a note in PyUnicode_CopyCharacters() doc: it doesn't write null character

Cleanup also the code (avoid the goto).

14 years agoRe-enable test.
Martin v. Löwis [Thu, 29 Sep 2011 11:49:10 +0000 (13:49 +0200)] 
Re-enable test.

14 years agoPort normalization to new API.
Martin v. Löwis [Thu, 29 Sep 2011 11:39:38 +0000 (13:39 +0200)] 
Port normalization to new API.

14 years agoRename Py_BUILD_ASSERT to Py_BUILD_ASSERT_EXPR
Victor Stinner [Thu, 29 Sep 2011 10:43:18 +0000 (12:43 +0200)] 
Rename Py_BUILD_ASSERT to Py_BUILD_ASSERT_EXPR

To make it clearer that Py_BUILD_ASSERT_EXPR(cond) cannot be used as
assert(cond).

14 years agopymacro.h: Inline _Py_ARRAY_LENGTH_CHECK() and add http://ccodearchive.net/
Victor Stinner [Thu, 29 Sep 2011 10:12:39 +0000 (12:12 +0200)] 
pymacro.h: Inline _Py_ARRAY_LENGTH_CHECK() and add http://ccodearchive.net/

14 years agoMerge heads.
Ezio Melotti [Thu, 29 Sep 2011 05:36:23 +0000 (08:36 +0300)] 
Merge heads.

14 years agoUpdate and reorganize the whatsnew entry for PEP 393.
Ezio Melotti [Thu, 29 Sep 2011 05:34:36 +0000 (08:34 +0300)] 
Update and reorganize the whatsnew entry for PEP 393.

14 years agoFix hex_digit_to_int() prototype: expect Py_UCS4, not Py_UNICODE
Victor Stinner [Thu, 29 Sep 2011 02:02:13 +0000 (04:02 +0200)] 
Fix hex_digit_to_int() prototype: expect Py_UCS4, not Py_UNICODE

14 years agomodsupport.c reuses Py_UNICODE_strlen()
Victor Stinner [Thu, 29 Sep 2011 02:01:43 +0000 (04:01 +0200)] 
modsupport.c reuses Py_UNICODE_strlen()

14 years agoRemove now useless redefinition of chr/ord for narrow builds in test_multibytecodec_s...
Ezio Melotti [Thu, 29 Sep 2011 01:36:38 +0000 (04:36 +0300)] 
Remove now useless redefinition of chr/ord for narrow builds in test_multibytecodec_support.py.

14 years ago_io.textio: fix character type, use Py_UCS4 instead of Py_UNICODE
Victor Stinner [Thu, 29 Sep 2011 01:28:17 +0000 (03:28 +0200)] 
_io.textio: fix character type, use Py_UCS4 instead of Py_UNICODE

14 years ago_sre: don't use Py_UNICODE anymore
Victor Stinner [Thu, 29 Sep 2011 01:27:47 +0000 (03:27 +0200)] 
_sre: don't use Py_UNICODE anymore

 * Downcasting from Py_UCS4 to Py_UNICODE is wrong is Py_UNICODE is 16-bit
   wchar_t
 * Remove old special case in getstring(), unicode is now handled separetely

14 years agoComplete What's New in 3.3 about PEP 393
Victor Stinner [Thu, 29 Sep 2011 00:56:16 +0000 (02:56 +0200)] 
Complete What's New in 3.3 about PEP 393

14 years agoMove UCS4-specific tests with the "normal" tests.
Ezio Melotti [Thu, 29 Sep 2011 00:14:56 +0000 (03:14 +0300)] 
Move UCS4-specific tests with the "normal" tests.

14 years agoEnhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array
Victor Stinner [Wed, 28 Sep 2011 23:12:24 +0000 (01:12 +0200)] 
Enhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array

Move other various macros to pymcacro.h

Thanks Rusty Russell for having written these amazing C macros!

14 years agoMove code related to compile from Python.h to compile.h
Victor Stinner [Wed, 28 Sep 2011 23:04:08 +0000 (01:04 +0200)] 
Move code related to compile from Python.h to compile.h

14 years agoUse the new Py_ARRAY_LENGTH macro
Victor Stinner [Wed, 28 Sep 2011 22:42:28 +0000 (00:42 +0200)] 
Use the new Py_ARRAY_LENGTH macro

14 years agoFix 'c' format of PyUnicode_Format()
Victor Stinner [Wed, 28 Sep 2011 22:39:24 +0000 (00:39 +0200)] 
Fix 'c' format of PyUnicode_Format()

formatbuf is now an array of Py_UCS4, not of Py_UNICODE

14 years agoOops, fix my previous commit: unicode => to
Victor Stinner [Wed, 28 Sep 2011 22:16:58 +0000 (00:16 +0200)] 
Oops, fix my previous commit: unicode => to

14 years agoPyUnicode_CopyCharacters() marks the string as dirty (reset the hash)
Victor Stinner [Wed, 28 Sep 2011 21:59:20 +0000 (23:59 +0200)] 
PyUnicode_CopyCharacters() marks the string as dirty (reset the hash)

14 years agoPyUnicode_CopyCharacters() fails if 'to' has more than 1 reference
Victor Stinner [Wed, 28 Sep 2011 21:54:59 +0000 (23:54 +0200)] 
PyUnicode_CopyCharacters() fails if 'to' has more than 1 reference

14 years agoFix whitespace.
Ezio Melotti [Wed, 28 Sep 2011 22:00:19 +0000 (01:00 +0300)] 
Fix whitespace.

14 years agoClean up a few tabs that went in with PEP393.
Ezio Melotti [Wed, 28 Sep 2011 21:58:57 +0000 (00:58 +0300)] 
Clean up a few tabs that went in with PEP393.

14 years ago#13054: sys.maxunicode is now always 0x10FFFF.
Ezio Melotti [Wed, 28 Sep 2011 21:18:19 +0000 (00:18 +0300)] 
#13054: sys.maxunicode is now always 0x10FFFF.

14 years agoCheck size of wchar_t using the preprocessor
Victor Stinner [Wed, 28 Sep 2011 20:34:18 +0000 (22:34 +0200)] 
Check size of wchar_t using the preprocessor

14 years agoPyUnicode_CopyCharacters() initializes overflow
Victor Stinner [Wed, 28 Sep 2011 20:28:04 +0000 (22:28 +0200)] 
PyUnicode_CopyCharacters() initializes overflow

14 years agoMark PyUnicode_FromUCS[124] as private
Victor Stinner [Wed, 28 Sep 2011 20:20:48 +0000 (22:20 +0200)] 
Mark PyUnicode_FromUCS[124] as private

14 years agoOops, fix Py_MIN/Py_MAX case
Victor Stinner [Wed, 28 Sep 2011 20:17:19 +0000 (22:17 +0200)] 
Oops, fix Py_MIN/Py_MAX case

14 years agoMark _PyUnicode_FindMaxCharAndNumSurrogatePairs() as private
Victor Stinner [Wed, 28 Sep 2011 20:15:37 +0000 (22:15 +0200)] 
Mark _PyUnicode_FindMaxCharAndNumSurrogatePairs() as private

14 years agofill_number() and format_string_internal() check for PyUnicode_CopyCharacters() failure
Victor Stinner [Wed, 28 Sep 2011 19:53:49 +0000 (21:53 +0200)] 
fill_number() and format_string_internal() check for PyUnicode_CopyCharacters() failure

14 years agofill_number() ensures that the 'digits' string is ready
Victor Stinner [Wed, 28 Sep 2011 19:50:42 +0000 (21:50 +0200)] 
fill_number() ensures that the 'digits' string is ready

14 years agofill_char() can now propagate an error
Victor Stinner [Wed, 28 Sep 2011 19:50:16 +0000 (21:50 +0200)] 
fill_char() can now propagate an error

14 years agoStrip trailing spaces in unicodeobject.[ch]
Victor Stinner [Wed, 28 Sep 2011 19:41:31 +0000 (21:41 +0200)] 
Strip trailing spaces in unicodeobject.[ch]

14 years agoCheck for PyUnicode_CopyCharacters() failure
Victor Stinner [Wed, 28 Sep 2011 19:39:17 +0000 (21:39 +0200)] 
Check for PyUnicode_CopyCharacters() failure

14 years agoPyUnicode_CopyCharacters() checks for buffer and character overflow
Victor Stinner [Wed, 28 Sep 2011 19:37:03 +0000 (21:37 +0200)] 
PyUnicode_CopyCharacters() checks for buffer and character overflow

It now returns the number of written characters on success.

14 years agoMark PyUnicode_CONVERT_BYTES as private
Victor Stinner [Wed, 28 Sep 2011 19:39:49 +0000 (21:39 +0200)] 
Mark PyUnicode_CONVERT_BYTES as private

14 years agoAdd versionadded directive to new API function.
Georg Brandl [Wed, 28 Sep 2011 19:51:06 +0000 (21:51 +0200)] 
Add versionadded directive to new API function.

14 years agoRename new macros to conform to naming rules (function macros have "Py" prefix, not...
Georg Brandl [Wed, 28 Sep 2011 19:49:49 +0000 (21:49 +0200)] 
Rename new macros to conform to naming rules (function macros have "Py" prefix, not "PY").

14 years agoSet Py_UNICODE_REPLACEMENT_CHARACTER type to Py_UCS4, instead of Py_UNICODE
Victor Stinner [Wed, 28 Sep 2011 18:29:27 +0000 (20:29 +0200)] 
Set Py_UNICODE_REPLACEMENT_CHARACTER type to Py_UCS4, instead of Py_UNICODE

14 years agomerge heads
Benjamin Peterson [Wed, 28 Sep 2011 14:48:40 +0000 (10:48 -0400)] 
merge heads

14 years agothis isn't fixed on windows yet...
Benjamin Peterson [Wed, 28 Sep 2011 14:48:32 +0000 (10:48 -0400)] 
this isn't fixed on windows yet...

14 years ago#13012: use splitlines(keepends=True/False) instead of splitlines(0/1).
Ezio Melotti [Wed, 28 Sep 2011 14:37:55 +0000 (17:37 +0300)] 
#13012: use splitlines(keepends=True/False) instead of splitlines(0/1).

14 years agothis test works as expected now
Benjamin Peterson [Wed, 28 Sep 2011 12:20:00 +0000 (08:20 -0400)] 
this test works as expected now

14 years agorevert unintended change
Benjamin Peterson [Wed, 28 Sep 2011 12:19:25 +0000 (08:19 -0400)] 
revert unintended change

14 years agodon't check that the first character is XID_Continue
Benjamin Peterson [Wed, 28 Sep 2011 12:09:05 +0000 (08:09 -0400)] 
don't check that the first character is XID_Continue

Current, XID_Continue is a superset of XID_Start, but that may sometime change.

14 years agotest_ctypes: Windows is no more a special case
Victor Stinner [Wed, 28 Sep 2011 11:36:20 +0000 (13:36 +0200)] 
test_ctypes: Windows is no more a special case

14 years agoFix struct sizes. Drop -1, since the resulting string was actually the largest one
Martin v. Löwis [Wed, 28 Sep 2011 08:03:28 +0000 (10:03 +0200)] 
Fix struct sizes. Drop -1, since the resulting string was actually the largest one
that could be allocated.

14 years agoUse compile() instead of eval().
Martin v. Löwis [Wed, 28 Sep 2011 07:22:13 +0000 (09:22 +0200)] 
Use compile() instead of eval().

14 years agoUse eval instead of codecs.lookup to trigger UTF-8 generation.
Martin v. Löwis [Wed, 28 Sep 2011 07:15:11 +0000 (09:15 +0200)] 
Use eval instead of codecs.lookup to trigger UTF-8 generation.

14 years agoACKS for PEP 393.
Martin v. Löwis [Wed, 28 Sep 2011 06:54:17 +0000 (08:54 +0200)] 
ACKS for PEP 393.

14 years agoUpdate for PEP 393.
Martin v. Löwis [Wed, 28 Sep 2011 06:35:25 +0000 (08:35 +0200)] 
Update for PEP 393.

14 years agoImplement PEP 393.
Martin v. Löwis [Wed, 28 Sep 2011 05:41:54 +0000 (07:41 +0200)] 
Implement PEP 393.

14 years agoIssue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.
Meador Inge [Wed, 28 Sep 2011 01:52:04 +0000 (20:52 -0500)] 
Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.

Thanks to Suman Saha for finding the bug and providing a patch.

14 years agoIssue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.
Meador Inge [Wed, 28 Sep 2011 01:45:30 +0000 (20:45 -0500)] 
Issue #13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype.

Thanks to Suman Saha for finding the bug and providing a patch.

14 years agoFix markup.
Georg Brandl [Tue, 27 Sep 2011 05:30:00 +0000 (07:30 +0200)] 
Fix markup.

14 years agomerged
Martin v. Löwis [Sun, 25 Sep 2011 15:36:31 +0000 (17:36 +0200)] 
merged

14 years agoDepend setobject.o and dictobject.o on stringlib/eq.h.
Martin v. Löwis [Sun, 25 Sep 2011 15:36:11 +0000 (17:36 +0200)] 
Depend setobject.o and dictobject.o on stringlib/eq.h.

14 years agoIssue #1621: Fix undefined behaviour from signed overflow in datetime module hashes...
Mark Dickinson [Sun, 25 Sep 2011 14:34:32 +0000 (15:34 +0100)] 
Issue #1621: Fix undefined behaviour from signed overflow in datetime module hashes, array and list iterations, and get_integer (stringlib/string_format.h)

14 years agoReturn +-Py_HUGE_VAL for tgamma(+-0) instead of risking FP exceptions by computing...
Mark Dickinson [Sun, 25 Sep 2011 14:26:43 +0000 (15:26 +0100)] 
Return +-Py_HUGE_VAL for tgamma(+-0) instead of risking FP exceptions by computing 1.0 / 0.0.

14 years agoIssue #1621: Fix undefined behaviour from signed overflow in get_integer (stringlib...
Mark Dickinson [Sat, 24 Sep 2011 18:11:53 +0000 (19:11 +0100)] 
Issue #1621: Fix undefined behaviour from signed overflow in get_integer (stringlib/formatter.h)

14 years agoIssue #12981: rewrite multiprocessing_{sendfd,recvfd} in Python.
Charles-François Natali [Sat, 24 Sep 2011 18:04:29 +0000 (20:04 +0200)] 
Issue #12981: rewrite multiprocessing_{sendfd,recvfd} in Python.

14 years agoIssue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, tuple.__hash__...
Mark Dickinson [Sat, 24 Sep 2011 17:18:40 +0000 (18:18 +0100)] 
Issue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, tuple.__hash__, frozenset.__hash__ and set indexing operations.

14 years agoFix typo in comment: _PyHash_Double -> _Py_HashDouble.
Mark Dickinson [Sat, 24 Sep 2011 15:24:56 +0000 (16:24 +0100)] 
Fix typo in comment: _PyHash_Double -> _Py_HashDouble.

14 years agoIssue #13012: Allow 'keepends' to be passed as a keyword argument in str.splitlines...
Mark Dickinson [Sat, 24 Sep 2011 08:14:39 +0000 (09:14 +0100)] 
Issue #13012: Allow 'keepends' to be passed as a keyword argument in str.splitlines, bytes.splitlines and bytearray.splitlines.

14 years agoMerge #12973 itertools fix.
Mark Dickinson [Sat, 24 Sep 2011 07:57:00 +0000 (08:57 +0100)] 
Merge #12973 itertools fix.

14 years agoIssue #12973: Fix itertools bug caused by signed integer overflow. Thanks Stefan...
Mark Dickinson [Sat, 24 Sep 2011 07:56:09 +0000 (08:56 +0100)] 
Issue #12973: Fix itertools bug caused by signed integer overflow.  Thanks Stefan Krah.

14 years agomerge 3.2
Benjamin Peterson [Fri, 23 Sep 2011 17:53:06 +0000 (13:53 -0400)] 
merge 3.2

14 years agofix compiler compliant about \0 not being an opcode
Benjamin Peterson [Fri, 23 Sep 2011 17:41:41 +0000 (13:41 -0400)] 
fix compiler compliant about \0 not being an opcode

14 years agodisable unused result warnings when possible
Benjamin Peterson [Fri, 23 Sep 2011 17:23:22 +0000 (13:23 -0400)] 
disable unused result warnings when possible

14 years agoMerge 3.2: Issue #7732: Don't open a directory as a file anymore while
Victor Stinner [Fri, 23 Sep 2011 16:59:08 +0000 (18:59 +0200)] 
Merge 3.2: Issue #7732: Don't open a directory as a file anymore while
importing a module. Ignore the direcotry if its name matchs the module name
(e.g.  "__init__.py") and raise a ImportError instead.