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
Barry Warsaw
bc7c7f991c
Added test for uintptr_t, the C9X acceptable way to spell "type to
...
which I can cast void* to and back again without losing information".
In pyport.h, we typedef Py_uintptr_t to mean this thing, which if the
platform supports, will be uintptr_t (otherwise, other accomodations
are made).
2000-08-18 04:53:33 +00:00
Barry Warsaw
e736177d5b
Added #undef HAVE_UINTPTR_T for autoconf's delight.
2000-08-18 04:50:27 +00:00
Barry Warsaw
5eae2c160f
Moved LONG_LONG #define from here to pyport.h.
2000-08-18 04:48:56 +00:00
Barry Warsaw
fd847b23e6
Moved LONG_LONG #define from longobject.h to here, since it's needed
...
by the following.
typedef in a portable way the Python name for the C9X uintptr_t type.
This latter is the most portable way to spell an integral type to
which a void* can be cast to and back again without losing
information. Parallel checkin hacks configure to check if the
platform/compiler supports the C9X name.
2000-08-18 04:48:18 +00:00
Fred Drake
512bb72fb0
As pointed out by Denis S. Otkidach <den@analyt.chem.msu.ru>, xrange()
...
returns an xrange object, not a range object, despite the name of the
source file they're implemented in.
In the list of comparison operators, list != before <>, since <> is
described as obsolescent.
2000-08-18 03:12:38 +00:00
Fred Drake
a00738259f
Adjust the way __getslice__() is marked as deprecated; this will also
...
stand out more.
2000-08-18 02:42:14 +00:00
Fred Drake
304faf944c
Fix a markup error that caused formatting to fail.
...
Lots of minor markup adjustments as well.
2000-08-18 02:15:55 +00:00
Andrew M. Kuchling
59ecafa526
Mention the new 'import X as Y' syntax
2000-08-17 23:37:01 +00:00
Andrew M. Kuchling
0690c86a2a
Document the returns_unicode attribute
2000-08-17 23:15:21 +00:00
Fred Drake
4148877acf
Update to reflect the recent Grammar changes.
2000-08-17 23:08:05 +00:00
Thomas Wouters
5215225ea1
Apply SF patch #101135 , adding 'import module as m' and 'from module import
...
name as n'. By doing some twists and turns, "as" is not a reserved word.
There is a slight change in semantics for 'from module import name' (it will
now honour the 'global' keyword) but only in cases that are explicitly
undocumented.
2000-08-17 22:55:00 +00:00
Thomas Wouters
1d75a79c00
Apply SF patch #101029 : call __getitem__ with a proper slice object if there
...
is no __getslice__ available. Also does the same for C extension types.
Includes rudimentary documentation (it could use a cross reference to the
section on slice objects, I couldn't figure out how to do that) and a test
suite for all Python __hooks__ I could think of, including the new
behaviour.
2000-08-17 22:37:32 +00:00
Fred Drake
68add2e938
Remove an item that's been done.
2000-08-17 22:32:01 +00:00
Fred Drake
dd611b0070
A little more text, and some really minor cleanups.
2000-08-17 22:31:23 +00:00
Fred Drake
e581bb30c4
Small cleanups, and note when zip() entered the menagerie.
2000-08-17 22:30:30 +00:00
Fred Drake
b32aa5ecef
Revise the comments about the exceptions module to not refer to source
...
code; it is not sufficiently readable now that it in written in C, and
is less likely to be available to end users.
2000-08-17 22:29:31 +00:00
Fred Drake
25699f99f4
Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>:
...
Document opcodes added to support extended call syntax.
2000-08-17 22:19:26 +00:00
Jack Jansen
5119a0bc2b
Package with suites for talking to CodeWarrior.
2000-08-17 22:16:11 +00:00
Jack Jansen
47ff247e4b
Package with suites for talking to netscape.
2000-08-17 22:15:41 +00:00
Jack Jansen
ff792c2688
The package with standard suites. These are used separately and as base classes for other suite packages (StdSuite is slightly magical, in that it is the gensuitemodule default base package).
2000-08-17 22:14:57 +00:00
Jack Jansen
87426b9f1b
Use the new package-based scripting support.
2000-08-17 22:12:12 +00:00
Jack Jansen
60762cb920
Generate packages in stead of separate modules. The package main module imports everything, it knows about the app signature, suites can extend standard suites, and lots more. Automatically finding declarations in other suites TBD.
2000-08-17 22:11:45 +00:00
Jack Jansen
fb106c8c2f
Removed temporary code to disable OT networking (this was a workaround for getpeername() not working in a previous release of GUSI, but it has been fixed).
2000-08-17 20:04:26 +00:00
Jack Jansen
d843a018e9
Removed temporary code that always set creator to SimpleText.
2000-08-17 20:01:24 +00:00
Sjoerd Mullender
a1795032ca
Reran autoconf.
2000-08-17 11:41:06 +00:00