Peter Schneider-Kamp
faaad372ec
ANSI-fication (and test if committing files works now)
2000-07-10 09:26:41 +00:00
Sjoerd Mullender
f985064781
Better error handling of bad entity references. Before when an & in
...
an attribute value was not escaped, you could get two syntax errors:
one about a missing semicolon and one about an unknown entity. Now
you get only one about a bogus ampersand.
2000-07-10 08:09:48 +00:00
Vladimir Marangozov
b16714b4d0
Initialize the return value in collect_generations() since it is updated
...
conditionally in the code.
2000-07-10 05:37:39 +00:00
Vladimir Marangozov
14a4d88a2e
Remove the "1" that Tim sticked to the preprocessor symbol for unknown reasons
...
(cf. the rest of the headers in the distribution)
2000-07-10 04:59:49 +00:00
Vladimir Marangozov
d8a933248e
A small comment fix just to make sure I got my cvs/ssh setup right.
2000-07-10 04:30:56 +00:00
Fred Drake
859bad00cb
Guido said include these in the Great ANSI-fication, so here they are!
2000-07-10 04:20:57 +00:00
Fredrik Lundh
9ac81f69b2
- changed the nt.popen2 return values back to
...
(write, read, ...), based on feedback from GvR.
- added tuple-swapping code to popen2.py
- fixed some runaway indentation in posixmodule.c
2000-07-09 23:35:24 +00:00
Fredrik Lundh
0466132ee4
- repaired locale.py for non-windows platforms. the try/except
...
checked for the wrong exception. my fault. sorry.
(first reported by Alex Coventry)
2000-07-09 23:16:10 +00:00
Barry Warsaw
b78165566e
Exception__str__(): In case 1, be sure to decref the tmp local
...
variable. This crushes another memory leak. Slight rewrite
included.
2000-07-09 22:27:10 +00:00
Barry Warsaw
a1ae88432d
Use TQSQ (triple quoted single quote) module docstring for better
...
font-locking. This complets the merge with Mailman's version.
2000-07-09 21:24:31 +00:00
Fredrik Lundh
620f37723f
- changed 1.5 to 2.0 in the help text
...
(the PYTHONHOMEHELP define)
- ANSI-fication
(patch #100794 by Peter Schneider-Kamp)
2000-07-09 20:42:34 +00:00
Fredrik Lundh
faa209d6bd
- ANSI-fication
...
(patch #100805 by Peter Schneider-Kamp)
2000-07-09 20:35:15 +00:00
Fred Drake
3637799afe
Update to use the new standard webbrowser module if available, otherwise
...
uses the BrowserControl module.
BrowserControl is not removed to allow IDLE to be distributed separately
and still be used with Python 1.5.2.
2000-07-09 19:10:19 +00:00
Fredrik Lundh
bb7eeff44a
- added popen.popen2/popen3/popen4 support for
...
windows.
- added optional mode argument to popen2/popen3
for unix; if the second argument is an integer,
it's assumed to be the buffer size.
- changed nt.popen2/popen3/popen4 return values
to match the popen2 module (stdout first, not
stdin).
2000-07-09 17:59:32 +00:00
Fredrik Lundh
766ccdcf18
- added optional bufsize argument to new popen methods.
...
for the moment, this argument must be left out or set
to -1 (only the default bufsize is supported, that is)
2000-07-09 17:41:01 +00:00
Fredrik Lundh
6c86b99dc1
- merged setlocale and set_locale. the internal setlocale
...
function is overridden by a python version which accepts
*either* a string (old behaviour) or a locale tuple.
- renamed a few methods (for consistency):
get_locale => getlocale
get_default_locale => getdefaultlocale
set_to_default => resetlocale (!)
- the _locale implementation module can now implement
an optional _getdefaultlocale function. if that function
isn't available, a POSIX-based approach is used (checking
LANG and other environment variables, as usual).
(patch #100765 )
2000-07-09 17:12:58 +00:00
Fred Drake
c70b4483d2
New module to control Web browsers; see the documentation for
...
more information.
2000-07-09 16:45:56 +00:00
Fred Drake
dbbf76bd5a
Make tabnanny happy.
...
mailbox.py: Convert to 4-space indents.
2000-07-09 16:44:26 +00:00
Greg Stein
c2844af87b
needs a space
2000-07-09 16:27:33 +00:00
Fred Drake
100814dc44
ANSI-fication of the sources.
2000-07-09 15:48:49 +00:00
Fred Drake
a2f5511941
ANSI-fication of the sources.
2000-07-09 15:16:51 +00:00
Fredrik Lundh
f5accf38ea
- ANSI-fication
...
(patch #100784 by Peter Schneider-Kamp)
2000-07-09 15:14:52 +00:00
Fredrik Lundh
3c5d43d342
- ANSI-ification
...
(patch #100770 by Peter Schneider-Kamp)
2000-07-09 15:09:56 +00:00
Andrew M. Kuchling
08d87c6de1
Document addition of webbrowser.py
...
Mention the ANSIfication of the source.
2000-07-09 15:05:15 +00:00
Fredrik Lundh
ffb9c770f8
- improved os.popen support for windows, based on win32pipe
...
by Bill Tutt.
note: to run this on Windows 95/98, you need to have the
w9xpopen.exe helper in the same directory as the python DLL.
2000-07-09 14:49:51 +00:00
Fred Drake
ce81d59c0c
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
...
The actual test for it is only commented out in configure.in, so it can
be re-enabled if we ever run across the need for it again.
2000-07-09 14:39:29 +00:00
Fred Drake
3cd2ee4037
Remove use of HAVE_OLD_CPP to support non-ANSI preprocessors.
2000-07-09 14:36:13 +00:00
Andrew M. Kuchling
ad9b1f8533
Patch from Peter Schneider-Kamp: convert curses module to ANSI prototypes,
...
and substitute the conventional "args" instead of "arg".
2000-07-09 14:35:00 +00:00
Fred Drake
bd03bfce45
Remove legacy use of __SC__; no longer needed now that ANSI source is
...
the standard for Python implementation.
2000-07-09 14:22:08 +00:00
Fredrik Lundh
5cccf50931
- added (long) casts to a couple of Py_BuildValue calls,
...
just for the sake of it.
note that this only covers the unlikely case that size_t
is smaller than a long; it's probably more likely that
there are platforms out there where size_t is *larger*
than a long, and mmapmodule cannot really deal with that
today.
2000-07-09 13:16:13 +00:00
Fredrik Lundh
e25cfd8662
- fixed pointer size test in spawn functions. also added
...
cast to make sure Py_BuildValue gets the right thing.
this change eliminates bogus return codes from successful
spawn calls (e.g. 2167387144924954624 instead of 0).
2000-07-09 13:10:40 +00:00
Fredrik Lundh
43298d1fff
- win95/98 helper for new os.popen code
...
this should be built as a console application (link with
USER32.LIB), and installed in the same directory as the
Python DLL.
2000-07-09 11:35:36 +00:00
Tim Peters
c2e7da9859
Somebody started playing with const, so of course the outcome
...
was cascades of warnings about mismatching const decls. Overall,
I think const creates lots of headaches and solves almost
nothing. Added enough consts to shut up the warnings, but
this did require casting away const in one spot too (another
usual outcome of starting down this path): the function
mymemreplace can't return const char*, but sometimes wants to
return its first argument as-is, which latter must be declared
const char* in order to avoid const warnings at mymemreplace's
call sites. So, in the case the function wants to return the
first arg, that arg's declared constness must be subverted.
2000-07-09 08:02:21 +00:00
Fred Drake
ba09633e1e
ANSI-fication of the sources.
2000-07-09 07:04:36 +00:00
Fred Drake
45cfbcccc2
ANSI-fication of the sources.
2000-07-09 06:21:27 +00:00
Fred Drake
ee238b977f
ANSI-fication of the sources.
2000-07-09 06:03:25 +00:00
Fred Drake
1b190b4636
ANSI-fication of the sources.
2000-07-09 05:40:56 +00:00
Fred Drake
1f0968c5f8
Remove legacy use of __SC__; no longer needed now that ANSI source is
...
the standard for Python implementation.
2000-07-09 05:31:24 +00:00
Fred Drake
fd99de6470
ANSI-fication of the sources.
2000-07-09 05:02:18 +00:00
Barry Warsaw
7dfeb42939
EnvironmentError__init__(): The two case clauses were missing
...
`break's. This first missing break caused a memory leak when case 3
fell through case 2 in the following example:
import os
os.chmod('/missing', 0600)
2000-07-09 04:56:25 +00:00
Fred Drake
4288c80599
ANSI-fication of the sources.
2000-07-09 04:36:04 +00:00
Fred Drake
4201b9e420
type_error(): Added "const" to signature to eliminate warning with -Wall.
2000-07-09 04:34:13 +00:00
Fred Drake
3be9a8a5ed
ANSI-fication of the source.
...
Make the indentation and brace placement internally consistent.
2000-07-09 04:14:42 +00:00
Fred Drake
799124718d
ANSI-fication of the sources.
2000-07-09 04:06:11 +00:00
Fred Drake
a83b68a143
Remove the only Py_PROTO in the docs.
2000-07-09 03:35:10 +00:00
Tim Peters
dbd9ba6a6c
Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
2000-07-09 03:09:57 +00:00
Tim Peters
4be47c0f76
Get rid of unused vars in builtin_unicode (they were causing
...
legit warnings).
2000-07-09 02:11:18 +00:00
Fred Drake
3cf4d2b3ea
ANSI-fication and Py_PROTO extermination.
2000-07-09 00:55:06 +00:00
Fred Drake
ea9cb5aebf
ANSI-fication and Py_PROTO extermination.
2000-07-09 00:20:36 +00:00
Fred Drake
5eb6d4e3bf
ANSI-fication and Py_PROTO extermination.
2000-07-08 23:37:28 +00:00