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.).
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.
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.
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).
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!
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.