]> granicus.if.org Git - python/log
python
24 years agoCall 'customize_compiler()' after getting CCompiler object.
Greg Ward [Sun, 25 Jun 2000 02:10:58 +0000 (02:10 +0000)]
Call 'customize_compiler()' after getting CCompiler object.

24 years agoFixed a few silly bugs in my SWIG support code. (Hey, I said it was
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.

24 years agoAdded the 'customize_compiler()' function, which plugs in the essential
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.

24 years agoIntroduced some bureaucracy for setting and tracking the executables
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.

24 years agoGot rid of direct dependence on the sysconfig module. Mainly, this
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).

24 years agoAdded 'split_quoted()' function to deal with strings that are quoted in
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.

24 years agoDocstring reformatting/tweaking binge.
Greg Ward [Sat, 24 Jun 2000 18:10:48 +0000 (18:10 +0000)]
Docstring reformatting/tweaking binge.
Fixed a few comments.

24 years agoPrint a warning if we install a data file right in install_dir.
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.

24 years agoChanged the default installation directory for data files (used by
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.)

24 years agoChanged 'object_filenames()' to raise exception instead of silently carrying
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.

24 years agoSome clarifications to the 'A simple example' section.
Greg Ward [Sat, 24 Jun 2000 01:45:47 +0000 (01:45 +0000)]
Some clarifications to the 'A simple example' section.

24 years agoFixed a grab-bag of typos spotted by Detlef Lannert.
Greg Ward [Sat, 24 Jun 2000 01:33:16 +0000 (01:33 +0000)]
Fixed a grab-bag of typos spotted by Detlef Lannert.

24 years agoChanged so all the help-generating functions are defined, at module-level,
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.

24 years agoMore stylistic tweaks to the generic '--help-xxx' code.
Greg Ward [Sat, 24 Jun 2000 01:22:41 +0000 (01:22 +0000)]
More stylistic tweaks to the generic '--help-xxx' code.

24 years agoStylistic/formatting changes to Rene Liebscher's '--help-xxx' patch.
Greg Ward [Sat, 24 Jun 2000 00:23:20 +0000 (00:23 +0000)]
Stylistic/formatting changes to Rene Liebscher's '--help-xxx' patch.

24 years agoExperimental, completely untested SWIG support.
Greg Ward [Sat, 24 Jun 2000 00:19:35 +0000 (00:19 +0000)]
Experimental, completely untested SWIG support.

24 years agoRevised docstring so 'sources' isn't necessarily all C/C++ files (to
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.).

24 years ago(py-execute-region): Make sure the new temporary buffer is current for
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.

24 years agopart 2 of Neil Schemenauer's GC patches:
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.

24 years agotraverse functions should return 0 on success
Jeremy Hylton [Fri, 23 Jun 2000 17:14:56 +0000 (17:14 +0000)]
traverse functions should return 0 on success

24 years agoraise TypeError when PyObject_Get/SetAttr called with non-string name
Jeremy Hylton [Fri, 23 Jun 2000 14:36:32 +0000 (14:36 +0000)]
raise TypeError when PyObject_Get/SetAttr called with non-string name

24 years agoRound 1 of Neil Schemenauer's GC patches:
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.

24 years agoBastian Kleineidam: 'copy_file()' now returns the output filename, rather
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.

24 years agoRelease the global interpreter lock around the most important
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

24 years agoAll relevant toolbox modules have now been carbonized.
Jack Jansen [Wed, 21 Jun 2000 22:07:06 +0000 (22:07 +0000)]
All relevant toolbox modules have now been carbonized.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
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.

24 years agoSjoerd Mullender:
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...

24 years agoImplementation of the CCompiler class for Cygwin and Mingw32, ie. the two
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.

24 years agoFix inspired by Rene Liebscher: if setup script is newer than the
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.

24 years agoDelete spurious comment.
Greg Ward [Wed, 21 Jun 2000 03:14:27 +0000 (03:14 +0000)]
Delete spurious comment.

24 years agoBuild the 'outfiles' list so 'get_outputs()' has something to return.
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.)

24 years agoRene Liebscher: when fixing up directories with an alternate root, include
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'.

24 years agoFleshed out and added a bunch of useful stuff, notably 'check_func()',
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.

24 years agoOops, import 'grok_environment_error()'.
Greg Ward [Wed, 21 Jun 2000 02:59:14 +0000 (02:59 +0000)]
Oops, import 'grok_environment_error()'.

24 years agoAdded 'preprocess()' method to CCompiler interface, and implemented
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).

24 years agoMinor grammatical fix
Andrew M. Kuchling [Wed, 21 Jun 2000 01:48:46 +0000 (01:48 +0000)]
Minor grammatical fix

24 years agoDocument .timeout() method and .typeahead() function
Andrew M. Kuchling [Wed, 21 Jun 2000 01:42:51 +0000 (01:42 +0000)]
Document .timeout() method and .typeahead() function

24 years agoAdded .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

24 years agoAdded an optional debug handler that traps and prints all unknown appleevents.
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.

24 years agoReplaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).
Jack Jansen [Tue, 20 Jun 2000 21:59:25 +0000 (21:59 +0000)]
Replaced OpenResFile calls with FSpOpenResFile calls (which are carbon-compatible).

24 years agoverify that Python raises SyntaxError for long and deeply-nested expressions
Jeremy Hylton [Tue, 20 Jun 2000 19:13:27 +0000 (19:13 +0000)]
verify that Python raises SyntaxError for long and deeply-nested expressions

24 years agoAdd new parser error code, E_OVERFLOW. This error is returned when
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."

24 years agoadd minimal test of exception use. verify that each exception can be
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.

24 years agomark SyntaxError__str__ as METH_VARARGS
Jeremy Hylton [Tue, 20 Jun 2000 18:36:26 +0000 (18:36 +0000)]
mark SyntaxError__str__ as METH_VARARGS

24 years agoPekka Pessi <Pekka.Pessi@nokia.com>:
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.

24 years agoFredrik Lundh <effbot@telia.com>:
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.

24 years agoAdded a new debug method sys.gettotalrefcount(), which returns the total number of...
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.

24 years agoMade to work under carbon.
Jack Jansen [Tue, 20 Jun 2000 07:42:23 +0000 (07:42 +0000)]
Made to work under carbon.

24 years agoUnder carbon use the GetQDGlobalxxx methods to implement Qd.qd.member access.
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.

24 years agoMade argc/argv processing work again under carbon.
Jack Jansen [Tue, 20 Jun 2000 07:40:34 +0000 (07:40 +0000)]
Made argc/argv processing work again under carbon.

24 years agoChristopher Fandrich <cfandrich@8cs.com>:
Fred Drake [Tue, 20 Jun 2000 04:54:19 +0000 (04:54 +0000)]
Christopher Fandrich <cfandrich@8cs.com>:
Fix memory leak in initializing __debug__.

24 years agoPatch from Rene Liebscher <R.Liebscher@gmx.de>, slightly modified and
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.

24 years agoFixed docstring typo, reported by Skip Montanaro <skip@mojam.com>.
Fred Drake [Mon, 19 Jun 2000 13:17:41 +0000 (13:17 +0000)]
Fixed docstring typo, reported by Skip Montanaro <skip@mojam.com>.

24 years agoPatch from Michael Hudson to fix flatten recursive data structures:
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)

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
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('').

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
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.

24 years agoFix bug when the replacement template is a callable object
Andrew M. Kuchling [Sun, 18 Jun 2000 20:27:10 +0000 (20:27 +0000)]
Fix bug when the replacement template is a callable object

24 years agoPatch from Lorenzo M. Catucci:
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.

24 years agoPatch from /F:
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.

24 years agoPatch from /F:
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.

24 years ago'get_platform()' now just returns 'sys.platform' on all platforms.
Greg Ward [Sun, 18 Jun 2000 15:45:55 +0000 (15:45 +0000)]
'get_platform()' now just returns 'sys.platform' on all platforms.

24 years agoRegenerated autoconf files. There's an extra change to config.h.in beyond
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?

24 years agoCheck for existence of mremap()
Andrew M. Kuchling [Sun, 18 Jun 2000 14:54:13 +0000 (14:54 +0000)]
Check for existence of mremap()

24 years agoSupport resizing the mapping depending on whether HAVE_MREMAP is defined
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

24 years agoMarkup consistency nits.
Fred Drake [Sun, 18 Jun 2000 05:21:21 +0000 (05:21 +0000)]
Markup consistency nits.

24 years agoAdditional tests for seek() method, written by Trent Mick
Andrew M. Kuchling [Sun, 18 Jun 2000 04:47:08 +0000 (04:47 +0000)]
Additional tests for seek() method, written by Trent Mick

24 years agoPatch from 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.

24 years agoRemoved MS_INVALIDATE flags
Andrew M. Kuchling [Sun, 18 Jun 2000 04:25:08 +0000 (04:25 +0000)]
Removed MS_INVALIDATE flags

24 years agoMake changes and clarifications suggested by Mark Hammond
Andrew M. Kuchling [Sun, 18 Jun 2000 04:17:38 +0000 (04:17 +0000)]
Make changes and clarifications suggested by Mark Hammond

24 years agoPulled the MSVC++-specific hackery out to a new method, 'prelink_hook()',
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.

24 years agoFix the size() method to return the size of the file on Unix, not the
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.

24 years agoDocumentation for the mmap module: proofreaders welcomed
Andrew M. Kuchling [Sat, 17 Jun 2000 22:39:05 +0000 (22:39 +0000)]
Documentation for the mmap module: proofreaders welcomed

24 years agoVladimir MARANGOZOV <Vladimir.Marangozov@inrialpes.fr>:
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.

24 years agoRenamed PATH_CREATED to _path_created, on the grounds that it's private and
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.

24 years agoChanged 'remove_tree()' to use the new 'grok_environment_error()' function
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.

24 years agoChanged to use the new 'grok_environment_error()' function instead of
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.

24 years agoAdded 'grok_environment_error()' function to deal with the various
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).

24 years agoBastian Kleineidam: added 'remove_tree()' function. Needed so that
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.

24 years agoFixed install directory for header files on Unix.
Greg Ward [Sat, 17 Jun 2000 01:34:45 +0000 (01:34 +0000)]
Fixed install directory for header files on Unix.

24 years agoUpdates from Marc-Andre Lemburg <mal@leburg.com> for the Unicode support.
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.

24 years agoAdded reference count information for PySequence_List().
Fred Drake [Fri, 16 Jun 2000 20:00:04 +0000 (20:00 +0000)]
Added reference count information for PySequence_List().

24 years agoDocumented PySequence_List() and PySequence_Tuple().
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.

24 years agoMichael Hudson <mwh21@cam.ac.uk>:
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".

24 years agodo_cmd_textasciitilde(): New function.
Fred Drake [Thu, 15 Jun 2000 22:41:48 +0000 (22:41 +0000)]
do_cmd_textasciitilde():  New function.

24 years agoFix markup error that hid a tilde character; reported long ago by
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>.

24 years agoMichael Hudson <mwh21@cam.ac.uk>:
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.)

24 years agoThomas Wouters <thomas@xs4all.net>:
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.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
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.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
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.

24 years agoOops, default type and creator were reversed.
Jack Jansen [Wed, 14 Jun 2000 09:12:44 +0000 (09:12 +0000)]
Oops, default type and creator were reversed.

24 years agoHook in the documentation for the unicodedata module.
Fred Drake [Tue, 13 Jun 2000 20:51:29 +0000 (20:51 +0000)]
Hook in the documentation for the unicodedata module.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
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).

24 years agoJames C. Ahlstron <jim@interet.com>:
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.

24 years agoAlso add a one-line description of the "optional" directive.
Jack Jansen [Tue, 13 Jun 2000 13:39:17 +0000 (13:39 +0000)]
Also add a one-line description of the "optional" directive.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
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.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
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.

24 years agoDocumentation for the pyexpat module.
Andrew M. Kuchling [Sun, 11 Jun 2000 02:42:07 +0000 (02:42 +0000)]
Documentation for the pyexpat module.

24 years agoApplied simplifications suggested by Greg Stein.
Andrew M. Kuchling [Sat, 10 Jun 2000 23:39:05 +0000 (23:39 +0000)]
Applied simplifications suggested by Greg Stein.

24 years agoRenamed the C extension for ncurses support from 'curses' to '_curses'.
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.)

24 years agoInstall the contents of the Lib/curses directory
Andrew M. Kuchling [Sat, 10 Jun 2000 23:08:21 +0000 (23:08 +0000)]
Install the contents of the Lib/curses directory