Andrew M. Kuchling
f580d27aa3
Use METH_VARARGS constant in example module.
...
Fix comment typo
2000-08-19 15:36:41 +00:00
Andrew M. Kuchling
cdec8c746b
Test case for Cookie.py
2000-08-19 15:21:12 +00:00
Moshe Zadka
1b07f2bcf6
Initial revision. Markup unchecked.
2000-08-19 14:11:41 +00:00
Andrew M. Kuchling
52ea872777
Added Tim O'Malley's Cookie.py module (master version at
...
http://www.timo-tasi.org/python/Cookie.py )
This is revision 2.26 according to Tim's RCS history.
2000-08-19 13:01:19 +00:00
Barry Warsaw
73f77b4495
com_error(): Quiet gcc -Wall warning.
2000-08-18 19:59:20 +00:00
Fred Drake
04e654a63c
Remove a couple of warnings turned up by "gcc -Wall".
2000-08-18 19:53:25 +00:00
Barry Warsaw
ce4dc41b1a
PyUnicode_AsUTF8String(): /F picks up what I missed: the local var
...
`str' is no longer necessary. Gotta turn on -Wall!
2000-08-18 19:30:40 +00:00
Vladimir Marangozov
0888ff17bd
Do not set a MemoryError exception over another MemoryError exception,
...
thus preserving the first one that has been raised.
2000-08-18 18:01:06 +00:00
Fred Drake
8ae9ce5e5b
Better conformance to the Python Style Guide: use spaces around operators.
2000-08-18 16:09:56 +00:00
Fred Drake
fe5c22a85e
When a KeyboardInterrupt is caught, just use the "raise" syntax to
...
re-raise it instead of re-raising it "manually" the ugly way.
2000-08-18 16:04:05 +00:00
Fred Drake
7b4fc17c6d
Revise to use atexit instead of monkeying with sys.exitfunc directly.
2000-08-18 15:50:54 +00:00
Fred Drake
def003845b
Convert some old-style string exceptions to class exceptions.
2000-08-18 14:59:33 +00:00
Fred Drake
b65b006595
Convert some old-style string exceptions to class exceptions.
2000-08-18 14:50:20 +00:00
Sjoerd Mullender
f28b898f13
Removed references to Py_FPROTO.
2000-08-18 10:00:28 +00:00
Barry Warsaw
2dd4abf277
PyUnicode_AsUTF8String(): Don't need to explicitly incref str since
...
PyUnicode_EncodeUTF8() already returns the created object with the
proper reference count. This fixes an Insure reported memory leak.
2000-08-18 06:58:15 +00:00
Barry Warsaw
f087960e99
ANSI-fy function headers. Not much more can be done since I don't
...
have access to Purify anymore.
2000-08-18 05:13:47 +00:00
Barry Warsaw
4ddd8202bc
lad_dealloc(): if xp->x_fd == -1, it means the descriptor's already
...
been closed. Don't try to reclose it. Found by Insure.
2000-08-18 05:10:45 +00:00
Barry Warsaw
152fbe88e9
pattern_findall(): Plug small memory leak discovered by Insure.
...
PyList_Append() always incref's the inserted item. Be sure to decref
it regardless of whether the append succeeds or fails.
2000-08-18 05:09:50 +00:00
Barry Warsaw
fc4514c22b
init_locale(): This file defines the _locale module, so the
...
Py_FatalError() should reflect that.
2000-08-18 05:07:12 +00:00
Barry Warsaw
87bec35d74
SyntaxError__classinit__(): Slight reorg for simplicity.
2000-08-18 05:05:37 +00:00
Barry Warsaw
38aa14afb6
PyParser_ParseString(): When the err_ret structure is initialized, the
...
fields token and expected must also be initialized, otherwise the
tests in parsetok() can generate uninitialized memory read errors.
This quiets an Insure warning.
2000-08-18 05:04:08 +00:00
Barry Warsaw
5ca1ef9238
comples_from_string(): Move s_buffer[] up to the top-level function
...
scope. Previously, s_buffer[] was defined inside the
PyUnicode_Check() scope, but referred to in the outer scope via
assignment to s. This quiets an Insure portability warning.
2000-08-18 05:02:16 +00:00
Barry Warsaw
9d23a4eb03
make_pair(): When comparing the pointers, they must be cast to integer
...
types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t). ANSI
specifies that pointer compares other than == and != to non-related
structures are undefined. This quiets an Insure portability warning.
2000-08-18 05:01:19 +00:00
Barry Warsaw
67c1a04bbb
PyFloat_FromString(): Move s_buffer[] up to the top-level function
...
scope. Previously, s_buffer[] was defined inside the
PyUnicode_Check() scope, but referred to in the outer scope via
assignment to s. This quiets an Insure portability warning.
2000-08-18 05:00:03 +00:00
Barry Warsaw
dc55d715bb
PyInstance_DoBinOp(): When comparing the pointers, they must be cast
...
to integer types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t).
ANSI specifies that pointer compares other than == and != to
non-related structures are undefined. This quiets an Insure
portability warning.
2000-08-18 04:57:32 +00:00