Commit Graph

11632 Commits

Author SHA1 Message Date
Guido van Rossum 57072eb79f Implement the other easy thing: repr() of a float now uses %.17g,
while str() uses %.12g as before.
1999-12-23 19:00:28 +00:00
Fred Drake 9093834acb Added item about specific missing entries in the C API manual. 1999-12-23 17:22:13 +00:00
Just van Rossum 24073eaf2b changed the "method find" algorithm so the function/class/method popup menu also works with space-indented source files -- jvr 1999-12-23 15:46:57 +00:00
Fred Drake 121ee2722e 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().
1999-12-23 15:41:28 +00:00
Fred Drake db1bd5c230 Revise tests to support str(<long int object>) not appending "L". 1999-12-23 15:36:42 +00:00
Jack Jansen b06007a3ba Added a reference to oldPICTbrowse.py. 1999-12-23 14:45:41 +00:00
Jack Jansen 3b23ed9ba6 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. 1999-12-23 14:45:02 +00:00
Jack Jansen 6a6db0724c Partially converted to Appearance, the dialog still has the old ugly layout and
interaction.
1999-12-23 14:34:07 +00:00
Jack Jansen d2bf68fdb9 Converted to Appearance. 1999-12-23 14:33:20 +00:00
Jack Jansen a1a0fef2ea 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.
1999-12-23 14:32:06 +00:00
Fred Drake 7b912120ca Adjusted apply() docstring based on comments from Gerrit Holl
<gerrit.holl@pobox.com>.
1999-12-23 14:16:55 +00:00
Fred Drake fbff97a73b Don't call len() if the value is already cached! Caught by Gerrit
Holl <gerrit.holl@pobox.com>.
1999-12-22 21:52:32 +00:00
Fred Drake 8972dfd58e For ZlibError and ZLIB_VERSION, only attempt to add entry to the
module dict if the inserted object isn't NULL (basic defensive
programming!).
1999-12-22 16:13:54 +00:00
Guido van Rossum 96a8fb7e99 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
1999-12-22 14:09:35 +00:00
Fred Drake 6a90b5e4d0 Removed a couple of items that got done(!).
Moved a couple to a new "Not worth it" section (explanations were
already there).
1999-12-21 23:02:38 +00:00
Fred Drake 76e6da38c0 Document GetoptError and label error an alias. 1999-12-21 22:50:05 +00:00
Guido van Rossum 80c33e562d 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.]
1999-12-21 22:38:40 +00:00
Fred Drake b9bdfc6a23 Document 1.5.2+ aspects of the NotANumber exception. (Note that this
is in the development branch, not the maintenance branch!)
1999-12-21 18:45:16 +00:00
Fred Drake 89ab163479 Document that the |mode| parameter to open() is optional and explain how
the default value is determined.
1999-12-21 18:31:30 +00:00
Guido van Rossum 96b5ee88ee 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".
1999-12-21 15:55:47 +00:00
Guido van Rossum 5731575449 Added setargv.obj to the link link.
This causes * etc. on the command line to be expanded, link on Unix.
1999-12-20 23:02:41 +00:00
Guido van Rossum 90e0f57cea Add dynload_win.c to project. 1999-12-20 23:00:10 +00:00
Guido van Rossum 9f9fa6d0c9 Add HAVE_DYNAMIC_LOADING.
Define Py_DEBUG when compiling in debug mode.  (Is that a good idea?)
1999-12-20 22:57:41 +00:00
Guido van Rossum 95288862bb For Windows, need to add #include <windows.h>. 1999-12-20 22:55:03 +00:00
Andrew M. Kuchling 313a3e36e7 Fix typo in docstring: wbites -> wbits 1999-12-20 22:13:38 +00:00
Guido van Rossum e97ee18115 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.
1999-12-20 21:27:22 +00:00
Guido van Rossum 6f13e9abc9 Add line for HAVE_DYNAMIC_LOADING (result of editing acconfig.h).
This is part of a set of patches by Greg Stein.
1999-12-20 21:25:59 +00:00
Guido van Rossum 85d8be5df0 Define HAVE_DYNAMIC_LOADING.
This is part of a set of patches by Greg Stein.
1999-12-20 21:24:37 +00:00
Guido van Rossum db3ec1b21e Support for selecting the correct dynload_<platform>.c file.
This is part of a set of patches by Greg Stein.
1999-12-20 21:24:09 +00:00
Guido van Rossum ed1170e49f 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.
1999-12-20 21:23:41 +00:00
Guido van Rossum 9f65081d90 Some rearrangements for the importdl.c restructuring.
This is part of a set of patches by Greg Stein.
1999-12-20 21:22:24 +00:00
Guido van Rossum 6ea9092625 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.
1999-12-20 21:20:42 +00:00
Guido van Rossum 22a1d3671b 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.
1999-12-20 21:18:49 +00:00
Guido van Rossum 72badf5404 The cleanup code in com-init() at label fail_0000 should remove
c_varnames, not c_lnotab.
1999-12-20 20:40:12 +00:00
Jack Jansen e9c69bc53e Support keys that have a Handle as parameter, by using the new GetControlDataHandle and SetControlDataHandle methods. 1999-12-19 00:06:52 +00:00
Jack Jansen 1f9249cea9 Added {Get,Set}ControlDataHandle methods. These are {Get,Set}ControlData for
keys that expect a Handle, and have a ResObj as parameter.
1999-12-19 00:05:50 +00:00
Jack Jansen 54b9ce1c4f StandardFile compatability routines. For the time being calling macfsn._install()
will install these in macfs (if Navigation is available).
1999-12-18 16:57:33 +00:00
Jack Jansen 97e0ae25aa Increase applet minimal memory size by a megabyte. 1999-12-18 16:56:16 +00:00
Jack Jansen 77abc43486 Added a line about passing None as eventProc to the docstring to get movable
dialogs.
1999-12-17 23:01:44 +00:00
Jack Jansen cd3d7ccd4f PyMac_BuildOptStr255 and PyMac_BuildFSSpec added to exports. 1999-12-17 23:00:49 +00:00
Jack Jansen b734adef4b Added PyMac_BuildOptStr255, which returns None on a null pointer. 1999-12-17 17:15:50 +00:00
Jack Jansen a07431f0ce Finished (I think), but only very lightly tested. Should now have full interface: all
calls, callbacks, arguments, etc. Also added docstrings.
1999-12-17 17:14:28 +00:00
Jack Jansen 8542b2e0af Project for Nav module. 1999-12-17 17:12:41 +00:00
Jack Jansen da261e6dc6 Added Nav 1999-12-16 22:22:00 +00:00
Jack Jansen e1a45b3f3d Allow keyword arguments, and the dialog is now actually shown. No way to
get at the result yet, though:-)
1999-12-16 22:21:30 +00:00
Jack Jansen 286538719e Added Nav module 1999-12-16 22:20:52 +00:00
Guido van Rossum 4e08379891 Patch and new file by Geoff Furnish for C++ compilation. 1999-12-16 17:52:08 +00:00
Guido van Rossum 9501219303 Patch by Geoff Furnish to make compiling with C++ more gentle.
(The configure script is regenerated, not from his patch.)
1999-12-16 17:50:52 +00:00
Guido van Rossum ec3caccb17 Regenerated after new acconfig.h. 1999-12-16 17:49:27 +00:00
Guido van Rossum c6f6df3118 Correct stupid typo (HAVE_GETHOSTBTNAME). 1999-12-16 17:49:02 +00:00