Georg Brandl
5f135787ec
Part of bug #1523610 : fix miscalculation of buffer length.
...
Also add a guard against NULL in converttuple and add a test case
(that previously would have crashed).
2006-07-26 08:03:10 +00:00
Andrew MacIntyre
82247cb7d1
bugfix: PyThread_start_new_thread() returns the thread ID, not a flag;
...
will backport.
2006-07-23 13:00:04 +00:00
Neal Norwitz
f71847e645
If the for loop isn't entered, entryblock will be NULL. If passed
...
to stackdepth_walk it will be dereffed.
Not sure if I found with failmalloc or Klockwork #55 .
2006-07-23 07:51:58 +00:00
Neal Norwitz
18b6adf9b2
Handle more mem alloc issues found with failmalloc
2006-07-23 07:50:36 +00:00
Neal Norwitz
b59d08c2fb
Fix more memory allocation issues found with failmalloc.
2006-07-22 16:20:49 +00:00
Neal Norwitz
d12bd012a6
Handle more memory allocation failures without crashing.
2006-07-21 07:59:47 +00:00
Neal Norwitz
33722aec57
Speel initialise write. Tanks Anthony.
2006-07-21 07:59:02 +00:00
Neal Norwitz
e1fdb32ff2
Handle allocation failures gracefully. Found with failmalloc.
...
Many (all?) of these could be backported.
2006-07-21 05:32:28 +00:00
Tim Peters
112aad3630
SF bug 1524317: configure --without-threads fails to build
...
Moved the code for _PyThread_CurrentFrames() up, so it's no longer
in a huge "#ifdef WITH_THREAD" block (I didn't realize it /was/ in
one).
Changed test_sys's test_current_frames() so it passes with or without
thread supported compiled in.
Note that test_sys fails when Python is compiled without threads,
but for an unrelated reason (the old test_exit() fails with an
indirect ImportError on the `thread` module). There are also
other unrelated compilation failures without threads, in extension
modules (like ctypes); at least the core compiles again.
Do we really support --without-threads? If so, there are several
problems remaining.
2006-07-19 00:03:19 +00:00
Neal Norwitz
a5e4f22bfb
Reported by Klocwork #151 .
...
v2 can be NULL if exception2 is NULL. I don't think that condition can happen,
but I'm not sure it can't either. Now the code will protect against either
being NULL.
2006-07-17 00:59:04 +00:00
Neal Norwitz
c0cde4da2a
Fix memory leak under some conditions.
...
Reported by Klocwork, #98 .
2006-07-16 02:17:36 +00:00
Neal Norwitz
84be93b2db
Bug #1512814 , Fix incorrect lineno's when code within a function
...
had more than 255 blank lines. Byte codes need to go first, line #s second.
2006-07-16 01:50:38 +00:00
Georg Brandl
9dceedbb97
Accept long options "--help" and "--version".
2006-07-12 15:31:17 +00:00
Neal Norwitz
a1f1090109
Actually change the MAGIC #. Create a new section for 2.5c1 and mention the impact of changing the MAGIC #.
2006-07-12 07:28:29 +00:00
Neal Norwitz
edef2be4af
Bug #1520864 : unpacking singleton tuples in for loop (for x, in) work again.
2006-07-12 05:26:17 +00:00
Thomas Heller
249f6b1bf4
Add missing Py_DECREFs.
2006-07-11 16:44:25 +00:00
Tim Peters
32a8361f2d
After approval from Anthony, merge the tim-current_frames
...
branch into the trunk. This adds a new sys._current_frames()
function, which returns a dict mapping thread id to topmost
thread stack frame.
2006-07-10 21:08:24 +00:00
Neal Norwitz
ed65755608
Bug #1512814 , Fix incorrect lineno's when code at module scope
...
started after line 256.
2006-07-10 00:04:44 +00:00
Neal Norwitz
28746aba9b
On 64 bit systems, int literals that use less than 64 bits are now ints
...
rather than longs. This also fixes the test for eval(-sys.maxint - 1).
2006-07-09 22:14:42 +00:00
Neil Schemenauer
6ec6ab02c3
Fix SF bug 1441486: bad unary minus folding in compiler.
2006-07-09 21:19:29 +00:00
Neil Schemenauer
0e07b60a4e
Fix AST compiler bug #1501934 : incorrect LOAD/STORE_GLOBAL generation.
2006-07-09 16:16:34 +00:00
Neal Norwitz
fb48afa708
Fix SF bug #1519018 : 'as' is now validated properly in import statements
2006-07-08 05:31:37 +00:00
Neal Norwitz
a4df11d9c3
Fix refleaks reported by Shane Hathaway in SF patch #1515361 . This change
...
contains only the changes related to leaking the copy variable.
2006-07-06 04:28:59 +00:00
Martin v. Löwis
fcfff0a7fa
Bug #1417699 : Reject locale-specific decimal point in float()
...
and atof().
2006-07-03 12:19:50 +00:00
Hye-Shik Chang
e6a1cb9700
Bug #1511381 : codec_getstreamcodec() in codec.c is corrected to
...
omit a default "error" argument for NULL pointer. This allows
the parser to take a codec from cjkcodecs again.
(Reported by Taewook Kang and reviewed by Walter Doerwald)
2006-06-23 21:16:18 +00:00