Greg Ward [Sat, 24 Jun 2000 01:22:41 +0000 (01:22 +0000)]
More stylistic tweaks to the generic '--help-xxx' code.
Greg Ward [Sat, 24 Jun 2000 00:23:20 +0000 (00:23 +0000)]
Stylistic/formatting changes to Rene Liebscher's '--help-xxx' patch.
Greg Ward [Sat, 24 Jun 2000 00:19:35 +0000 (00:19 +0000)]
Experimental, completely untested SWIG support.
Greg Ward [Sat, 24 Jun 2000 00:18:24 +0000 (00:18 +0000)]
Revised docstring so 'sources' isn't necessarily all C/C++ files (to
accomodate SWIG interface files, resource files, etc.).
Barry Warsaw [Fri, 23 Jun 2000 20:24:25 +0000 (20:24 +0000)]
(py-execute-region): Make sure the new temporary buffer is current for
the insertion of the text.
Jeremy Hylton [Fri, 23 Jun 2000 19:37:02 +0000 (19:37 +0000)]
part 2 of Neil Schemenauer's GC patches:
This patch modifies the type structures of objects that
participate in GC. The object's tp_basicsize is increased when
GC is enabled. GC information is prefixed to the object to
maintain binary compatibility. GC objects also define the
tp_flag Py_TPFLAGS_GC.
Jeremy Hylton [Fri, 23 Jun 2000 17:14:56 +0000 (17:14 +0000)]
traverse functions should return 0 on success
Jeremy Hylton [Fri, 23 Jun 2000 14:36:32 +0000 (14:36 +0000)]
raise TypeError when PyObject_Get/SetAttr called with non-string name
Jeremy Hylton [Fri, 23 Jun 2000 14:18:11 +0000 (14:18 +0000)]
Round 1 of Neil Schemenauer's GC patches:
This patch adds the type methods traverse and clear necessary for GC
implementation.
Greg Ward [Fri, 23 Jun 2000 01:42:40 +0000 (01:42 +0000)]
Bastian Kleineidam: 'copy_file()' now returns the output filename, rather
than a boolean indicating whether it did the copy.
Andrew M. Kuchling [Fri, 23 Jun 2000 01:36:21 +0000 (01:36 +0000)]
Release the global interpreter lock around the most important
functions that might block or pause
Jack Jansen [Wed, 21 Jun 2000 22:07:06 +0000 (22:07 +0000)]
All relevant toolbox modules have now been carbonized.
Marc-André Lemburg [Wed, 21 Jun 2000 21:21:04 +0000 (21:21 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Made codecs.open() default to 'rb' as file mode.
Guido van Rossum [Wed, 21 Jun 2000 20:01:10 +0000 (20:01 +0000)]
Sjoerd Mullender:
These two fixes were approved by me.
Peter Kropf:
There's a problem with the xmllib module when used with JPython. Specifically,
the JPython re module has trouble with the () characters in strings passed into
re.compile.
Spiros Papadimitriou:
I just downloaded xmllib.py ver. 0.3 from python.org and there
seems to be a slight typo: Line 654 ("tag = self.stack[-1][0]"
in parse_endtag), is indented one level more than it should be.
I just thought I'd let you know...
Greg Ward [Wed, 21 Jun 2000 03:33:03 +0000 (03:33 +0000)]
Implementation of the CCompiler class for Cygwin and Mingw32, ie. the two
major ports of GCC to Windows. Contributed by Rene Liebscher, and quite
untested by me. Apparently requires tweaking Python's installed config.h
and adding a libpython.a to build extensions.
Greg Ward [Wed, 21 Jun 2000 03:29:57 +0000 (03:29 +0000)]
Fix inspired by Rene Liebscher: if setup script is newer than the
manifest, regenerate the manifest.
Greg Ward [Wed, 21 Jun 2000 03:14:27 +0000 (03:14 +0000)]
Delete spurious comment.
Greg Ward [Wed, 21 Jun 2000 03:13:51 +0000 (03:13 +0000)]
Build the 'outfiles' list so 'get_outputs()' has something to return.
(Bug spotted and originally fixed by Rene Liebscher; fix redone by me.)
Greg Ward [Wed, 21 Jun 2000 03:09:02 +0000 (03:09 +0000)]
Rene Liebscher: when fixing up directories with an alternate root, include
'install_headers'.
Greg Ward [Wed, 21 Jun 2000 03:00:50 +0000 (03:00 +0000)]
Fleshed out and added a bunch of useful stuff, notably 'check_func()',
'try_cpp()', 'search_cpp()', and 'check_header()'. This is enough that
the base config is actually useful for implementing a real config
command, specifically one for mxDateTime.
Greg Ward [Wed, 21 Jun 2000 02:59:14 +0000 (02:59 +0000)]
Oops, import 'grok_environment_error()'.
Greg Ward [Wed, 21 Jun 2000 02:58:46 +0000 (02:58 +0000)]
Added 'preprocess()' method to CCompiler interface, and implemented
it in UnixCCompiler. Still needs to be implemented in MSVCCompiler (and
whatever other compiler classes are lurking out there, waiting to be
checked in).
Andrew M. Kuchling [Wed, 21 Jun 2000 01:48:46 +0000 (01:48 +0000)]
Minor grammatical fix
Andrew M. Kuchling [Wed, 21 Jun 2000 01:42:51 +0000 (01:42 +0000)]
Document .timeout() method and .typeahead() function
Andrew M. Kuchling [Wed, 21 Jun 2000 01:41:48 +0000 (01:41 +0000)]
Added .timeout() method and .typeahead() function
Jack Jansen [Tue, 20 Jun 2000 22:01:04 +0000 (22:01 +0000)]
Added an optional debug handler that traps and prints all unknown appleevents.
Jack Jansen [Tue, 20 Jun 2000 21:59:25 +0000 (21:59 +0000)]
Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).
Jeremy Hylton [Tue, 20 Jun 2000 19:13:27 +0000 (19:13 +0000)]
verify that Python raises SyntaxError for long and deeply-nested expressions
Jeremy Hylton [Tue, 20 Jun 2000 19:10:44 +0000 (19:10 +0000)]
Add new parser error code, E_OVERFLOW. This error is returned when
the number of children of a node exceeds the max possible value for
the short that is used to count them. The Python runtime converts
this parser error into the SyntaxError "expression too long."
Jeremy Hylton [Tue, 20 Jun 2000 18:52:57 +0000 (18:52 +0000)]
add minimal test of exception use. verify that each exception can be
raised, caught, and converted to a string.
Jeremy Hylton [Tue, 20 Jun 2000 18:36:26 +0000 (18:36 +0000)]
mark SyntaxError__str__ as METH_VARARGS
Fred Drake [Tue, 20 Jun 2000 18:32:16 +0000 (18:32 +0000)]
Pekka Pessi <Pekka.Pessi@nokia.com>:
Patch to add support for sip: (Session Initiation Protocol, RFC2543)
URLs.
Fred Drake [Tue, 20 Jun 2000 15:47:54 +0000 (15:47 +0000)]
Fredrik Lundh <effbot@telia.com>:
Simplify find code; this is a performance improvement on at least some
platforms.
Mark Hammond [Tue, 20 Jun 2000 08:12:48 +0000 (08:12 +0000)]
Added a new debug method sys.gettotalrefcount(), which returns the total number of references on all Python objects. This is only enabled when Py_TRACE_REFS is defined (which includes default debug builds under Windows).
Also removed a redundant cast from sys.getrefcount(), as discussed on the patches list.
Jack Jansen [Tue, 20 Jun 2000 07:42:23 +0000 (07:42 +0000)]
Made to work under carbon.
Jack Jansen [Tue, 20 Jun 2000 07:42:00 +0000 (07:42 +0000)]
Under carbon use the GetQDGlobalxxx methods to implement Qd.qd.member access.
Jack Jansen [Tue, 20 Jun 2000 07:40:34 +0000 (07:40 +0000)]
Made argc/argv processing work again under carbon.
Fred Drake [Tue, 20 Jun 2000 04:54:19 +0000 (04:54 +0000)]
Christopher Fandrich <cfandrich@8cs.com>:
Fix memory leak in initializing __debug__.
Fred Drake [Mon, 19 Jun 2000 13:41:54 +0000 (13:41 +0000)]
Patch from Rene Liebscher <R.Liebscher@gmx.de>, slightly modified and
commented by Fred Drake, to prevent usage of sufficiently broken GCC
versions.
Fred Drake [Mon, 19 Jun 2000 13:17:41 +0000 (13:17 +0000)]
Fixed docstring typo, reported by Skip Montanaro <skip@mojam.com>.
Andrew M. Kuchling [Mon, 19 Jun 2000 00:55:09 +0000 (00:55 +0000)]
Patch from Michael Hudson to fix flatten recursive data structures:
[mwh21@atrus build]$ ./python
>>> import Tkinter
>>> l = []
>>> l.append(l)
>>> Tkinter._flatten(l)
Segmentation fault (core dumped)
Marc-André Lemburg [Sun, 18 Jun 2000 22:25:22 +0000 (22:25 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Fixed a bug in PyUnicode_Count() which would have caused a
core dump in case of substring coercion failure.
Synchronized .count() with the string method of the same name
to return len(s)+1 for s.count('').
Marc-André Lemburg [Sun, 18 Jun 2000 22:22:27 +0000 (22:22 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added optimization proposed by Andrew Kuchling to the Unicode
matching macro.
Andrew M. Kuchling [Sun, 18 Jun 2000 20:27:10 +0000 (20:27 +0000)]
Fix bug when the replacement template is a callable object
Andrew M. Kuchling [Sun, 18 Jun 2000 19:06:49 +0000 (19:06 +0000)]
Patch from Lorenzo M. Catucci:
I discovered the [MREMAP_MAYMOVE] symbol is only defined when _GNU_SOURCE is
defined; therefore, here is the change: if we are compiling for linux,
define _GNU_SOURCE before including mman.h, and all is done.
Andrew M. Kuchling [Sun, 18 Jun 2000 18:45:50 +0000 (18:45 +0000)]
Patch from /F:
this patch adds a fast _flatten function to the _tkinter
module, and imports it from Tkinter.py (if available).
this speeds up canvas operations like create_line and
create_polygon. for example, a create_line with 5000
vertices runs about 50 times faster with this patch in
place.
Andrew M. Kuchling [Sun, 18 Jun 2000 18:43:14 +0000 (18:43 +0000)]
Patch from /F:
this patch introduces PySequence_Fast and PySequence_Fast_GET_ITEM,
and modifies the list.extend method to accept any kind of sequence.
Greg Ward [Sun, 18 Jun 2000 15:45:55 +0000 (15:45 +0000)]
'get_platform()' now just returns 'sys.platform' on all platforms.
Andrew M. Kuchling [Sun, 18 Jun 2000 15:07:40 +0000 (15:07 +0000)]
Regenerated autoconf files. There's an extra change to config.h.in beyond
the mremap() change I made; did someone modify configure.in previously
without recreating these files?
Andrew M. Kuchling [Sun, 18 Jun 2000 14:54:13 +0000 (14:54 +0000)]
Check for existence of mremap()
Andrew M. Kuchling [Sun, 18 Jun 2000 14:51:21 +0000 (14:51 +0000)]
Support resizing the mapping depending on whether HAVE_MREMAP is defined
Remove two unused variables
Fred Drake [Sun, 18 Jun 2000 05:21:21 +0000 (05:21 +0000)]
Markup consistency nits.
Andrew M. Kuchling [Sun, 18 Jun 2000 04:47:08 +0000 (04:47 +0000)]
Additional tests for seek() method, written by Trent Mick
Andrew M. Kuchling [Sun, 18 Jun 2000 04:45:14 +0000 (04:45 +0000)]
Patch from Trent Mick:
The seek() method is broken for any 'whence' value (seek from
start, current, orend) other than the default. I have a patch
that fixes that as well as gets mmap'd files working on
Linux64 and Win64.
Andrew M. Kuchling [Sun, 18 Jun 2000 04:25:08 +0000 (04:25 +0000)]
Removed MS_INVALIDATE flags
Andrew M. Kuchling [Sun, 18 Jun 2000 04:17:38 +0000 (04:17 +0000)]
Make changes and clarifications suggested by Mark Hammond
Greg Ward [Sat, 17 Jun 2000 23:04:31 +0000 (23:04 +0000)]
Pulled the MSVC++-specific hackery out to a new method, 'prelink_hook()',
and added (empty) 'precompile_hook()' for symmetry. One can envision
a much more elaborate hook mechanism, but this looks like it'll do for
now.
Andrew M. Kuchling [Sat, 17 Jun 2000 22:41:22 +0000 (22:41 +0000)]
Fix the size() method to return the size of the file on Unix, not the
size of the mapped area. This seems to be what the Windows version does.
This change requires keeping around the fd of the mapped file.
Andrew M. Kuchling [Sat, 17 Jun 2000 22:39:05 +0000 (22:39 +0000)]
Documentation for the mmap module: proofreaders welcomed
Marc-André Lemburg [Sat, 17 Jun 2000 20:31:17 +0000 (20:31 +0000)]
Vladimir MARANGOZOV <Vladimir.Marangozov@inrialpes.fr>:
This patch fixes an optimisation mystery in _PyUnicodeNew causing segfaults
on AIX when the interpreter is compiled with -O.
Greg Ward [Sat, 17 Jun 2000 02:19:30 +0000 (02:19 +0000)]
Renamed PATH_CREATED to _path_created, on the grounds that it's private and
mutable, rather than public and constant.
Greg Ward [Sat, 17 Jun 2000 02:18:19 +0000 (02:18 +0000)]
Changed 'remove_tree()' to use the new 'grok_environment_error()' function
instead of muddling through IOError and OSError exception objects itself.
Greg Ward [Sat, 17 Jun 2000 02:17:45 +0000 (02:17 +0000)]
Changed to use the new 'grok_environment_error()' function instead of
muddling through IOError and OSError exception objects right here.
Greg Ward [Sat, 17 Jun 2000 02:16:46 +0000 (02:16 +0000)]
Added 'grok_environment_error()' function to deal with the various
forms that IOError and OSError can take (taken from core.py).
Greg Ward [Sat, 17 Jun 2000 01:58:14 +0000 (01:58 +0000)]
Bastian Kleineidam: added 'remove_tree()' function. Needed so that
'remove_tree()' can cooperate with 'mkpath()' in the maintenance of
the PATH_CREATED cache: specifically, if a directory is created
with 'mkpath()', later removed with 'remove_tree()', and 'mkpath()'
is again requested to create it, then it would erroneously think
the directory already existed, because it was in the PATH_CREATED
cache. The patch (slightly tweaked by me) fixes that.
Greg Ward [Sat, 17 Jun 2000 01:34:45 +0000 (01:34 +0000)]
Fixed install directory for header files on Unix.
Fred Drake [Fri, 16 Jun 2000 21:04:15 +0000 (21:04 +0000)]
Updates from Marc-Andre Lemburg <mal@leburg.com> for the Unicode support.
Fred Drake [Fri, 16 Jun 2000 20:00:04 +0000 (20:00 +0000)]
Added reference count information for PySequence_List().
Fred Drake [Fri, 16 Jun 2000 19:58:42 +0000 (19:58 +0000)]
Documented PySequence_List() and PySequence_Tuple().
Added a bit more documentation in the chapter on building extension types,
including Py_FindMethod() documentation.
Several minor consistency nits were fixed.
Marc-André Lemburg [Fri, 16 Jun 2000 17:05:57 +0000 (17:05 +0000)]
Michael Hudson <mwh21@cam.ac.uk>:
The error message refers to "append", yet the operation in
question is "concat".
Fred Drake [Thu, 15 Jun 2000 22:41:48 +0000 (22:41 +0000)]
do_cmd_textasciitilde(): New function.
Fred Drake [Thu, 15 Jun 2000 20:07:25 +0000 (20:07 +0000)]
Fix markup error that hid a tilde character; reported long ago by
Carl Feynman <carlf@abinitio.com>.
Fred Drake [Thu, 15 Jun 2000 18:44:30 +0000 (18:44 +0000)]
Michael Hudson <mwh21@cam.ac.uk>:
This patch corrects a little glitch and two outright errors.
(Including one reported earlier by Thomas Wouters.)
Fred Drake [Thu, 15 Jun 2000 14:50:20 +0000 (14:50 +0000)]
Thomas Wouters <thomas@xs4all.net>:
The following patch adds "sq_contains" support to rangeobject, and enables
the already-written support for sq_contains in listobject and tupleobject.
The rangeobject "contains" code should be a bit more efficient than the
current default "in" implementation ;-) It might not get used much, but it's
not that much to add.
listobject.c and tupleobject.c already had code for sq_contains, and the
proper struct member was set, but the PyType structure was not extended to
include tp_flags, so the object-specific code was not getting called (Go
ahead, test it ;-). I also did this for the immutable_list_type in
listobject.c, eventhough it is probably never used. Symmetry and all that.
Marc-André Lemburg [Wed, 14 Jun 2000 09:18:32 +0000 (09:18 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added code so that .isXXX() testing returns 0 for emtpy strings.
Marc-André Lemburg [Wed, 14 Jun 2000 09:17:25 +0000 (09:17 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Removed a test which can fail when the default locale setting
uses a Latin-1 encoding. The test case is not applicable anymore.
Jack Jansen [Wed, 14 Jun 2000 09:12:44 +0000 (09:12 +0000)]
Oops, default type and creator were reversed.
Fred Drake [Tue, 13 Jun 2000 20:51:29 +0000 (20:51 +0000)]
Hook in the documentation for the unicodedata module.
Fred Drake [Tue, 13 Jun 2000 20:50:50 +0000 (20:50 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Documentation for the unicodedata module (massaged by Fred for minor
consistency issues).
Fred Drake [Tue, 13 Jun 2000 18:49:53 +0000 (18:49 +0000)]
James C. Ahlstron <jim@interet.com>:
Thanks to Hubert Hoegl <hubert.hoegl@dlr.de> for finding this bug.
Jack Jansen [Tue, 13 Jun 2000 13:39:17 +0000 (13:39 +0000)]
Also add a one-line description of the "optional" directive.
Marc-André Lemburg [Tue, 13 Jun 2000 12:05:36 +0000 (12:05 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Fixed some tests to not cause the script to fail, but rather
output a warning (which then is caught by regrtest.py as wrong
output). This is needed to make test_unicode.py run through
on JPython.
Thanks to Finn Bock.
Marc-André Lemburg [Tue, 13 Jun 2000 12:04:05 +0000 (12:04 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Removed import of string module -- use string methods directly.
Thanks to Finn Bock.
Andrew M. Kuchling [Sun, 11 Jun 2000 02:42:07 +0000 (02:42 +0000)]
Documentation for the pyexpat module.
Andrew M. Kuchling [Sat, 10 Jun 2000 23:39:05 +0000 (23:39 +0000)]
Applied simplifications suggested by Greg Stein.
Andrew M. Kuchling [Sat, 10 Jun 2000 23:12:32 +0000 (23:12 +0000)]
Renamed the C extension for ncurses support from 'curses' to '_curses'.
(The SourceForge admins have been asked to rename the ,v file.)
Andrew M. Kuchling [Sat, 10 Jun 2000 23:08:21 +0000 (23:08 +0000)]
Install the contents of the Lib/curses directory
Andrew M. Kuchling [Sat, 10 Jun 2000 23:06:53 +0000 (23:06 +0000)]
Add contents of curses package
Andrew M. Kuchling [Sat, 10 Jun 2000 15:11:20 +0000 (15:11 +0000)]
Mention setting the default encoding
Add IDLE section from MZ
Marc-André Lemburg [Sat, 10 Jun 2000 09:32:51 +0000 (09:32 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Fixed a typo and removed a debug printf(). Thanks to Finn Bock
for finding these.
Fred Drake [Sat, 10 Jun 2000 04:22:57 +0000 (04:22 +0000)]
Added test for linnuxaudiodev module; directly adapted from sunaudiodev
test. Someone with more Linux audio knowledge should at least take a
brief look at it.
Andrew M. Kuchling [Sat, 10 Jun 2000 02:41:46 +0000 (02:41 +0000)]
List more deleted modules.
Add request for feedback.
Andrew M. Kuchling [Sat, 10 Jun 2000 02:24:31 +0000 (02:24 +0000)]
Filled in the sections on new and deleted modules.
Bumped version number.
Andrew M. Kuchling [Sat, 10 Jun 2000 01:41:48 +0000 (01:41 +0000)]
Comment out an apparent debug print
Jeremy Hylton [Fri, 9 Jun 2000 16:20:39 +0000 (16:20 +0000)]
the PyDict_SetItem does not borrow a reference, so we need to decref
reported by Mark Hammon
Andrew M. Kuchling [Fri, 9 Jun 2000 14:08:07 +0000 (14:08 +0000)]
Patch from /F: this patch brings the CVS version of SRE in sync with the
latest public snapshot.""
Andrew M. Kuchling [Fri, 9 Jun 2000 14:04:53 +0000 (14:04 +0000)]
Patch from Michael Hudson: improve unclear error message
Mark Hammond [Fri, 9 Jun 2000 06:01:47 +0000 (06:01 +0000)]
Cleanup a few docstrings.
Andrew M. Kuchling [Fri, 9 Jun 2000 02:48:18 +0000 (02:48 +0000)]
Minor fixes, additions to notes
Marc-André Lemburg [Thu, 8 Jun 2000 17:54:00 +0000 (17:54 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Fixed %c formatting to check for one character arguments. Thanks
to Finn Bock for finding this bug.
Added a fix for bug PR#348 which originated from not resetting
the globals correctly in _PyUnicode_Fini().