]> granicus.if.org Git - python/log
python
25 years agoupdated copyright string
Just van Rossum [Thu, 23 Dec 1999 21:49:44 +0000 (21:49 +0000)]
updated copyright string

25 years agoImplement the other easy thing: repr() of a float now uses %.17g,
Guido van Rossum [Thu, 23 Dec 1999 19:00:28 +0000 (19:00 +0000)]
Implement the other easy thing: repr() of a float now uses %.17g,
while str() uses %.12g as before.

25 years agoAdded item about specific missing entries in the C API manual.
Fred Drake [Thu, 23 Dec 1999 17:22:13 +0000 (17:22 +0000)]
Added item about specific missing entries in the C API manual.

25 years agochanged the "method find" algorithm so the function/class/method popup menu also...
Just van Rossum [Thu, 23 Dec 1999 15:46:57 +0000 (15:46 +0000)]
changed the "method find" algorithm so the function/class/method popup menu also works with space-indented source files -- jvr

25 years agolong_format(): Now takes a third parameter, addL; iff true, a
Fred Drake [Thu, 23 Dec 1999 15:41:28 +0000 (15:41 +0000)]
long_format():  Now takes a third parameter, addL; iff true, a
                trailing 'L' is appended to the representation,
                otherwise not.

                All existing call sites are modified to pass true for
                addL.

                Remove incorrect statement about external use of this
                function from elsewhere; it's static!

long_str():     Handler for the tp_str slot in the type object.
                Identical to long_repr(), but passes false as the addL
                parameter of long_format().

25 years agoRevise tests to support str(<long int object>) not appending "L".
Fred Drake [Thu, 23 Dec 1999 15:36:42 +0000 (15:36 +0000)]
Revise tests to support str(<long int object>) not appending "L".

25 years agoAdded a reference to oldPICTbrowse.py.
Jack Jansen [Thu, 23 Dec 1999 14:45:41 +0000 (14:45 +0000)]
Added a reference to oldPICTbrowse.py.

25 years agoConverted to Appearance and using a List control in stead of manually creating the...
Jack Jansen [Thu, 23 Dec 1999 14:45:02 +0000 (14:45 +0000)]
Converted to Appearance and using a List control in stead of manually creating the List and putting it in a useritem. The old version is in oldPICTbrowse, for documentary purposes.

25 years agoPartially converted to Appearance, the dialog still has the old ugly layout and
Jack Jansen [Thu, 23 Dec 1999 14:34:07 +0000 (14:34 +0000)]
Partially converted to Appearance, the dialog still has the old ugly layout and
interaction.

25 years agoConverted to Appearance.
Jack Jansen [Thu, 23 Dec 1999 14:33:20 +0000 (14:33 +0000)]
Converted to Appearance.

25 years agoUnified handle-conversion scheme to
Jack Jansen [Thu, 23 Dec 1999 14:32:06 +0000 (14:32 +0000)]
Unified handle-conversion scheme to
  handle = Ctl.as_Resource(ctl)
  ctl = Ctl.as_Control(handle)
and similarly for List, Menu, TE. The old handle.as_Control() methods are
still there for backward compatability.

25 years agoAdjusted apply() docstring based on comments from Gerrit Holl
Fred Drake [Thu, 23 Dec 1999 14:16:55 +0000 (14:16 +0000)]
Adjusted apply() docstring based on comments from Gerrit Holl
<gerrit.holl@pobox.com>.

25 years agoDon't call len() if the value is already cached! Caught by Gerrit
Fred Drake [Wed, 22 Dec 1999 21:52:32 +0000 (21:52 +0000)]
Don't call len() if the value is already cached!  Caught by Gerrit
Holl <gerrit.holl@pobox.com>.

25 years agoFor ZlibError and ZLIB_VERSION, only attempt to add entry to the
Fred Drake [Wed, 22 Dec 1999 16:13:54 +0000 (16:13 +0000)]
For ZlibError and ZLIB_VERSION, only attempt to add entry to the
module dict if the inserted object isn't NULL (basic defensive
programming!).

25 years agoCleanup patches from Greg Stein:
Guido van Rossum [Wed, 22 Dec 1999 14:09:35 +0000 (14:09 +0000)]
Cleanup patches from Greg Stein:

* in import.c, #ifdef out references to dynamic loading based on
  HAVE_DYNAMIC_LOADING

* clean out the platform-specific crud from importdl.c.
  [ maybe fold this function into import.c and drop the importdl.c file? Greg.]

* change GetDynLoadFunc's "funcname" parameter to "shortname". change
  "name" to "fqname" for clarification.

* each GetDynLoadFunc now creates its own funcname value.

  WARNING: as I mentioned previously, we may run into an issue with a
  missing "_" on some platforms. Testing will show this pretty quickly,
  however.

* move pathname munging into dynload_shlib.c

25 years agoRemoved a couple of items that got done(!).
Fred Drake [Tue, 21 Dec 1999 23:02:38 +0000 (23:02 +0000)]
Removed a couple of items that got done(!).

Moved a couple to a new "Not worth it" section (explanations were
already there).

25 years agoDocument GetoptError and label error an alias.
Fred Drake [Tue, 21 Dec 1999 22:50:05 +0000 (22:50 +0000)]
Document GetoptError and label error an alias.

25 years agoContribution from Gerrit Holl:
Guido van Rossum [Tue, 21 Dec 1999 22:38:40 +0000 (22:38 +0000)]
Contribution from Gerrit Holl:

This patch changes the string-based exceptions to class-based
exceptions, so that you can fetch the unknown option as an
attribute.  As far as I know, it is backward compatible.

[The new exception class is called GetoptError; the name error is an
alias for compatibility.]

25 years agoDocument 1.5.2+ aspects of the NotANumber exception. (Note that this
Fred Drake [Tue, 21 Dec 1999 18:45:16 +0000 (18:45 +0000)]
Document 1.5.2+ aspects of the NotANumber exception.  (Note that this
is in the development branch, not the maintenance branch!)

25 years agoDocument that the |mode| parameter to open() is optional and explain how
Fred Drake [Tue, 21 Dec 1999 18:31:30 +0000 (18:31 +0000)]
Document that the |mode| parameter to open() is optional and explain how
the default value is determined.

25 years agoVladimir Marangozov:
Guido van Rossum [Tue, 21 Dec 1999 15:55:47 +0000 (15:55 +0000)]
Vladimir Marangozov:

Here's a patch that avoids a warning caused by the "const char* pathname"
declaration for _PyImport_GetDynLoadFunc (in dynload_aix). The "aix_load"
function's 1st arg is prototyped as "char *pathname".

25 years agoAdded setargv.obj to the link link.
Guido van Rossum [Mon, 20 Dec 1999 23:02:41 +0000 (23:02 +0000)]
Added setargv.obj to the link link.
This causes * etc. on the command line to be expanded, link on Unix.

25 years agoAdd dynload_win.c to project.
Guido van Rossum [Mon, 20 Dec 1999 23:00:10 +0000 (23:00 +0000)]
Add dynload_win.c to project.

25 years agoAdd HAVE_DYNAMIC_LOADING.
Guido van Rossum [Mon, 20 Dec 1999 22:57:41 +0000 (22:57 +0000)]
Add HAVE_DYNAMIC_LOADING.
Define Py_DEBUG when compiling in debug mode.  (Is that a good idea?)

25 years agoFor Windows, need to add #include <windows.h>.
Guido van Rossum [Mon, 20 Dec 1999 22:55:03 +0000 (22:55 +0000)]
For Windows, need to add #include <windows.h>.

25 years agoFix typo in docstring: wbites -> wbits
Andrew M. Kuchling [Mon, 20 Dec 1999 22:13:38 +0000 (22:13 +0000)]
Fix typo in docstring: wbites -> wbits

25 years agoChanges to auto-detect the correct dynload_<platform>.c file.
Guido van Rossum [Mon, 20 Dec 1999 21:27:22 +0000 (21:27 +0000)]
Changes to auto-detect the correct dynload_<platform>.c file.
NOTE: Windows, Mac and OS/2 build procedures must be adapted manually!

This is part of a set of patches by Greg Stein.

25 years agoAdd line for HAVE_DYNAMIC_LOADING (result of editing acconfig.h).
Guido van Rossum [Mon, 20 Dec 1999 21:25:59 +0000 (21:25 +0000)]
Add line for HAVE_DYNAMIC_LOADING (result of editing acconfig.h).

This is part of a set of patches by Greg Stein.

25 years agoDefine HAVE_DYNAMIC_LOADING.
Guido van Rossum [Mon, 20 Dec 1999 21:24:37 +0000 (21:24 +0000)]
Define HAVE_DYNAMIC_LOADING.

This is part of a set of patches by Greg Stein.

25 years agoSupport for selecting the correct dynload_<platform>.c file.
Guido van Rossum [Mon, 20 Dec 1999 21:24:09 +0000 (21:24 +0000)]
Support for selecting the correct dynload_<platform>.c file.

This is part of a set of patches by Greg Stein.

25 years agoIn _PyImport_Init(), dynamically construct the table of legal suffixes
Guido van Rossum [Mon, 20 Dec 1999 21:23:41 +0000 (21:23 +0000)]
In _PyImport_Init(), dynamically construct the table of legal suffixes
from two static tables (one standard, one provided by the platform's
dynload_*.c variant).

This is part of a set of patches by Greg Stein.

25 years agoSome rearrangements for the importdl.c restructuring.
Guido van Rossum [Mon, 20 Dec 1999 21:22:24 +0000 (21:22 +0000)]
Some rearrangements for the importdl.c restructuring.

This is part of a set of patches by Greg Stein.

25 years agoMoved most of the platform-specific code to dynload_<platform>.c files.
Guido van Rossum [Mon, 20 Dec 1999 21:20:42 +0000 (21:20 +0000)]
Moved most of the platform-specific code to dynload_<platform>.c files.
(A few nite remain, these will probably disappear soon.)

This is part of a set of patches by Greg Stein.

25 years agoThe old platform-specific contents of importdl.c, broken down into one
Guido van Rossum [Mon, 20 Dec 1999 21:18:49 +0000 (21:18 +0000)]
The old platform-specific contents of importdl.c, broken down into one
file per platform (really: per style of Dl API; e.g. all platforms
using dlopen() are grouped together in dynload_shlib.c.).

This is part of a set of patches by Greg Stein.

25 years agoThe cleanup code in com-init() at label fail_0000 should remove
Guido van Rossum [Mon, 20 Dec 1999 20:40:12 +0000 (20:40 +0000)]
The cleanup code in com-init() at label fail_0000 should remove
c_varnames, not c_lnotab.

25 years agoSupport keys that have a Handle as parameter, by using the new GetControlDataHandle...
Jack Jansen [Sun, 19 Dec 1999 00:06:52 +0000 (00:06 +0000)]
Support keys that have a Handle as parameter, by using the new GetControlDataHandle and SetControlDataHandle methods.

25 years agoAdded {Get,Set}ControlDataHandle methods. These are {Get,Set}ControlData for
Jack Jansen [Sun, 19 Dec 1999 00:05:50 +0000 (00:05 +0000)]
Added {Get,Set}ControlDataHandle methods. These are {Get,Set}ControlData for
keys that expect a Handle, and have a ResObj as parameter.

25 years agoStandardFile compatability routines. For the time being calling macfsn._install()
Jack Jansen [Sat, 18 Dec 1999 16:57:33 +0000 (16:57 +0000)]
StandardFile compatability routines. For the time being calling macfsn._install()
will install these in macfs (if Navigation is available).

25 years agoIncrease applet minimal memory size by a megabyte.
Jack Jansen [Sat, 18 Dec 1999 16:56:16 +0000 (16:56 +0000)]
Increase applet minimal memory size by a megabyte.

25 years agoAdded a line about passing None as eventProc to the docstring to get movable
Jack Jansen [Fri, 17 Dec 1999 23:01:44 +0000 (23:01 +0000)]
Added a line about passing None as eventProc to the docstring to get movable
dialogs.

25 years agoPyMac_BuildOptStr255 and PyMac_BuildFSSpec added to exports.
Jack Jansen [Fri, 17 Dec 1999 23:00:49 +0000 (23:00 +0000)]
PyMac_BuildOptStr255 and PyMac_BuildFSSpec added to exports.

25 years agoAdded PyMac_BuildOptStr255, which returns None on a null pointer.
Jack Jansen [Fri, 17 Dec 1999 17:15:50 +0000 (17:15 +0000)]
Added PyMac_BuildOptStr255, which returns None on a null pointer.

25 years agoFinished (I think), but only very lightly tested. Should now have full interface...
Jack Jansen [Fri, 17 Dec 1999 17:14:28 +0000 (17:14 +0000)]
Finished (I think), but only very lightly tested. Should now have full interface: all
calls, callbacks, arguments, etc. Also added docstrings.

25 years agoProject for Nav module.
Jack Jansen [Fri, 17 Dec 1999 17:12:41 +0000 (17:12 +0000)]
Project for Nav module.

25 years agoAdded Nav
Jack Jansen [Thu, 16 Dec 1999 22:22:00 +0000 (22:22 +0000)]
Added Nav

25 years agoAllow keyword arguments, and the dialog is now actually shown. No way to
Jack Jansen [Thu, 16 Dec 1999 22:21:30 +0000 (22:21 +0000)]
Allow keyword arguments, and the dialog is now actually shown. No way to
get at the result yet, though:-)

25 years agoAdded Nav module
Jack Jansen [Thu, 16 Dec 1999 22:20:52 +0000 (22:20 +0000)]
Added Nav module

25 years agoPatch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum [Thu, 16 Dec 1999 17:52:08 +0000 (17:52 +0000)]
Patch and new file by Geoff Furnish for C++ compilation.

25 years agoPatch by Geoff Furnish to make compiling with C++ more gentle.
Guido van Rossum [Thu, 16 Dec 1999 17:50:52 +0000 (17:50 +0000)]
Patch by Geoff Furnish to make compiling with C++ more gentle.
(The configure script is regenerated, not from his patch.)

25 years agoRegenerated after new acconfig.h.
Guido van Rossum [Thu, 16 Dec 1999 17:49:27 +0000 (17:49 +0000)]
Regenerated after new acconfig.h.

25 years agoCorrect stupid typo (HAVE_GETHOSTBTNAME).
Guido van Rossum [Thu, 16 Dec 1999 17:49:02 +0000 (17:49 +0000)]
Correct stupid typo (HAVE_GETHOSTBTNAME).

25 years agoNavigation Services module. Started from scratch, as Joe's module exported too little...
Jack Jansen [Thu, 16 Dec 1999 16:54:55 +0000 (16:54 +0000)]
Navigation Services module. Started from scratch, as Joe's module exported too little for my needs.

25 years agoWhen emitting a command-line error message, *say* it's an error.
Greg Ward [Thu, 16 Dec 1999 01:19:05 +0000 (01:19 +0000)]
When emitting a command-line error message, *say* it's an error.

25 years agoCatch errors from 'rmtree' and emit a warning.
Greg Ward [Thu, 16 Dec 1999 01:14:15 +0000 (01:14 +0000)]
Catch errors from 'rmtree' and emit a warning.

25 years agoDocument getgroups(), getlogin(), fpathconf(), pathconf(),
Fred Drake [Wed, 15 Dec 1999 19:39:04 +0000 (19:39 +0000)]
Document getgroups(), getlogin(), fpathconf(), pathconf(),
pathconf_names, confstr(), confstr_names, sysconf(), sysconf_names.

25 years agoRip out the code to check the ordering of the tables used to map
Fred Drake [Wed, 15 Dec 1999 18:31:10 +0000 (18:31 +0000)]
Rip out the code to check the ordering of the tables used to map
strings to integers for the *conf*() functions.

Added code to sort the tables at module initialization.  Three
dictionaries, confstr_names, sysconf_names, and pathconf_names, are
added to the module as well.  These map known configuration setting
names to the numeric value which is used to represent the setting in
the system call.  This code is always called.

Updated related comments.

25 years agoFixed menu glyph stuff.
Jack Jansen [Wed, 15 Dec 1999 15:45:23 +0000 (15:45 +0000)]
Fixed menu glyph stuff.
Use MenuEvent in stead of MenuKey.

25 years agoAdded kind resources (in US-english and dutch, sigh).
Jack Jansen [Wed, 15 Dec 1999 15:43:24 +0000 (15:43 +0000)]
Added kind resources (in US-english and dutch, sigh).

25 years agoAdded table entries for Irix 6.5 names for confstr()/sysconf()/
Fred Drake [Wed, 15 Dec 1999 15:34:33 +0000 (15:34 +0000)]
Added table entries for Irix 6.5 names for confstr()/sysconf()/
pathconf() names, from Sjoerd.

Added code to verify that these tables are properly ordered, only
included and used when CHECK_CONFNAME_TABLES is defined.  This is only
needed to test the tables, so I haven't enabled this by default.

25 years agoFixed buglet in Application.do_suspendresume(), it took the wrong flag to determine...
Just van Rossum [Wed, 15 Dec 1999 14:55:16 +0000 (14:55 +0000)]
Fixed buglet in Application.do_suspendresume(), it took the wrong flag to determine suspend/resume -- jvr

25 years agodo_strip(): Fixed cut-and-paste error; this function should check for
Barry Warsaw [Wed, 15 Dec 1999 02:22:52 +0000 (02:22 +0000)]
do_strip(): Fixed cut-and-paste error; this function should check for
zero arguments (found by Marc Lemburg).

25 years agoOnly set msg.fp to None when there are no extra arguments; if there
Guido van Rossum [Tue, 14 Dec 1999 22:18:37 +0000 (22:18 +0000)]
Only set msg.fp to None when there are no extra arguments; if there
are, we must keep the file around so we can print the body.

25 years agoAdded support for getlogin(); does *not* use getlogin_r() where
Fred Drake [Tue, 14 Dec 1999 21:25:03 +0000 (21:25 +0000)]
Added support for getlogin(); does *not* use getlogin_r() where
available since the interface is poorly defined on at least one major
platform (Solaris).

Moved table of constant names for fpathconf() & pathconf() into the
conditional that defines the conv_path_confname() helper; Mark Hammond
reported that defining the table when none of the constants were
defined causes the compiler to complain (won't allow 0-length array,
imagine that!).

In posix_fpathconf(), use conv_path_confname() as the O& conversion
function, instead of the conv_confname() helper, which has the wrong
signature (posix_pathconf() already used the right thing).

25 years agoRemove test for getlogin_r(); the interface is not clearly defined, at
Fred Drake [Tue, 14 Dec 1999 21:11:47 +0000 (21:11 +0000)]
Remove test for getlogin_r(); the interface is not clearly defined, at
least on Solaris (sometimes it's Unix98, sometimes it conforms to an
early draft).

Properly generate config.h.in using autoheader instead of editing it
manually; thanks, Guido!

25 years agoAdded detection of getlogin() and getlogin_r().
Fred Drake [Tue, 14 Dec 1999 20:48:17 +0000 (20:48 +0000)]
Added detection of getlogin() and getlogin_r().

25 years agoBgen now understands more constant definitions, but that means that a few which are...
Jack Jansen [Tue, 14 Dec 1999 15:47:01 +0000 (15:47 +0000)]
Bgen now understands more constant definitions, but that means that a few which are not parseable in Python have to be blacklisted.

25 years agoIf a menu shortcut is a tuple in stead of a char it is a tuple (modifierkeys, char...
Jack Jansen [Tue, 14 Dec 1999 15:45:53 +0000 (15:45 +0000)]
If a menu shortcut is a tuple in stead of a char it is a tuple (modifierkeys, char [, glyph]).

25 years agoRegenerated now that bgen can handle a few more constructs in constant definitions.
Jack Jansen [Tue, 14 Dec 1999 15:44:53 +0000 (15:44 +0000)]
Regenerated now that bgen can handle a few more constructs in constant definitions.

25 years agoMarkup consistency nits that Guido didn't check. ;-)
Fred Drake [Mon, 13 Dec 1999 23:34:42 +0000 (23:34 +0000)]
Markup consistency nits that Guido didn't check.  ;-)

25 years agoDoc update from Piers Lauder see changes for imaplib.py version 2.16.
Guido van Rossum [Mon, 13 Dec 1999 23:29:39 +0000 (23:29 +0000)]
Doc update from Piers Lauder see changes for imaplib.py version 2.16.

25 years agoV 2.16 from Piers:
Guido van Rossum [Mon, 13 Dec 1999 23:27:45 +0000 (23:27 +0000)]
V 2.16 from Piers:

I've changed the login command to force proper
quoting of the password argument. I've also added
some extra debugging code, which is removed when
__debug__ is false.

25 years agoUse 'search', not 'match', on filename pattern regexes.
Greg Ward [Mon, 13 Dec 1999 21:38:57 +0000 (21:38 +0000)]
Use 'search', not 'match', on filename pattern regexes.

25 years agoRemoved debugging prints.
Fred Drake [Mon, 13 Dec 1999 16:55:24 +0000 (16:55 +0000)]
Removed debugging prints.

25 years agoAdded bindings for getgroups(), fpathconf(), pathconf(), confstr(),
Fred Drake [Mon, 13 Dec 1999 16:37:25 +0000 (16:37 +0000)]
Added bindings for getgroups(), fpathconf(), pathconf(), confstr(),
and sysconf().

*Lots* of tables to define names used by *conf*(); explanation to go
in message to python-dev list.

25 years agoAdded detection for getgroups(), fpathconf(), pathconf(),
Fred Drake [Mon, 13 Dec 1999 16:23:35 +0000 (16:23 +0000)]
Added detection for getgroups(), fpathconf(), pathconf(),
confstr(), and sysconf().

25 years agoFixed the password dialog to use a password control.
Jack Jansen [Mon, 13 Dec 1999 16:07:01 +0000 (16:07 +0000)]
Fixed the password dialog to use a password control.

25 years agoC-style comments removed (again).
Jack Jansen [Mon, 13 Dec 1999 16:05:47 +0000 (16:05 +0000)]
C-style comments removed (again).
AE stuff got some extra definitions (don't know why these weren't checked in).

25 years agoMethods {Get,Set}ControlData that know about data types passed for the various
Jack Jansen [Mon, 13 Dec 1999 16:04:48 +0000 (16:04 +0000)]
Methods {Get,Set}ControlData that know about data types passed for the various
4-char codes. The table which maps codes to datatypes is still pretty empty,
I'll fill it as I need entries (or maybe someone wants to spend a nice day filling it?).

25 years agoFixed the password dialog to use a password control.
Jack Jansen [Mon, 13 Dec 1999 15:37:48 +0000 (15:37 +0000)]
Fixed the password dialog to use a password control.
Aligned all sizes and such the HIG standards (I think).

25 years agoUpdated Message, question, YNC and progress dialogs for Appearance. Password
Jack Jansen [Sun, 12 Dec 1999 22:57:51 +0000 (22:57 +0000)]
Updated Message, question, YNC and progress dialogs for Appearance. Password
remains to be done, and maybe we should convert everything to movablemodal too
and make things like question look nicer.

25 years agoIn places where a ResObj is expected for PyArg_Parse and the object passed in isn...
Jack Jansen [Sun, 12 Dec 1999 22:57:29 +0000 (22:57 +0000)]
In places where a ResObj is expected for PyArg_Parse and the object passed in isn't but it does have an as_Resource method use that. This makes life a lot easier
for appearance portability (and was needed anyway).

25 years agoRegenerated toolbox modules with CW Pro 5.2, which has MacOS 8.6 and Appearance 1...
Jack Jansen [Sun, 12 Dec 1999 21:56:56 +0000 (21:56 +0000)]
Regenerated toolbox modules with CW Pro 5.2, which has MacOS 8.6 and Appearance 1.1 support, and added workaround for non-existing calls for 68K.
Static 68K Python still has a tk problem.

25 years agoRegenerated with CW Pro 5.2, which has MacOS 8.6 and Appearance 1.1 support.
Jack Jansen [Sun, 12 Dec 1999 21:41:51 +0000 (21:41 +0000)]
Regenerated with CW Pro 5.2, which has MacOS 8.6 and Appearance 1.1 support.

25 years agoDummy functions which return unimpErr for lots of toolbox calls that are unavailable...
Jack Jansen [Sun, 12 Dec 1999 21:38:29 +0000 (21:38 +0000)]
Dummy functions which return unimpErr for lots of toolbox calls that are unavailable for 68K. This way we don't have to disable thm in bgen, so we
can still use them on PPC.

25 years agoOops, PLstring funcs should be "pascal". Funny this never caused problems before...
Jack Jansen [Sun, 12 Dec 1999 21:37:14 +0000 (21:37 +0000)]
Oops, PLstring funcs should be "pascal". Funny this never caused problems before...

25 years agoCatch up with terminology change in UnixCCompiler: 'includes' -> 'include_dirs'.
Greg Ward [Sun, 12 Dec 1999 17:19:58 +0000 (17:19 +0000)]
Catch up with terminology change in UnixCCompiler: 'includes' -> 'include_dirs'.

25 years agoCatch missing MANIFEST file and warn rather than blowing up.
Greg Ward [Sun, 12 Dec 1999 17:07:22 +0000 (17:07 +0000)]
Catch missing MANIFEST file and warn rather than blowing up.
Added 'nuke_release_tree()' method to blow away the directory from
  which the archive file(s) are created, and call it (conditionally)
  from 'make_distribution()'.
Added 'keep_tree' option (false by default) to disable the call to
  'nuke_release_tree()'.

25 years agoFixed 'find_package_modules()' to ensure that we never build (and thus
Greg Ward [Sun, 12 Dec 1999 17:03:59 +0000 (17:03 +0000)]
Fixed 'find_package_modules()' to ensure that we never build (and thus
  install) the setup script itself.
Fixed 'build_module()' so we do *not* preserve file mode (which means
  we can install read-only files, which makes the next installation
  of this distribution fail -- at least under Unix); added a comment
  explaining this.

25 years agoChanged 'build_extensions()' so 'sources' can be a list or tuple; and
Greg Ward [Sun, 12 Dec 1999 17:01:01 +0000 (17:01 +0000)]
Changed 'build_extensions()' so 'sources' can be a list or tuple; and
  call CCompiler method 'compile()' with 'include_dirs' not 'includes'.
Fixed stupid typo in 'get_source_files()'.

25 years agoIn 'compile()' method, renamed 'includes' parameter to 'include_dirs' for
Greg Ward [Sun, 12 Dec 1999 16:57:47 +0000 (16:57 +0000)]
In 'compile()' method, renamed 'includes' parameter to 'include_dirs' for
  consistency with 'build_ext' command option.
Changed 'compile()' and 'link_shared_object()' so 'include_dirs',
  'libraries', and 'library_dirs' can be lists or tuples.

25 years agoAdded support for printing out help text from option table: 'print_help()',
Greg Ward [Sun, 12 Dec 1999 16:54:55 +0000 (16:54 +0000)]
Added support for printing out help text from option table: 'print_help()',
  'generate_help()', 'wrap_text()' functions, and a little tiny test
  of 'wrap_text()'.
Changed how caller states that one option is the boolean opposite of
  another: added 'negative_opt' parameter to 'fancy_getopt()', and changed
  to use it instead of parsing long option name.

25 years agoMade "verbose" mode the default; now you have to supply --quiet if you
Greg Ward [Sun, 12 Dec 1999 16:51:44 +0000 (16:51 +0000)]
Made "verbose" mode the default; now you have to supply --quiet if you
  want no output.  Still no option for a happy medium though.
Added "--help" global option.
Changed 'parse_command_line()' to recognize help options (both for the
  whole distribution and per-command), and to distinguish "regular run"
  and "user asked for help" by returning false in the latter case.
Also in 'parse_command_line()', detect invalid command name on command
  line by catching DistutilsModuleError.
  a 'negative_opt' class attribute right after 'global_options'; changed
  how we call 'fancy_getopt()' accordingly.
Initialize 'maintainer' and 'maintainer_email' attributes to Distribution
  to avoid AttributeError when 'author' and 'author_email' not defined.
Initialize 'help' attribute in Command constructor (to avoid
  AttributeError when user *doesn't* ask for help).
In 'setup()':
  * show usage message before dying when we catch DistutilsArgError
  * only run commands if 'parse_command_line()' returned true (that
    way, we exit immediately when a help option is found)
  * catch KeyboardInterrupt and IOError from running commands
Bulked up usage message to show --help options.
Comment, docstring, and error message tweaks.

25 years agoNew appearance mgr support. This appears (no pun intended) to have some problems...
Jack Jansen [Fri, 10 Dec 1999 16:16:19 +0000 (16:16 +0000)]
New appearance mgr support. This appears (no pun intended) to have some problems that I'll fix tonight, so don't check it out.

25 years agoThe call to PyArg_ParseTuple in al_Connect had one too few arguments.
Guido van Rossum [Fri, 10 Dec 1999 15:12:11 +0000 (15:12 +0000)]
The call to PyArg_ParseTuple in al_Connect had one too few arguments.
This fixes PR#157.

25 years agoChanged appearance-dialogs to new WDEF values. Also undid silly change of
Jack Jansen [Thu, 9 Dec 1999 22:54:42 +0000 (22:54 +0000)]
Changed appearance-dialogs to new WDEF values. Also undid silly change of
button types in those dialogs.

25 years agoRegenerated, and manually massaged (sigh): there can now be comments after enum defs...
Jack Jansen [Thu, 9 Dec 1999 22:51:01 +0000 (22:51 +0000)]
Regenerated, and manually massaged (sigh): there can now be comments after enum defs, and bgen doesn't understand this yet.

25 years agoFixed a linebreak I forgot, added docstrings, (temporarily) blacklisted a few routine...
Jack Jansen [Thu, 9 Dec 1999 22:49:51 +0000 (22:49 +0000)]
Fixed a linebreak I forgot, added docstrings, (temporarily) blacklisted a few routines that seem to be missing in my CW Pro 5.1.

25 years agoAdded USE_APPEARANCE flag.
Jack Jansen [Thu, 9 Dec 1999 22:48:29 +0000 (22:48 +0000)]
Added USE_APPEARANCE flag.

25 years agoDocument the new stuff in the os module.
Fred Drake [Thu, 9 Dec 1999 22:11:43 +0000 (22:11 +0000)]
Document the new stuff in the os module.

25 years agoAdded support for ctermid, tempnam, tmpfile, tmpnam, and tmpnam_r.
Fred Drake [Thu, 9 Dec 1999 22:03:25 +0000 (22:03 +0000)]
Added support for ctermid, tempnam, tmpfile, tmpnam, and tmpnam_r.