Jeremy Hylton
fd14d8e187
Make traceback objects collectable.
...
This should eliminate the traceback returned by sys.exc_info() as a
common source of memory leaks.
2001-10-22 22:17:41 +00:00
Tim Peters
d7c3652aa7
Removed two pointless and obfuscating macros.
2001-10-22 19:34:09 +00:00
Guido van Rossum
8586991099
REMOVED all CWI, CNRI and BeOpen copyright markings.
...
This should match the situation in the 1.6b1 tree.
2000-09-01 23:29:29 +00:00
Thomas Wouters
f70ef4f860
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
...
declarations yet, those come later.
2000-07-22 18:47:25 +00:00
Guido van Rossum
ffcc3813d8
Change copyright notice - 2nd try.
2000-06-30 23:58:06 +00:00
Guido van Rossum
fd71b9e9d4
Change copyright notice.
2000-06-30 23:50:40 +00:00
Guido van Rossum
582acece2e
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
...
tests.
2000-06-28 22:07:35 +00:00
Guido van Rossum
b18618dab7
Vladimir Marangozov's long-awaited malloc restructuring.
...
For more comments, read the patches@python.org archives.
For documentation read the comments in mymalloc.h and objimpl.h.
(This is not exactly what Vladimir posted to the patches list; I've
made a few changes, and Vladimir sent me a fix in private email for a
problem that only occurs in debug mode. I'm also holding back on his
change to main.c, which seems unnecessary to me.)
2000-05-03 23:44:39 +00:00
Guido van Rossum
6d10887cdc
Change traceback error message to "most recent call last" from
...
"innermost last". The latter was mysterious to newbies.
2000-03-31 00:39:23 +00:00
Guido van Rossum
d724b23420
Christian Tismer's "trashcan" patch:
...
Added wrapping macros to dictobject.c, listobject.c, tupleobject.c,
frameobject.c, traceback.c that safely prevends core dumps
on stack overflow. Macros and functions in object.c, object.h.
The method is an "elevator destructor" that turns cascading
deletes into tail recursive behavior when some limit is hit.
2000-03-13 16:01:29 +00:00
Guido van Rossum
3aca65312a
Tim Peters fixed PR#75: very long lines cause incorrect tracebacks.
1999-09-18 20:49:39 +00:00
Guido van Rossum
7e8d26d78c
PyFile_WriteString now returns an error indicator instead of calling
...
PyErr_Clear(). Add checking of those errors.
1997-05-22 22:35:47 +00:00
Guido van Rossum
a027efa5bf
Massive changes for separate thread state management.
...
All per-thread globals are moved into a struct which is manipulated
separately.
1997-05-05 20:56:21 +00:00
Guido van Rossum
73237c54b4
Only use PyCode_Addr2Line to get tb_lineno when Py_OptimizeFlag is set.
1997-05-05 20:53:25 +00:00
Guido van Rossum
65bf9f265e
Quickly renamed.
1997-04-29 18:33:38 +00:00
Guido van Rossum
6bf62dad9e
Keep gcc -Wall and Microsoft VC happy.
1997-04-11 20:37:35 +00:00
Guido van Rossum
b3f515af64
Get the line number from PyCode_Addr2Line instead of believing
...
tb_lineno. Store it in tb_lineno for the user.
1997-01-24 04:02:55 +00:00
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
1996-10-25 14:44:06 +00:00
Guido van Rossum
9d78d8d2fb
spell TraceBack with capital B
1995-09-18 21:29:36 +00:00
Guido van Rossum
681d79aaf3
keyword arguments and faster calls
1995-07-18 14:51:37 +00:00
Guido van Rossum
e78c5d0a16
ignore control-l (parallelling change to tokenizer.c)
1995-07-07 22:45:41 +00:00
Guido van Rossum
6d023c98b0
Added 1995 to copyright message.
...
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
1995-01-04 19:12:13 +00:00
Guido van Rossum
1ae940a587
Lots of changes, most minor (fatal() instead of abort(), use of
...
err_fetch/err_restore and so on). But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
1995-01-02 19:04:15 +00:00
Guido van Rossum
bfd5d755a0
* Python/traceback.c: security fix -- check for buffer oveflow
...
before concatenating sys.path item and module name
1994-09-29 09:38:04 +00:00
Guido van Rossum
13836d9e6d
add function name to traceback info
...
MPW fixes
1994-08-29 12:09:58 +00:00