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().
Marc-André Lemburg [Thu, 8 Jun 2000 17:51:33 +0000 (17:51 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Updated to version 1.5. Includes typo fixes by Andrew Kuchling
and a new section on the default encoding.
Marc-André Lemburg [Thu, 8 Jun 2000 17:50:55 +0000 (17:50 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Updated to the fix in %c formatting: it now always checks for
a one character argument.
Marc-André Lemburg [Thu, 8 Jun 2000 17:49:41 +0000 (17:49 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added emulations of the C APIs in _locale to be used when the
_locale module is not enabled. They return the correct values
assuming the 'C' locale.
Greg Ward [Thu, 8 Jun 2000 14:21:23 +0000 (14:21 +0000)]
Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if
passed None.
Greg Ward [Thu, 8 Jun 2000 01:22:48 +0000 (01:22 +0000)]
Include setup.cfg in the list of default files to distribute.
Greg Ward [Thu, 8 Jun 2000 01:06:02 +0000 (01:06 +0000)]
Moved the code that prunes the file list after reading the manifest
template into a new method 'prune_file_list()', called from
'get_file_list()' rather than 'read_manifest()' -- this keeps
'read_manifest()' more general.
Deleted the redundant call to 'exclude_pattern()' in 'make_distribution()'
-- this had the same intention as 'prune_file_list()', but was incomplete
(only pruned the release tree, not the build tree) and in the wrong
place (the prune wouldn't be reflected in the manifest file).
Greg Ward [Thu, 8 Jun 2000 00:52:52 +0000 (00:52 +0000)]
Renamed 'find_defaults()' to 'add_defaults()'.
Deleted old, commented-out 'exclude_pattern()' method.
Greg Ward [Thu, 8 Jun 2000 00:46:45 +0000 (00:46 +0000)]
Docstring addition binge.
Greg Ward [Thu, 8 Jun 2000 00:35:33 +0000 (00:35 +0000)]
Fixed so we print more than just the first line of help for options with
a short form and text that wraps onto multiple lines.
Greg Ward [Thu, 8 Jun 2000 00:24:01 +0000 (00:24 +0000)]
Docstring reformatting binge.
Greg Ward [Thu, 8 Jun 2000 00:14:18 +0000 (00:14 +0000)]
Cosmetic tweaks to imports, the 'show_formats()' function, and the
'help_options' list; also added an editorial comment.
Greg Ward [Thu, 8 Jun 2000 00:08:14 +0000 (00:08 +0000)]
Made all debug output go through the 'debug_print()' method instead of
directly printing to stdout. This was a bit more work than it sounds like
it should have been:
* turned 'select_pattern()' and 'exclude_pattern()' from functions into
methods, so they can refer to 'self' to access the method
* commented out the *other* 'exclude_pattern()' method, which appears
to be vestigial code that was never cleaned up when the
'exclude_pattern()' function was created
* changed the one use of the old 'exclude_pattern()' method to use the
new 'exclude_pattern()' (same behaviour, slightly different args)
* some code and docstring reformatting
* and, of course, changed all the debugging prints to 'debug_print()' calls
Added/tweaked some regular ('self.announce()') output for better runtime
feedback.
Greg Ward [Thu, 8 Jun 2000 00:02:36 +0000 (00:02 +0000)]
Added 'debug_print()' method (driven by DEBUG global from distutils.core).
Jack Jansen [Wed, 7 Jun 2000 21:09:40 +0000 (21:09 +0000)]
Added _localemodule and exceptions.c
Jack Jansen [Wed, 7 Jun 2000 20:36:51 +0000 (20:36 +0000)]
Added _localemodule.
Jack Jansen [Wed, 7 Jun 2000 20:35:38 +0000 (20:35 +0000)]
Nav removed (it has moved to the core toolbox modules).
Jack Jansen [Wed, 7 Jun 2000 20:34:46 +0000 (20:34 +0000)]
Nav and AE have been moved to core toolbox modules: fixup dependent modules, export symbol list, etc.
Jack Jansen [Wed, 7 Jun 2000 20:14:29 +0000 (20:14 +0000)]
Moved AE module to the core toolbox set: it is needed by Nav and it isn't all _that_ huge.
Modified for new builtin exceptions.c.
Jack Jansen [Wed, 7 Jun 2000 20:13:05 +0000 (20:13 +0000)]
Moved AE module to the core toolbox set: it is needed by Nav and it isn't all _that_ huge.
Jack Jansen [Wed, 7 Jun 2000 20:11:03 +0000 (20:11 +0000)]
Minor bugfix: one uthread-dependent cleanup had "if not uthread" in stead of "if uthread".
Jack Jansen [Wed, 7 Jun 2000 20:08:43 +0000 (20:08 +0000)]
Upped default memory size to 16MB
Marc-André Lemburg [Wed, 7 Jun 2000 09:13:41 +0000 (09:13 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Changed the API names for setting the default encoding.
These are now in line with the other hooks API names
(no underscores).
Marc-André Lemburg [Wed, 7 Jun 2000 09:13:21 +0000 (09:13 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Change the default encoding to 'ascii' (it was previously
defined as UTF-8).
Note: The implementation still uses UTF-8 to implement
the buffer protocol, so C APIs will still see UTF-8. This
is on purpose: rather than fixing the Unicode implementation,
the C APIs should be made Unicode aware.
Marc-André Lemburg [Wed, 7 Jun 2000 09:12:54 +0000 (09:12 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
The locale module is turned on per default.
Marc-André Lemburg [Wed, 7 Jun 2000 09:12:30 +0000 (09:12 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added some more codec aliases. Some of them are needed by the
new locale.py encoding support.
Marc-André Lemburg [Wed, 7 Jun 2000 09:12:09 +0000 (09:12 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added support to set the default encoding of strings
at startup time to the values defined by the C locale.
The sys.setdefaultencoding() API is deleted after having
set up the encoding, so that user code cannot subsequentely
change the setting. This effectively means that only site.py
may alter the default setting.
Marc-André Lemburg [Wed, 7 Jun 2000 09:11:40 +0000 (09:11 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added a new locale name aliasing engine which also supports
locale encodings, a feature which is used by the new default
encoding support in site.py.
Marc-André Lemburg [Wed, 7 Jun 2000 09:04:05 +0000 (09:04 +0000)]
New codec which always raises an exception when used. This
codec can be used to effectively switch off string coercion
to Unicode.
Fred Drake [Wed, 7 Jun 2000 04:07:48 +0000 (04:07 +0000)]
Added preliminary documentation for the winreg module,
by Mark Hammond <markh@activestate.com>.
Limited markup & consistency revisions by FLD.
Greg Ward [Wed, 7 Jun 2000 03:00:06 +0000 (03:00 +0000)]
Patch from Rene Liebscher: this adds "--help-foo" options to list the
values that "--foo" can take for various commands: eg. what formats for
"sdist" and "bdist", what compilers for "build_ext" and "build_clib".
I have *not* reviewed this patch; I'm checking it in as-is because it also
fixes a paper-bag-over-head bug in bdist.py, and because I won't have
time to review it properly for several days: so someone else can
test it for me, instead!
Greg Ward [Wed, 7 Jun 2000 02:29:03 +0000 (02:29 +0000)]
Always look for the system config file in the Distutils module directory,
and call it "distutils.cfg" instead of "pydistutils.cfg" (personal
config files are still ".pydistutils.cfg" or "pydistutils.cfg", though).
Greg Ward [Wed, 7 Jun 2000 02:26:19 +0000 (02:26 +0000)]
Patch from Rene Liebscher:
Look for personal config file in /home/greg on Windows, too: users will have
to set /home/greg to use this, so it's not something that many people will
use. But if python-dev comes up with the "right way" to divine a
home directory on Windows, we can use that to set /home/greg and poof! --
personal Distutils config files on Windows.
Trent Mick [Tue, 6 Jun 2000 23:29:09 +0000 (23:29 +0000)]
correct case in python16.dsp to allow build with VS6
Andrew M. Kuchling [Tue, 6 Jun 2000 20:52:17 +0000 (20:52 +0000)]
Patch from Trent Mick:
Fix a small bug in posixmodule.c where a char* is being
dereferenced where it should not be.
Greg Ward [Tue, 6 Jun 2000 02:57:07 +0000 (02:57 +0000)]
First crack at the Distutils "config" command. Unlike other commands, this
one doesn't *do* anything by default; it's just there as a conduit for data
(eg. include dirs, libraries) from the user to the "build" commands.
However, it provides a couple of Autoconf-ish methods ('try_compile()',
'try_link()', 'try_run()') that derived, per-distribution "config" commands
can use to poke around the target system and see what's available.
Initial experimenst with mxDateTime indicate that higher-level methods are
necessary: analogs of Autoconf's AC_CHECK_HEADER, AC_CHECK_LIB will be
needed too (and that's just to probe the C/C++ system: how to probe the
Python system is wide open, and someday we'll have to worry about probing a
Java system too).
Greg Ward [Tue, 6 Jun 2000 02:52:36 +0000 (02:52 +0000)]
Fix 'reinitialize_command()' so it resets the 'have_run' flag for the
command being reinitialized to false.
Greg Ward [Tue, 6 Jun 2000 02:51:38 +0000 (02:51 +0000)]
Support for multiple distribution formats in one run.
Greg Ward [Tue, 6 Jun 2000 02:18:13 +0000 (02:18 +0000)]
'get_outputs()' now returns an empty list instead of None.
Jack Jansen [Mon, 5 Jun 2000 08:35:47 +0000 (08:35 +0000)]
Added lib-tk to the standard sys.path initializer.
Jack Jansen [Sun, 4 Jun 2000 22:11:10 +0000 (22:11 +0000)]
Removed assorted old ifdefs.
Jack Jansen [Sun, 4 Jun 2000 22:10:25 +0000 (22:10 +0000)]
Removed support for very old CodeWarrior runtimes.
Jack Jansen [Sun, 4 Jun 2000 22:07:37 +0000 (22:07 +0000)]
Removed SYMANTEC_CFM68K support.
Jack Jansen [Sun, 4 Jun 2000 22:02:02 +0000 (22:02 +0000)]
Removed USE_STDWIN support.
Jack Jansen [Sun, 4 Jun 2000 21:56:05 +0000 (21:56 +0000)]
Removed THINK_C support.
Jack Jansen [Sun, 4 Jun 2000 21:53:12 +0000 (21:53 +0000)]
Define USE_GUSI2, not USE_GUSI1. PythonStandalone still doesn't compile due to tk issues, though, but it isn't important right now.
Jack Jansen [Sun, 4 Jun 2000 21:51:36 +0000 (21:51 +0000)]
Removed THINK_C support.
Added a CARBON indicator to the version string.
Greg Ward [Sun, 4 Jun 2000 15:30:35 +0000 (15:30 +0000)]
Fixed syntax error.
Half-fixed RPM 2 compatibility:added 'rpm_base' option, which must be set
(to eg. /usr/src/redhat on a stock Red Hat system) if rpm2_mode is on.
Still not quite working, though.
Greg Ward [Sun, 4 Jun 2000 15:12:51 +0000 (15:12 +0000)]
Use 'ensure_string_list()' for 'formats' option, so that it can be
spelled sensibly in a config file.
Greg Ward [Sun, 4 Jun 2000 15:00:34 +0000 (15:00 +0000)]
Patch from Harry Henry Gebel:
Fills in question marks in help
Reads scripts in from files rather than strings
Adds RPM 2 compatibility mode (untested). Use of this mode requires that
--bdist-base be specified because bdist_rpm has no way of detecting where
RPM wants to find spec files and source files. An unmodified RedHat 5.0
system would require '--bdist-base=/usr/src/RedHat'. (You would also have
to be root.) If the rpmrc file has been modified to allow RPMs to be built
by normal users then --build-base would need to be changed accordingly.
Formats the changelog.
GPW: tweaked formatting, added some editorial comments.
Greg Ward [Sun, 4 Jun 2000 14:21:28 +0000 (14:21 +0000)]
Added the 'ensure_*' methods from bdist_rpm; refactored 'ensure_filename()'
and added 'ensure_dirname()'.
Greg Ward [Sun, 4 Jun 2000 14:20:57 +0000 (14:20 +0000)]
Removed the 'ensure_*' methods -- they're just too handy too keep in one
command class, so they're now in the Command base class.
Greg Ward [Sun, 4 Jun 2000 13:42:52 +0000 (13:42 +0000)]
Renamed 'modules' option to 'py_modules', for consistency with Distribution
(and in order to generate a more sensible error message cleanly).
Andrew M. Kuchling [Sat, 3 Jun 2000 20:43:43 +0000 (20:43 +0000)]
Use PyArg_ParseTuple and specify the method names, following a suggestion
from Greg Stein
Andrew M. Kuchling [Sat, 3 Jun 2000 19:41:42 +0000 (19:41 +0000)]
Add missing PyArg_NoArgs() calls to methods that didn't take arguments
(Pointed out by Moshe Zadka)
Andrew M. Kuchling [Sat, 3 Jun 2000 03:06:58 +0000 (03:06 +0000)]
Latex formatting fixes
Andrew M. Kuchling [Sat, 3 Jun 2000 02:52:40 +0000 (02:52 +0000)]
Patches from Moshe, w/ AMK's revisions
Wrote Unicode section
Greg Ward [Sat, 3 Jun 2000 01:03:55 +0000 (01:03 +0000)]
Patch from Harry Henry Gebel: fixes a bit of code that slipped by my
overhaul last night.
Greg Ward [Sat, 3 Jun 2000 01:02:06 +0000 (01:02 +0000)]
Catch DistutilSetupError from the Distribution constructor.
Greg Ward [Sat, 3 Jun 2000 00:44:30 +0000 (00:44 +0000)]
Added a bunch of new globals in '_init_mac()' -- these will be needed to
support the forthcoming Cygwin/Mingw32 GCC-on-Windows patch.
Standardized CVS id line.
Jack Jansen [Fri, 2 Jun 2000 21:40:07 +0000 (21:40 +0000)]
First version of the project that produces a working Carbon binary. The binary has only been tested on MacOS9, so far. This project needs CW IDE 4.1b4 or later.
Jack Jansen [Fri, 2 Jun 2000 21:38:19 +0000 (21:38 +0000)]
Revived various of the compatability routines and made them Carbon-compliant. This is needed because the initial carbon-python does not use GUSI.
Jack Jansen [Fri, 2 Jun 2000 21:36:39 +0000 (21:36 +0000)]
Removed hfsrunning() macro. This means MacPython won't run on MacOS 5 (oops, System 5) or earlier anymore:-)
Jack Jansen [Fri, 2 Jun 2000 21:35:07 +0000 (21:35 +0000)]
Made the core toolbox modules carbon-compatible using the new greylist feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open.
Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
Jack Jansen [Fri, 2 Jun 2000 21:29:59 +0000 (21:29 +0000)]
Replaced GetFInfo and SetFInfo calls with FspGetFInfo and FspSetFInfo calls, which are carbon-compatible.
Jack Jansen [Fri, 2 Jun 2000 21:28:52 +0000 (21:28 +0000)]
Removed (within an #ifdef) Carbon-incompatabilities:
- Don't call all the toolbox init routines.
- No balloon help, so removed help code from the initial dialog.
Jack Jansen [Fri, 2 Jun 2000 21:27:11 +0000 (21:27 +0000)]
Removed (within an #ifdef) Carbon-incompatabilities:
- Use TickCount() in stead of LMGetTicks()
- Don't use xxxGetFile event filter
- Don't call SystemTask or HandleSysWindowEvent (is this also automatically handled under os9??)
- Don't scan event queue for cmd-. (to be fixed at some point).
Jack Jansen [Fri, 2 Jun 2000 21:23:09 +0000 (21:23 +0000)]
Fixed callback function arguments to be carbon-compatible.
(Temporarily?) removed call to ProcessHighLevelEvent until we find out how to do this (Carbon only).
Jack Jansen [Fri, 2 Jun 2000 21:19:16 +0000 (21:19 +0000)]
Config file for PythonStandCarbon (small non-shared MacPython for Carbon).