Fixed a TypeError: not enough arguments; expected 4, got 3.
When authentication is needed, the default http_error_401 method calls
retry_http_basic_auth. The default version of that method expected a
data argument which wasn't provided, so now we provide the argument if
it was given and we also made the data argument optional.
Also changed other calls where data was optional to not pass data if
it was not passed to the calling method (in line with other similar
occurances).
Greg Ward [Sun, 30 Jan 2000 18:34:15 +0000 (18:34 +0000)]
Added 'description' class attribute to every command class (to help the
'--help-commands' option).
Shuffled imports around in a few command modules to avoid expensive
up-front import of sysconfig (and resulting delays in generating list
of all commands).
Greg Ward [Sun, 30 Jan 2000 18:30:32 +0000 (18:30 +0000)]
Improvements to the help system:
* "--help" can now come either before or after particular commands
to get help on and can give help on multiple commands, eg.
"--help install dist" gives help on those two commands
* added "--help-commands" option, implemented by the 'print_commands()'
and 'print_command_list()' methods
Jack Jansen [Mon, 24 Jan 2000 10:37:59 +0000 (10:37 +0000)]
Big oops: macfs has always been using a private exception but calling it mac.error.
It now uses MacOS.Error (the OSErr valued error) and advertises that too. This
fix shouldn't break anything, I guess.
Guido van Rossum [Thu, 20 Jan 2000 20:49:28 +0000 (20:49 +0000)]
Two patches from Jack Jansen:
Three bgen mods:
- support for FSSpecs passed-by-value and points-passed-by-reference added.
- strip single-line comments when parsing header files
- if a definition is blacklisted _do_ output it, but in comment
Greg Ward [Mon, 17 Jan 2000 18:04:04 +0000 (18:04 +0000)]
Added code to use Jim Ahlstrom's zipfile.py module if the external zip
command wasn't found or failed. (Code supplied by Thomas Heller
<thomas.heller@ion-tof.com>.)
Guido van Rossum [Fri, 14 Jan 2000 16:33:09 +0000 (16:33 +0000)]
According to Ron Bickers, and with apparent approval of Chris
Herborth, the code in list2set() that sets max unconditionally to 0
should not be used on BeOS. So be it. Anybody using BeOS, please
test!
Guido van Rossum [Wed, 12 Jan 2000 22:45:54 +0000 (22:45 +0000)]
Fix a bug in exec_statement() noted incidentally by Tim Peters in
PR#175 -- when exec is passed a code object, it didn't sync the locals
from the dictionary back into their fast representation.
Also took the time to remove some repetitive code there and to do the
syncing even when an exception is raised (since a partial effect
should still be synced).
Guido van Rossum [Wed, 12 Jan 2000 16:38:20 +0000 (16:38 +0000)]
The functions asctime() and mktime() are documented to take a 9-tuple
only. Through some mysterious interaction, they would take 9 separate
arguments as well. This misfeature is now disabled (to end a
difference with JPython).
Guido van Rossum [Wed, 12 Jan 2000 16:28:58 +0000 (16:28 +0000)]
On Linux, one sometimes sees spurious errors after interrupting
previous output. Call clearerr() to prevent past errors affecting our
ferror() test later, in PyObject_Print(). Suggested by Marc Lemburg.
Greg Ward [Sun, 9 Jan 2000 22:47:53 +0000 (22:47 +0000)]
Abstracted '_fix_link_args()' out of 'link_shared_object()'.
Added 'link_static_lib()' method, and 'archiver' and 'archiver_options'
class attributes to support it.
Added 'link_executable()' method, and 'ld_exec' instance attribute
to support it.
'newer_group()' is now able to handle missing files, so we don't have
to kludge it by catching OSError when calling it.
'object_filenames()' and 'shared_object_filename()' now take 'keep_dir'
flag parameters.
'library_filename()' and 'shared_library_filename()' now respect
a directory component in the library name.
Various comment updates/deletions.
Jack Jansen [Fri, 7 Jan 2000 14:53:31 +0000 (14:53 +0000)]
Added initializer routine optionally to be used as PEF fragment initialization routine, which allows us to get at our own resource fork even if some shared library init routine opens other resource files.
Fred Drake [Thu, 30 Dec 1999 18:05:43 +0000 (18:05 +0000)]
setup_confname_table(): Use size_t instead of int for an index when
building the dicts used to inform the user about the defined
constants when using the *conf*() APIs.
Thanks to Mark Hammond <mhammond@skippinet.com.au>.
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.
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.
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.]
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".
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).
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.).