Neal Norwitz
ce15dce421
Drop the max stack depth to something that works in 2.6
2007-05-18 05:12:22 +00:00
Neal Norwitz
dc78cc6f7c
Fix bug in marshal where bad data would cause a segfault due to
...
lack of an infinite recursion check.
Contributed by Damien Miller at Google.
2007-05-16 20:09:36 +00:00
Kristján Valur Jónsson
b4c285a25b
Fix NonRecursiveMutex on x64. The signature of the faux-InterlockedCompareExchange function was wrong: It works with LONG and not PVOID objects, and it needs to have the target marked as volatile. Further, it is not needed at all for x64 targets, since that platform always has the real McCoy.
2007-05-07 18:28:12 +00:00
Kristján Valur Jónsson
00b0a9e5b2
Undefine the Yield macro after including Python_ast.h where it may cause conflicts with winbase.h on Windows.
2007-05-02 16:02:48 +00:00
Kristján Valur Jónsson
5e4e31f76a
Fix various minor issues discovered with static analysis using Visual Studio 2005 Team System.
...
Removed obsolete comment, since .dll modules are no longer supported on windows, only .pyd.
2007-04-21 12:46:49 +00:00
Neal Norwitz
03c566a268
Revert 54813 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
2007-04-16 06:19:52 +00:00
Neal Norwitz
16b7b53ad0
SF #1701207 : svnversion_init assertion failed
...
Revert bogus asserts (added to the wrong place) from rev 52501.
Approved by Anthony.
2007-04-16 06:12:02 +00:00
Kristján Valur Jónsson
9d9fbb4359
Fix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars in frameobject.c which can occur with opcodes > 127
2007-04-13 22:09:59 +00:00
Georg Brandl
8a10ea4613
Patch #1682205 : a TypeError while unpacking an iterable is no longer
...
masked by a generic one with the message "unpack non-sequence".
(backport from rev. 54480)
2007-03-21 09:00:55 +00:00
Collin Winter
7d9ac78384
Patch #1642547 : Fix an error/crash when encountering syntax errors in complex if statements.
...
Backported from r54404.
2007-03-16 04:12:48 +00:00
Collin Winter
2a98ff8eed
Inline PyImport_GetModulesReloading(). Backport from r54368.
2007-03-13 23:04:29 +00:00
Collin Winter
e19d7a3c0a
Bug #742342 : make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167 .
...
Backported from r54291.
2007-03-12 16:49:23 +00:00
Georg Brandl
15e138a0dc
Bug #1674503 : close the file opened by execfile() in an error condition.
...
(backport)
2007-03-06 12:16:52 +00:00
Georg Brandl
0ea891603d
Patch #1674228 : when assigning a slice (old-style), check for the
...
sq_ass_slice instead of the sq_slice slot.
(backport from rev. 54139)
2007-03-05 22:28:13 +00:00
Raymond Hettinger
d882e36f45
Fix constantification of None.
2007-03-02 19:19:05 +00:00
Neal Norwitz
036b3beca8
Fix SF bug #1669182 . Handle string exceptions even if unraisable (ie in __del__).
2007-02-26 23:46:51 +00:00
Neal Norwitz
a5f5f14783
Backport 53901 and 53902 to prevent crash when there is an error decoding unicode filenames
2007-02-25 16:19:21 +00:00
Martin v. Löwis
601d03a5be
Make PyTraceBack_Here use the current thread, not the
...
frame's thread state. Fixes #1579370 .
2007-01-23 21:11:58 +00:00
Thomas Wouters
e471317a08
Backport trunk revision 53527:
...
SF patch #1630975 : Fix crash when replacing sys.stdout in sitecustomize
When running the interpreter in an environment that would cause it to set
stdout/stderr/stdin's encoding, having a sitecustomize that would replace
them with something other than PyFile objects would crash the interpreter.
Fix it by simply ignoring the encoding-setting for non-files.
This could do with a test, but I can think of no maintainable and portable
way to test this bug, short of adding a sitecustomize.py to the buildsystem
and have it always run with it (hmmm....)
2007-01-23 13:54:30 +00:00
Anthony Baxter
a7118d3a4a
update to (c) years to include 2007
2007-01-06 04:50:44 +00:00
Neal Norwitz
7770f9f6d2
Backport:
...
Prevent crash on shutdown which can occur if we are finalizing
and the module dict has been cleared already and some object
raises a warning (like in a __del__).
2007-01-05 05:28:50 +00:00
Armin Rigo
1bc1ab23d3
Backport of r52862.
2006-11-29 22:07:38 +00:00
Neal Norwitz
a3ce6aa8b7
Backport 52621:
...
Bug #1588287 : fix invalid assertion for `1,2` in debug builds.
2006-11-04 19:32:54 +00:00
Neal Norwitz
2f0940b6ca
Backport 52504:
...
Fix bug #1565514 , SystemError not raised on too many nested blocks.
It seems like this should be a different error than SystemError, but
I don't have any great ideas and SystemError was raised in 2.4 and earlier.
2006-10-28 21:38:43 +00:00
Neal Norwitz
b5fdf0da21
Backport 52501:
...
Add some asserts. In sysmodule, I think these were to try to silence
some warnings from Klokwork. They verify the assumptions of the format
of svn version output.
The assert in the thread module helped debug a problem on HP-UX.
2006-10-28 21:36:37 +00:00