]> granicus.if.org Git - python/log
python
24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Wed, 28 Jun 2000 17:50:51 +0000 (17:50 +0000)]
Trent Mick <trentm@activestate.com>:
Testing: test_array.py was also extended to check that one can set the
full range of values for each of the integral signed and unsigned
array types.

This closes SourceForge patch #100506.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Wed, 28 Jun 2000 17:49:30 +0000 (17:49 +0000)]
Trent Mick <trentm@activestate.com>:

The cause: Relatively recent (last month) patches to getargs.c added
overflow checking to the PyArg_Parse*() integral formatters thereby
restricting 'b' to unsigned char value and 'h','i', and 'l' to signed
integral values (i.e. if the incoming value is outside of the
specified bounds you get an OverflowError, previous it silently
overflowed).

The problem: This broke the array module (as Fredrik pointed out)
because *its* formatters relied on the loose allowance of signed and
unsigned ranges being able to pass through PyArg_Parse*()'s
formatters.

The fix: This patch fixes the array module to work with the more
strict bounds checking now in PyArg_Parse*().

How: If the type signature of a formatter in the arraymodule exactly
matches one in PyArg_Parse*(), then use that directly. If there is no
equivalent type signature in PyArg_Parse*() (e.g. there is no unsigned
int formatter in PyArg_Parse*()), then use the next one up and do some
extra bounds checking in the array module.

This partially closes SourceForge patch #100506.

24 years agoThomas Wouters <thomas@xs4all.net>:
Fred Drake [Wed, 28 Jun 2000 17:27:48 +0000 (17:27 +0000)]
Thomas Wouters <thomas@xs4all.net>:
Documentation updates related to the addition of openpty() and forkpty().

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:53:16 +0000 (16:53 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Perfect hash table generator. Outputs a Python extension module
which provides access to the hash table (which is stored in static
C data) using custom code.

This module can currently only generates code for the ucnhash
module, but can easily be adapted to produce perfect hash tables
for other tasks where fast lookup in large tables is needed.

By Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:49:29 +0000 (16:49 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Generator for the new ucnhash module (ucnhash.h|c). Uses perfect_hash.py
to create the ucnhash module.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:48:05 +0000 (16:48 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Utility extension module needed by perfect_hash.py

By Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:43:35 +0000 (16:43 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Patch to the standard unicode-escape codec which dynamically
loads the Unicode name to ordinal mapping from the module
ucnhash.

By Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:42:39 +0000 (16:42 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added new ucnhash module by Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:42:14 +0000 (16:42 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added new ucnhash module.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:41:46 +0000 (16:41 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Updated test output.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:41:23 +0000 (16:41 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added tests for the new Unicode character name support in the
standard unicode-escape codec.

24 years agoThomas Wouters <thomas@xs4all.net>:
Fred Drake [Wed, 28 Jun 2000 16:40:38 +0000 (16:40 +0000)]
Thomas Wouters <thomas@xs4all.net>:

This patch adds the openpty() and forkpty() library calls to posixmodule.c,
when they are available on the target
system. (glibc-2.1-based Linux systems, FreeBSD and BSDI at least, probably
the other BSD-based systems as well.)

Lib/pty.py is also rewritten to use openpty when available, but falls
back to the old SGI method or the "manual" BSD open-a-pty
code. Openpty() is necessary to use the Unix98 ptys under Linux 2.2,
or when using non-standard tty names under (at least) BSDI, which is
why I needed it, myself ;-) forkpty() is included for symmetry.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:40:10 +0000 (16:40 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
MSVC project file for the new module ucnhash. This may have to
be added to pcbuild.dsw with an dependancy on python16.

By Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:38:56 +0000 (16:38 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
New ucnhash module by Bill Tutt. This module contains the hash
table needed to map Unicode character names to Unicode ordinals
and is loaded on-the-fly by the standard unicode-escape codec.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:37:24 +0000 (16:37 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Exports the C API of the new ucnhash module.

By Bill Tutt.

24 years agoEnhanced memory-reference information in the description of Py_BuildValue(),
Fred Drake [Wed, 28 Jun 2000 16:15:08 +0000 (16:15 +0000)]
Enhanced memory-reference information in the description of Py_BuildValue(),
based on response from Frank Stajano <fstajano@uk.research.att.com>.

24 years agoAdded documentation for PyOS_AfterFork().
Fred Drake [Wed, 28 Jun 2000 15:53:13 +0000 (15:53 +0000)]
Added documentation for PyOS_AfterFork().

24 years agoAdded memory-reference information to the description of Py_BuildValue(),
Fred Drake [Wed, 28 Jun 2000 15:32:29 +0000 (15:32 +0000)]
Added memory-reference information to the description of Py_BuildValue(),
based on comments from Frank Stajano <fstajano@uk.research.att.com>.

24 years agoAdded the atexit module and documentation from Skip Montanaro
Fred Drake [Wed, 28 Jun 2000 15:07:31 +0000 (15:07 +0000)]
Added the atexit module and documentation from Skip Montanaro
<skip@mojam.com>.  Revisions to the markup to make it pass LaTeX, added
an index entry and a reference from the sys.exitfunc documentation.

This closes SourceForge patch #100620.

24 years agotypos fixed by Rob Hooft
Jeremy Hylton [Wed, 28 Jun 2000 14:48:01 +0000 (14:48 +0000)]
typos fixed by Rob Hooft

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 08:11:47 +0000 (08:11 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Better error message for "1 in unicodestring". Submitted
by Andrew Kuchling.

24 years agoChanged the #error to a #warning when checking gcc versions, and
Fred Drake [Wed, 28 Jun 2000 03:54:48 +0000 (03:54 +0000)]
Changed the #error to a #warning when checking gcc versions, and
noted the minimum recommended version in the message.

24 years agoAdded section on cycle GC
Andrew M. Kuchling [Wed, 28 Jun 2000 02:16:00 +0000 (02:16 +0000)]
Added section on cycle GC
Various minor fixes

24 years agoLyle Johnson: pass in temp directory as 'build_temp' argument when calling
Greg Ward [Wed, 28 Jun 2000 01:29:37 +0000 (01:29 +0000)]
Lyle Johnson: pass in temp directory as 'build_temp' argument when calling
'link_shared_object()'.

24 years agoLyle Johnson: added 'build_temp' parameter to 'link_shared_{lib,object}()'
Greg Ward [Wed, 28 Jun 2000 01:29:09 +0000 (01:29 +0000)]
Lyle Johnson: added 'build_temp' parameter to 'link_shared_{lib,object}()'
methods (but not 'link_executable()', hmmm).  Currently only used by
BCPPCompiler; it's a dummy parameter for UnixCCompiler and MSVCCompiler.

Also added 'bcpp' to compiler table used by 'new_compiler()'.

24 years agoTypo fix.
Greg Ward [Wed, 28 Jun 2000 01:25:27 +0000 (01:25 +0000)]
Typo fix.

24 years agoLyle Johnson's interface to Borland C++, with a few editorial comments by me.
Greg Ward [Wed, 28 Jun 2000 01:20:35 +0000 (01:20 +0000)]
Lyle Johnson's interface to Borland C++, with a few editorial comments by me.
Two major points:
  * lots of overlap with MSVCCompiler; the common code really should be
    factored out into a base class, say WindowsCCompiler
  * it doesn't work: weird problem spawning the linker (see comment for
    details)

24 years agoFixed to use 'reinitialize_command()' to fetch "install" and "install_lib"
Greg Ward [Wed, 28 Jun 2000 00:56:20 +0000 (00:56 +0000)]
Fixed to use 'reinitialize_command()' to fetch "install" and "install_lib"
  command objects.
Various formatting tweaks, typo fixes in comments.

24 years agoFixed to use 'reinitialize_command()' to fetch the "install" command object.
Greg Ward [Wed, 28 Jun 2000 00:36:40 +0000 (00:36 +0000)]
Fixed to use 'reinitialize_command()' to fetch the "install" command object.

24 years agoFixes for compiling on Tru64.
Andrew M. Kuchling [Tue, 27 Jun 2000 21:49:47 +0000 (21:49 +0000)]
Fixes for compiling on Tru64.
Define a STRICT_SYSV_CURSES macro on SGI, Sun, and Tru64, to mark systems
that don't support some features.

24 years agoFix two typos (, instead of ;)
Andrew M. Kuchling [Tue, 27 Jun 2000 15:01:10 +0000 (15:01 +0000)]
Fix two typos (, instead of ;)

24 years agoFix comment typo noticed by Rob Hooft
Andrew M. Kuchling [Tue, 27 Jun 2000 14:15:29 +0000 (14:15 +0000)]
Fix comment typo noticed by Rob Hooft

24 years agoChanged obsolete e-mail alias
Andrew M. Kuchling [Tue, 27 Jun 2000 03:16:04 +0000 (03:16 +0000)]
Changed obsolete e-mail alias

24 years agoAdded support for mouse functions: mousemask(), mouseinterval(),
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.

24 years agoOops, only do that AIX hack on AIX.
Greg Ward [Tue, 27 Jun 2000 01:59:43 +0000 (01:59 +0000)]
Oops, only do that AIX hack on AIX.

24 years agoFixed LDSHARED for AIX, based on a patch by Rene Liebscher.
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.

24 years agoA-ha! Read Thomas' patch a little more carefully and figured it out:
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).

24 years agoThomas Heller: added --swig-cpp option and fixed silly typos in SWIG support.
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.

24 years agoThomas Heller's "bdist_wininst" command (unreviewed, untested).
Greg Ward [Tue, 27 Jun 2000 01:24:38 +0000 (01:24 +0000)]
Thomas Heller's "bdist_wininst" command (unreviewed, untested).

24 years agoInfrastructure support for the "bdist_wininst" command.
Greg Ward [Tue, 27 Jun 2000 01:24:07 +0000 (01:24 +0000)]
Infrastructure support for the "bdist_wininst" command.

24 years agoAdded 'include_dirs' parameters all over the place.
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.

24 years agoSync to ESR's current version
Andrew M. Kuchling [Tue, 27 Jun 2000 00:53:12 +0000 (00:53 +0000)]
Sync to ESR's current version

24 years agoDrop back to old version of wrapper(); ESR reports that it broke things,
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.

24 years agoChange pyexpat test suite to exercise the .returns_unicode attribute,
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.

24 years agoAdded support for passing Unicode strings to Expat handlers by default.
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.

24 years agoDcoumentation for ascii.py. I've changed two references from ascii to
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.

24 years agoAdded two modules for ASCII characters and a simple editing form (ESR)
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)

24 years agoAdd wrapper for initscr() to copy the ACS_ and LINES,COLS bindings
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

24 years agonow that imputil is in the main Python repository, clean up the header
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

24 years agoFredrik Lundh: get rid of warning in pythonrun.c
Guido van Rossum [Mon, 26 Jun 2000 14:37:53 +0000 (14:37 +0000)]
Fredrik Lundh: get rid of warning in pythonrun.c

24 years agoinitial commit of a new HTTP library, supporting HTTP/1.1 and persistent
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.

24 years agoFix typos and errors noticed by Skip Montanaro
Andrew M. Kuchling [Sun, 25 Jun 2000 14:32:48 +0000 (14:32 +0000)]
Fix typos and errors noticed by Skip Montanaro

24 years agoupdate output file to reflect new test of exception object str-ness
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

24 years agoMinor wording tweaks.
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...).

24 years agoDefine the 'executables' class attribute so the CCompiler constructor
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.

24 years agoRemoved some debugging code that slipped into the last checkin.
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.

24 years agoFixed the "pre-link hook" so it actually works, mainly by renaming it
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()'.

24 years agoAdded PreprocessError and UnknownFileError (both used by CCompiler).
Greg Ward [Sun, 25 Jun 2000 02:12:14 +0000 (02:12 +0000)]
Added PreprocessError and UnknownFileError (both used by CCompiler).

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."