Commit Graph

18665 Commits

Author SHA1 Message Date
Jack Jansen ddafd2b0c7 (Finally) converted to new-style args.
Added an optional (and ignored) 3d parameter to open() to make the signature compatible with posixmodule.
Added the various O_ constants (by stealing the code from posixmodule).

test_fileinput now passes.
2001-08-03 13:07:19 +00:00
Jack Jansen 2d713d1006 Added descrobject.c and mysnprintf.c 2001-08-03 13:05:57 +00:00
Jack Jansen 66298f10df Regenerated for new description stuff. 2001-08-03 13:05:18 +00:00
Jack Jansen fffd7224df The test opened the binary test data files in text mode! Fixed. 2001-08-03 13:04:03 +00:00
Jack Jansen 5756ee0fe6 Removed duplicate definnitions of PyObject_AS_GC and PyObject_FROM_GC (occurred only if GC was off). 2001-08-03 13:03:24 +00:00
Tim Peters 2aadd36641 No more Inno Envy: the "Start Installation" dialog now displays a nice
summary of the preceding choices.  No idea if this is "the right way" to
do it, but it's exactly painful enough to make me suspect it's the only
way <wink>.
2001-08-03 11:11:35 +00:00
Martin v. Löwis ae26dc23a9 Do not use the system getaddrinfo on Mac OS X. Fixes bug #445928.
Since getnameinfo is not implemented, remove __APPLE__ check here.
2001-08-03 10:02:29 +00:00
Steven M. Gava 952d0a57d8 further work on config dialog, particularly highligthing config 2001-08-03 04:43:44 +00:00
Fred Drake 4fd06e0170 Make sure that WeakValueDictionary[] raises KeyError instead of TypeError
for keys that are not in the dictionary.
2001-08-03 04:11:27 +00:00
Fred Drake 5d54879647 Fix some of the example code; the reference objects do not support a
get() method; just calling them is sufficient.  (There was a get() method
for this in an early version of the implementation.)

Reported by Mats Wichmann.
2001-08-03 03:50:28 +00:00
Tim Peters f980301b09 Finish my log of the final merge process. Mark the merge task complete. 2001-08-02 22:06:35 +00:00
Fred Drake 8dd6ffd0ec User-defined methods *can* contain things other than user-defined functions
as the callable, so use more flexible language.
2001-08-02 21:34:53 +00:00
Fred Drake 51629c245a Add a caveat about boundary conditions and RE concatenation, so that the
documents do not make an overly-strong assertion about the properties of
RE concatenation.

Add an example of RE{m,} syntax and what it will and will not match.
2001-08-02 20:52:00 +00:00
Fred Drake c916cdc5ca Miscellaneous minor cleanups. 2001-08-02 20:03:12 +00:00
Fred Drake f90490ef94 Move away from apply() to using extended call syntax for some example
fragments when discussing equivalence of thhe C API to what a Python
programmer sees.

Added descriptions of PyEval_SetProfile() and PyEval_SetTrace().
2001-08-02 18:00:28 +00:00
Tim Peters d342c62961 This test failed under python -O.
rewrite_file():  Delete both .pyc and .pyo leftovers, and explicitly close
the new source file after writing to it.
2001-08-02 17:23:11 +00:00
Fred Drake 044bb4d22a Explain that __init__() methods do not get to return values. 2001-08-02 15:53:05 +00:00
Guido van Rossum 2b8d7bdd77 Fix SF #442791 (revisited): No __delitem__ wrapper was defined. 2001-08-02 15:31:58 +00:00
Fred Drake 388f37e6f6 Add anentry for the distutils.sysconfig module docs. 2001-08-02 15:13:58 +00:00
Fred Drake ab70b38367 Update some incorrect comments about the bdist commands that exist.
Add an entry for the distutils.sysconfig module docs.
2001-08-02 15:13:15 +00:00
Fred Drake 25376c4f8b Documentation for the distutils.sysconfig module. 2001-08-02 15:12:07 +00:00
Guido van Rossum 394a47b268 Unit test for improved package import semantics.
Original by Alex Coventry (in SF patch #441791), adapted to the
standard regression test framework.
2001-08-02 14:14:20 +00:00
Martin v. Löwis 02d893cfae Patch #444359: Remove unused imports. 2001-08-02 07:15:29 +00:00
Martin v. Löwis d429ab6df9 Take MANDIR and INCLUDEDIR from configure. Fixes bug #446671. 2001-08-02 06:20:20 +00:00
Tim Peters 5962cbf5ba Fix the test_weakref.py failure. Introduced by resolving "a conflict"
(which didn't actually exist!) incorrectly.
2001-08-02 04:45:20 +00:00
Tim Peters 6d6c1a35e0 Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
Fred Drake 52d55a3926 Cleaned up the docstring for readline.set_completer().
Thanks to Nathaniel Gray for reporting the confusion.
2001-08-01 21:44:14 +00:00
Fred Drake 905dc558f1 Cleaned up the description of readline.set_completer().
Thanks to Nathaniel Gray for reporting the confusion.
2001-08-01 21:42:45 +00:00
Tim Peters 722d78f18a s/endswith/startswith/ 2001-08-01 20:23:18 +00:00
Tim Peters 66e1a254a1 Rewritten version of Finn Bock's SF patch #446907 (Allow jython to
complete test_import).
2001-08-01 19:38:56 +00:00
Tim Peters a7f6de7691 Just changes to comments. 2001-08-01 18:42:54 +00:00
Tim Peters 60515573ba Repair more ways in which the "backup files" dialog differed from all the
others (wrong title, inconsistent layout).  Also tried to make the dialog
text clearer, and spelled out what the "yes" and "no" buttons *mean*.
2001-08-01 18:33:33 +00:00
Guido van Rossum b363c1f445 Turn an octal constant into a hex constant. 2001-08-01 18:17:23 +00:00
Fred Drake 236ddd6834 Added more names. 2001-08-01 17:19:11 +00:00
Fred Drake 20c94913de Minor re-wording in the exaplantion of sequence comparisons.
This closes SF bug #445749.
2001-08-01 17:17:13 +00:00
Fred Drake e74f8de385 Added an example of a string value for the replacement parameter to
re.sub().
This closes SF bug #446136.

Fixed description of RE modifiers so that RE{#} and RE{#,} are more
clearly described and disambiguated (plain RE{#} had not been described
at all).  Reported by Jeremy Craven via email.
2001-08-01 16:56:51 +00:00
Fred Drake 630a63cafd Fix description of buffer_info(), and add a note that there is a better
way...

This closes SF bug #444842.
2001-08-01 16:50:49 +00:00
Tim Peters 5a99e0ca0c We always wrote a pair of lines to the Wise install.log telling it to
delete the Tools and Lib directories at uninstall time.  However,
under the old version of Wise, they didn't actually do anything.  Under
the new version, they work as advertised, and even delete files users
added.
Got rid of those, and replaced them with similar uninstall cmds that
get rid of all .pyc and .pyo files (whether or not the installer created
them).  This works nicely!  It still tears down the directory structure,
except for those directories needed to get to any non-.pyc/o file(s) the
user may have added.
2001-08-01 06:29:56 +00:00
Tim Peters b8b3291152 Hmm. The Backup/Replace dialog also had back/next buttons three pixels
narrower than all the other Wise dialogs, and offset by a few pixels in
the vertical direction too.  Made these things consistent across dialogs
too.
2001-08-01 03:42:27 +00:00
Tim Peters bbeb69e357 Aha! Finally figured out something else that's been driving me nuts:
turns out the canned new "backup directory" dialog put its "back" and
"next" buttons at a different relative horizontal position than all the
other canned dialogs.  This explains why you had to keep moving the
mouse around if you wanted to do a straight all-default install -- the
Next button kept moving around.  Now the back/next buttons are in exactly
the same place on all dialogs, and you can click straight thru to the end.
2001-08-01 03:36:20 +00:00
Tim Peters 4951a980ad The "Select Destination Directory" dialog didn't ask for confirmation
about installing into a pre-existing directory *unless* you hit the
Browse button first.  At least while testing, this screwed me repeatedly.
Plus I really liked the Inno Setup scheme of giving you a list box in
its "select directory" dialog without needing a distinct browse button
to ask for that.

So I redid this dialog from scratch:  now gives a list box at once, the
browse button is gone, it asks for confirmation if the directory already
exists, and, since this is the first dialog in the set now, also removed
its "Back" button.
2001-08-01 03:29:59 +00:00
Tim Peters 1f7862ec56 Remove useless Back button from Finished dialog. 2001-08-01 02:36:21 +00:00
Tim Peters aa6111fc93 Add mysnprintf.c to Windows build, + squash compiler wngs in mysnprintf.c. 2001-07-31 22:10:29 +00:00
Marc-André Lemburg 03d1b1814b Enable PyOS_snprintf() et al. during alpha phase of 2.2.0 and
add another use case to the socketmodule.
2001-07-31 18:05:33 +00:00
Andrew M. Kuchling 77707673f4 Move C-level changes into a section of their own
Add string.ascii_letters
Remove duplicate MBCS paragraph
2001-07-31 15:51:16 +00:00
Marc-André Lemburg d627791cf1 Moved the news items about C API topics down to the C API section. 2001-07-31 14:42:42 +00:00
Marc-André Lemburg 48dbfe9aa2 Add news item about Unicode API name mangling. 2001-07-31 14:37:40 +00:00
Marc-André Lemburg b5ac6f62c7 As discussed on python-dev: this patch adds name mangling to
assure that extensions and interpreters using the Unicode APIs
were compiled using the same Unicode width.
2001-07-31 14:30:16 +00:00
Marc-André Lemburg 888fac020c Add news items. 2001-07-31 14:24:31 +00:00
Marc-André Lemburg cecd9e0af3 va_list is defined in stdarg.h. 2001-07-31 14:23:52 +00:00