Andrew M. Kuchling [Tue, 27 Jun 2000 15:01:10 +0000 (15:01 +0000)]
Fix two typos (, instead of ;)
Andrew M. Kuchling [Tue, 27 Jun 2000 14:15:29 +0000 (14:15 +0000)]
Fix comment typo noticed by Rob Hooft
Andrew M. Kuchling [Tue, 27 Jun 2000 03:16:04 +0000 (03:16 +0000)]
Changed obsolete e-mail alias
Andrew M. Kuchling [Tue, 27 Jun 2000 03:10:38 +0000 (03:10 +0000)]
Added support for mouse functions: mousemask(), mouseinterval(),
getmouse(), ungetmouse(), and window.enclose(). wmouse_trafo() seems
of marginal importance at the moment.
Greg Ward [Tue, 27 Jun 2000 01:59:43 +0000 (01:59 +0000)]
Oops, only do that AIX hack on AIX.
Greg Ward [Tue, 27 Jun 2000 01:59:06 +0000 (01:59 +0000)]
Fixed LDSHARED for AIX, based on a patch by Rene Liebscher.
Ditched my old code that fixed relative paths in the Makefile -- didn't work,
doomed to failure, etc.
Greg Ward [Tue, 27 Jun 2000 01:43:24 +0000 (01:43 +0000)]
A-ha! Read Thomas' patch a little more carefully and figured it out:
the 'implib_dir' attribute is back (only on NT, of course).
Greg Ward [Tue, 27 Jun 2000 01:37:10 +0000 (01:37 +0000)]
Thomas Heller: added --swig-cpp option and fixed silly typos in SWIG support.
Also supposedly made some change to where .lib files wind up under MSVC++,
but I don't understand how to code is doing what Thomas says it's
doing.
Greg Ward [Tue, 27 Jun 2000 01:24:38 +0000 (01:24 +0000)]
Thomas Heller's "bdist_wininst" command (unreviewed, untested).
Greg Ward [Tue, 27 Jun 2000 01:24:07 +0000 (01:24 +0000)]
Infrastructure support for the "bdist_wininst" command.
Greg Ward [Tue, 27 Jun 2000 01:21:22 +0000 (01:21 +0000)]
Added 'include_dirs' parameters all over the place.
Added 'check_lib()', which provides a subset of the functionality of
'check_func()' with a simpler interface and implementation.
Andrew M. Kuchling [Tue, 27 Jun 2000 00:53:12 +0000 (00:53 +0000)]
Sync to ESR's current version
Andrew M. Kuchling [Tue, 27 Jun 2000 00:50:40 +0000 (00:50 +0000)]
Drop back to old version of wrapper(); ESR reports that it broke things,
and I lack the time to track down the cause.
Andrew M. Kuchling [Tue, 27 Jun 2000 00:37:25 +0000 (00:37 +0000)]
Change pyexpat test suite to exercise the .returns_unicode attribute,
parsing the sample data once with 8-bit strings and once with Unicode.
Andrew M. Kuchling [Tue, 27 Jun 2000 00:33:30 +0000 (00:33 +0000)]
Added support for passing Unicode strings to Expat handlers by default.
This version still includes #ifdef hackery to compile with 1.5.2.
Andrew M. Kuchling [Mon, 26 Jun 2000 23:59:24 +0000 (23:59 +0000)]
Dcoumentation for ascii.py. I've changed two references from ascii to
curses.ascii.
Andrew M. Kuchling [Mon, 26 Jun 2000 23:55:42 +0000 (23:55 +0000)]
Added two modules for ASCII characters and a simple editing form (ESR)
Andrew M. Kuchling [Mon, 26 Jun 2000 23:54:03 +0000 (23:54 +0000)]
Add wrapper for initscr() to copy the ACS_ and LINES,COLS bindings
Greg Stein [Mon, 26 Jun 2000 17:31:49 +0000 (17:31 +0000)]
now that imputil is in the main Python repository, clean up the header
Guido van Rossum [Mon, 26 Jun 2000 14:37:53 +0000 (14:37 +0000)]
Fredrik Lundh: get rid of warning in pythonrun.c
Greg Stein [Mon, 26 Jun 2000 08:28:01 +0000 (08:28 +0000)]
initial commit of a new HTTP library, supporting HTTP/1.1 and persistent
connections.
Andrew M. Kuchling [Sun, 25 Jun 2000 14:32:48 +0000 (14:32 +0000)]
Fix typos and errors noticed by Skip Montanaro
Jeremy Hylton [Sun, 25 Jun 2000 10:44:57 +0000 (10:44 +0000)]
update output file to reflect new test of exception object str-ness
Greg Ward [Sun, 25 Jun 2000 03:14:13 +0000 (03:14 +0000)]
Minor wording tweaks.
Kludged the extra-wide table that summarizes the manifest template language
(works with LaTeX, but is an *evil* kludge and could well break LaTeX2HTML
or similar...).
Greg Ward [Sun, 25 Jun 2000 02:31:16 +0000 (02:31 +0000)]
Define the 'executables' class attribute so the CCompiler constructor
doesn't blow up. We don't currently use the 'set_executables()' bureaucracy,
although it would be nice to do so for consistency with UnixCCompiler.
Greg Ward [Sun, 25 Jun 2000 02:30:15 +0000 (02:30 +0000)]
Removed some debugging code that slipped into the last checkin.
Ensure that 'extra_args' (whether compile or link args) is never None.
Greg Ward [Sun, 25 Jun 2000 02:23:11 +0000 (02:23 +0000)]
Fixed the "pre-link hook" so it actually works, mainly by renaming it
to 'msvc_prelink_hack()', adding the parameters that it actually needs,
and only calling it for MSVC compiler objects. Generally gave up on the
idea of a general "hook" mechanism: deleted the empty 'precompile_hook()'.
Greg Ward [Sun, 25 Jun 2000 02:12:14 +0000 (02:12 +0000)]
Added PreprocessError and UnknownFileError (both used by CCompiler).
Greg Ward [Sun, 25 Jun 2000 02:10:58 +0000 (02:10 +0000)]
Call 'customize_compiler()' after getting CCompiler object.
Greg Ward [Sun, 25 Jun 2000 02:10:46 +0000 (02:10 +0000)]
Fixed a few silly bugs in my SWIG support code. (Hey, I said it was
experimental and untested.)
Call 'customize_compiler()' after getting CCompiler object.
Greg Ward [Sun, 25 Jun 2000 02:09:14 +0000 (02:09 +0000)]
Added the 'customize_compiler()' function, which plugs in the essential
information about building Python extensions that we discovered in
Python's makefile. Currently only needed on Unix, so does nothing on
other systems.
Greg Ward [Sun, 25 Jun 2000 02:08:18 +0000 (02:08 +0000)]
Introduced some bureaucracy for setting and tracking the executables
that a particular compiler system depends on. This consists of the
'set_executables()' and 'set_executable()' methods, and a few lines in
the constructor that expect implementation classes to provide an
'executables' attribute, which we use to initialize several instance
attributes. The default implementation is somewhat biased in favour of
a Unix/DOS "command-line" view of the world, but it shouldn't be too
hard to override this for operating systems with a more sophisticated
way of representing programs-to-execute.
Greg Ward [Sun, 25 Jun 2000 02:05:29 +0000 (02:05 +0000)]
Got rid of direct dependence on the sysconfig module. Mainly, this
meant playing along with the new "dictionary of executables" scheme
added to CCompiler by adding the 'executables' class attribute, and
changing all the compile/link/etc. methods to use the new attributes
(which encapsulate both the program to run and its standard arguments,
so it was a *little* bit more than just changing some names).
Greg Ward [Sat, 24 Jun 2000 20:40:02 +0000 (20:40 +0000)]
Added 'split_quoted()' function to deal with strings that are quoted in
Unix shell-like syntax (eg. in Python's Makefile, for one thing -- now that
I have this function, I'll probably allow quoted strings in config files too.
Greg Ward [Sat, 24 Jun 2000 18:10:48 +0000 (18:10 +0000)]
Docstring reformatting/tweaking binge.
Fixed a few comments.
Greg Ward [Sat, 24 Jun 2000 17:36:24 +0000 (17:36 +0000)]
Print a warning if we install a data file right in install_dir.
Tweaked help text.
Greg Ward [Sat, 24 Jun 2000 17:22:39 +0000 (17:22 +0000)]
Changed the default installation directory for data files (used by
the "install_data" command to the installation base, which is usually just
sys.prefix. (Any setup scripts out there that specify data files will have
to set the installation directory, relative to the base, explicitly.)
Greg Ward [Sat, 24 Jun 2000 02:22:49 +0000 (02:22 +0000)]
Changed 'object_filenames()' to raise exception instead of silently carrying
on if it sees a filename with unknown extension.
Greg Ward [Sat, 24 Jun 2000 01:45:47 +0000 (01:45 +0000)]
Some clarifications to the 'A simple example' section.
Greg Ward [Sat, 24 Jun 2000 01:33:16 +0000 (01:33 +0000)]
Fixed a grab-bag of typos spotted by Detlef Lannert.
Greg Ward [Sat, 24 Jun 2000 01:23:37 +0000 (01:23 +0000)]
Changed so all the help-generating functions are defined, at module-level,
in the module of the command classes that have command-specific
help options. This lets us keep the principle of lazily importing
the ccompiler module, and also gets away from defining non-methods
at class level.
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