Guido van Rossum [Fri, 21 Apr 2000 18:54:45 +0000 (18:54 +0000)]
Patch by Brian Hooper, somewhat augmented by GvR, to strip a trailing
backslash from the pathname argument to stat() on Windows -- while on
Unix, stat("/bin/") succeeds and does the same thing as stat("/bin"),
on Windows, stat("\\windows\\") fails while stat("\\windows") succeeds.
This modified version of the patch recognizes both / and \.
(This is odd behavior of the MS C library, since
os.listdir("\\windows\\") succeeds!)
Guido van Rossum [Fri, 21 Apr 2000 18:35:36 +0000 (18:35 +0000)]
Doc strings for the spawn* functions, by Michael Hudson.
Greg Ward [Fri, 21 Apr 2000 04:37:12 +0000 (04:37 +0000)]
Fix 'check_metadata()' so it grovels through the distribution's metadata
object, rather than through the distribution itself (since I moved the meta-
data out to a DistributionMetadata instance).
Greg Ward [Fri, 21 Apr 2000 04:35:25 +0000 (04:35 +0000)]
Patch from Andrew Kuchling: document the new multiple pattern feature in the
manifest template.
Greg Ward [Fri, 21 Apr 2000 04:31:10 +0000 (04:31 +0000)]
Patch from Andrew Kuchling: allow multiple include/exclude patterns
for all commands except 'prune' and 'graft'.
Greg Ward [Fri, 21 Apr 2000 04:22:49 +0000 (04:22 +0000)]
Fixed the '--license' option so it's officially an alias for '--licence',
and now actually works.
Greg Ward [Fri, 21 Apr 2000 04:22:01 +0000 (04:22 +0000)]
Added the capability for alias options.
Greg Ward [Fri, 21 Apr 2000 02:31:07 +0000 (02:31 +0000)]
Added 'has_option()', 'get_attr_name()' methods.
Greg Ward [Fri, 21 Apr 2000 02:28:14 +0000 (02:28 +0000)]
Patch, originally from Bastian Kleineidam and savagely mutilated by me,
to add the "display metadata" options: --name, --version, --author,
and so forth. Main changes:
* added 'display_options' class attribute to list all the "display only"
options (--help-commands plus the metadata options)
* added DistributionMetadata class as a place to put the actual
metadata information from the setup script (not to be confused with
the metadata display options); the logic dealing with metadata
(eg. return self.name or "UNKNOWN") is now in this class
* changed 'parse_command_line()' to use the new OO interface provided
by fancy_getopt, mainly so we can get at the original order of
options on the command line, so we can print multiple lines of
distribution meta-data in the order specified by the user
* added 'handle_display_options()' to handle display-only options
Also fixed some crufty old comments/docstrings.
Greg Ward [Fri, 21 Apr 2000 02:09:26 +0000 (02:09 +0000)]
Made 'generate_help()' and 'print_help()' methods of FancyGetopt.
Added 'set_option_table()' method.
Added missing 'self' to 'get_option_order()'.
Cosmetic/comment/docstring tweaks.
Greg Ward [Fri, 21 Apr 2000 01:44:00 +0000 (01:44 +0000)]
Continuing the refactoring: deleted the old 'fancy_getopt()' function,
leaving in its place a tiny wrapper around the FancyGetopt class
for backwards compatibility.
Greg Ward [Fri, 21 Apr 2000 01:41:54 +0000 (01:41 +0000)]
Hefty refactoring: converted 'fancy_getopt()' function into FancyGetopt
class. (Mainly this was to support the ability to go back after the
getopt operation is done and get extra information about the parse,
in particular the original order of options seen on the command line.
But it's a big improvement and should make it a lot easier to add
functionality in the future.)
Greg Ward [Wed, 19 Apr 2000 22:48:09 +0000 (22:48 +0000)]
Reformatted wide paragraphs.
Greg Ward [Wed, 19 Apr 2000 22:44:25 +0000 (22:44 +0000)]
Reverted '\var' in the "standard installation location" table to '\filevar'.
Reformatted wide paragraphs.
Greg Ward [Wed, 19 Apr 2000 22:40:34 +0000 (22:40 +0000)]
Dropped '\tilde' and '\bslash' definitions.
Greg Ward [Wed, 19 Apr 2000 22:40:12 +0000 (22:40 +0000)]
Changed '\tilde' and '\bslash' to the standard '\textasciitilde' and
'\textbackslash'.
Greg Ward [Wed, 19 Apr 2000 22:36:33 +0000 (22:36 +0000)]
Removed '\package' definition.
Greg Ward [Wed, 19 Apr 2000 22:36:24 +0000 (22:36 +0000)]
Changed '\package' to \module'.
Greg Ward [Wed, 19 Apr 2000 22:34:11 +0000 (22:34 +0000)]
Changed '\option' to '\longprogramopt' wherever it referred to a command-line
option.
Fred Drake [Wed, 19 Apr 2000 13:54:15 +0000 (13:54 +0000)]
ANSI-fy & de-tabify the source.
(4-space indents already used.)
Greg Ward [Wed, 19 Apr 2000 02:23:21 +0000 (02:23 +0000)]
Bumped version to 0.8.1.
Greg Ward [Wed, 19 Apr 2000 02:22:07 +0000 (02:22 +0000)]
Added kludge to deal with the "./ld_so_aix" problem: force all strings
in the Makefile that start with "./" to be absolute paths (with the
implied root being the directory where the Makefile itself was found).
Greg Ward [Wed, 19 Apr 2000 02:18:09 +0000 (02:18 +0000)]
Don't load the config.h file, even under Unix, because we never use the
information from config.h. Code is still there in case someone in the
future needs to parse an autoconf-generated config.h file.
Greg Ward [Wed, 19 Apr 2000 02:16:49 +0000 (02:16 +0000)]
Added 'link_executable()' method (Berthold Hoellmann).
Two small fixes to 'link_shared_object()'.
Jack Jansen [Tue, 18 Apr 2000 14:08:31 +0000 (14:08 +0000)]
Fix by Dan Green and Corran Webster to support LongDateTime
values. Untested by me.
Fred Drake [Mon, 17 Apr 2000 17:42:00 +0000 (17:42 +0000)]
Added documentation for WindowsError; omission noted by Michal Bozon
<bozon@natur.cuni.cz>.
(Mark Hammond, other Python/Windows cognoscenti: please check this!)
Fred Drake [Mon, 17 Apr 2000 14:56:31 +0000 (14:56 +0000)]
Clarify the description of the else clause for try/except, and add an
explanation of why you'd want to use it.
Based on a question from Michael Simcich <msimcich@accesstools.com>.
Greg Ward [Sat, 15 Apr 2000 22:23:47 +0000 (22:23 +0000)]
Reformatted all exception documentation as docstrings.
Greg Ward [Sat, 15 Apr 2000 22:15:07 +0000 (22:15 +0000)]
Cleaned up/simplified error-handling:
- DistutilsOptionError is now documented as it's actually used, ie.
to indicate bogus option values (usually user options, eg. from
the command-line)
- added DistutilsSetupError to indicate errors that definitely arise
in the setup script
- got rid of DistutilsValueError, and changed all usage of it to
either DistutilsSetupError or ValueError as appropriate
- simplified a bunch of option get/set methods in Command and
Distribution classes -- just pass on AttributeError most of
the time, rather than turning it into something else
Jeremy Hylton [Fri, 14 Apr 2000 19:13:24 +0000 (19:13 +0000)]
Fix PR#7 comparisons of recursive objects
Note that comparisons of deeply nested objects can still dump core in
extreme cases.
Fred Drake [Fri, 14 Apr 2000 14:01:34 +0000 (14:01 +0000)]
Anthony Baxter <anthony@interlink.com.au>:
The following adds support for RTSP (RFC2326) URLs to the standard
urlparse.py module.
(Augmented by FLD to include rtspu:, specified in the same RFC & OK'd
by Anthony.)
Greg Ward [Fri, 14 Apr 2000 13:53:34 +0000 (13:53 +0000)]
Don't run "ranlib" if sysconfig's RANLIB (from Python's Makefile) starts
with ":".
Greg Ward [Fri, 14 Apr 2000 01:53:36 +0000 (01:53 +0000)]
Various wording/formattin tweaks.
Started spewing "Creating Built Distributions" section.
Greg Ward [Fri, 14 Apr 2000 00:50:49 +0000 (00:50 +0000)]
Use 'get_python_inc()' to figure out the Python include directories
rather than cobbling them togethere here.
Greg Ward [Fri, 14 Apr 2000 00:49:30 +0000 (00:49 +0000)]
Coerce all paths in the manifest template to the local path syntax with
'native_path()'.
Greg Ward [Fri, 14 Apr 2000 00:48:15 +0000 (00:48 +0000)]
Cleaned up use of sysconfig module a bit: don't import more names
than we actually use, and do actually use AR and SO.
Run ranlib on static libraries. (Should probably have a platform-check
so we don't run ranlib when it's not necessary, ie. on most modern
Unices.)
Greg Ward [Fri, 14 Apr 2000 00:39:31 +0000 (00:39 +0000)]
Don't bother reading config.h on NT or Mac OS. (It's not really needed
on Unix either, so should probably disappear entirely.)
Fred Drake [Thu, 13 Apr 2000 20:03:20 +0000 (20:03 +0000)]
Simplify creation of the version_info value for clarity, per
suggestion from Greg Stein.
Fred Drake [Thu, 13 Apr 2000 17:51:58 +0000 (17:51 +0000)]
Update change to version_info structure.
Fred Drake [Thu, 13 Apr 2000 17:44:51 +0000 (17:44 +0000)]
Capitulate, changing version_info to a 5-tuple:
major, minor, micro, level, serial
Values are now monotonically increasing with each new release.
Fred Drake [Thu, 13 Apr 2000 16:54:17 +0000 (16:54 +0000)]
Document hexversion (incompletely explained) and version_info (easily
explained).
Fred Drake [Thu, 13 Apr 2000 15:29:10 +0000 (15:29 +0000)]
Define version_info to be a tuple (major, minor, micro, level); level
is a string "a2", "b1", "c1", or '' for a final release.
Added version_info and hexversion to the module docstring.
Barry Warsaw [Thu, 13 Apr 2000 15:20:40 +0000 (15:20 +0000)]
setup_confname_table(): Close memory leak caused by not decref'ing the
inserted dictionary values. Also, simplified the logic a bit.
Fred Drake [Thu, 13 Apr 2000 14:52:27 +0000 (14:52 +0000)]
Thomas Heller <thomas.heller@ion-tof.com>:
ihooks.ModuleLoader does not implement reload(mod) correctly:
If mod has already been loaded by ModuleLoader, it has
been returned from a cache. Added an additional parameter
to import_it() to force reloading.
Fred Drake [Thu, 13 Apr 2000 14:12:38 +0000 (14:12 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Updated to version 1.4.
Fred Drake [Thu, 13 Apr 2000 14:11:56 +0000 (14:11 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added test for Unicode string concatenation.
Fred Drake [Thu, 13 Apr 2000 14:11:21 +0000 (14:11 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added more documentation. Clarified some existing comments.
Fred Drake [Thu, 13 Apr 2000 14:10:44 +0000 (14:10 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Fixed problem with Unicode string concatenation:
u = (u"abc" u"abc") previously dumped core.
Fred Drake [Thu, 13 Apr 2000 14:10:04 +0000 (14:10 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added test output for Unicode string concatenation test.
Fred Drake [Thu, 13 Apr 2000 02:42:50 +0000 (02:42 +0000)]
When refering to Unicode characters in exception messages and
docstrings, the documentation guidelines call for "Unicode", not
"unicode". Comply.
Jeremy Hylton [Wed, 12 Apr 2000 22:04:01 +0000 (22:04 +0000)]
raise TypeError when bad argument passed to cStringIO.StringIO
Jeremy Hylton [Wed, 12 Apr 2000 21:19:47 +0000 (21:19 +0000)]
ord: provide better error messages
Greg Ward [Wed, 12 Apr 2000 14:20:15 +0000 (14:20 +0000)]
Added note about usual default prefix under Linux (thanks to Peter Funk
for the idea).
Greg Ward [Wed, 12 Apr 2000 01:44:35 +0000 (01:44 +0000)]
Trying to placate Fred: redefine \tilde and \bslash; document everything.
Still some not-quite-standard definitions in here that I have to fix.
Greg Ward [Wed, 12 Apr 2000 01:42:19 +0000 (01:42 +0000)]
Changed the table of per-platform default installation locations to be
more consistent with the rest of the Python docs.
Fred Drake [Tue, 11 Apr 2000 19:46:40 +0000 (19:46 +0000)]
Make use of \longprogramopt where appropriate.
Fred Drake [Tue, 11 Apr 2000 19:08:30 +0000 (19:08 +0000)]
Elaborate descriptions of \e, \module.
Describe policy on vertical lines in tables.
Fred Drake [Tue, 11 Apr 2000 18:52:52 +0000 (18:52 +0000)]
Revise the description of \programopt, document \longprogramopt.
Fred Drake [Tue, 11 Apr 2000 18:47:59 +0000 (18:47 +0000)]
\longprogramopt: New macro.
Fred Drake [Tue, 11 Apr 2000 18:46:59 +0000 (18:46 +0000)]
do_cmd_longprogramopt(): New function.
cvs2svn [Tue, 11 Apr 2000 17:11:09 +0000 (17:11 +0000)]
This commit was manufactured by cvs2svn to create tag 'r16a2'.
Guido van Rossum [Tue, 11 Apr 2000 17:11:09 +0000 (17:11 +0000)]
Add weasel-words about versioning, so I don't have to check in a new
README for each new alpha release.
Guido van Rossum [Tue, 11 Apr 2000 15:41:38 +0000 (15:41 +0000)]
Deleted trailing whitespace. This is really a way to be able to add
a missing part of the previous checkin message:
Marc-Andre Lemburg:
Added encoding name attributes to wrapper classes which
allow applications to check the used encoding names.
Guido van Rossum [Tue, 11 Apr 2000 15:39:46 +0000 (15:39 +0000)]
Marc-Andre Lemburg:
Changed PyUnicode_Splitlines() maxsplit argument to keepends.
The maxsplit functionality was replaced by the keepends
functionality which allows keeping the line end markers together
with the string.
Guido van Rossum [Tue, 11 Apr 2000 15:39:26 +0000 (15:39 +0000)]
Marc-Andre Lemburg:
The maxsplit functionality in .splitlines() was replaced by the keepends
functionality which allows keeping the line end markers together
with the string.
Added support for '%r' % obj: this inserts repr(obj) rather
than str(obj).
Guido van Rossum [Tue, 11 Apr 2000 15:39:02 +0000 (15:39 +0000)]
Marc-Andre Lemburg:
Added a few missing whitespace Unicode char mappings.
Thanks to Brian Hooper.
Guido van Rossum [Tue, 11 Apr 2000 15:38:46 +0000 (15:38 +0000)]
Marc-Andre Lemburg:
The maxsplit functionality in .splitlines() was replaced by the keepends
functionality which allows keeping the line end markers together
with the string.
Guido van Rossum [Tue, 11 Apr 2000 15:38:23 +0000 (15:38 +0000)]
Marc-Andre Lemburg:
Added special case to unicode(): when being passed a
Unicode object as first argument, return the object as-is.
Raises an exception when given a Unicode object *and* an
encoding name.
Guido van Rossum [Tue, 11 Apr 2000 15:37:43 +0000 (15:37 +0000)]
Marc-Andre Lemburg:
Added .writelines(), .readlines() and .readline() to all
codec classes.
Guido van Rossum [Tue, 11 Apr 2000 15:37:24 +0000 (15:37 +0000)]
Marc-Andre Lemburg:
Modified .splitlines() tests according to the changes
in stringobject.c.
Guido van Rossum [Tue, 11 Apr 2000 15:37:02 +0000 (15:37 +0000)]
Marc-Andre Lemburg:
Modified .splitlines() tests according to the changes
in unicodeobject.c.
Guido van Rossum [Tue, 11 Apr 2000 15:30:19 +0000 (15:30 +0000)]
Two more items.
Greg Ward [Tue, 11 Apr 2000 02:01:52 +0000 (02:01 +0000)]
LaTeX macros for the Distutils manuals.
Perhaps these should be added to the standard Python style file?
Greg Ward [Tue, 11 Apr 2000 02:00:26 +0000 (02:00 +0000)]
Spewed a bunch more verbiage.
Lots of scattered wording changes.
Guido van Rossum [Mon, 10 Apr 2000 21:34:37 +0000 (21:34 +0000)]
Correct fix by Mark Favas for the cast problems.
Guido van Rossum [Mon, 10 Apr 2000 21:14:05 +0000 (21:14 +0000)]
I've had complaints about the comparison "where >= 0" before -- on
IRIX, it doesn't even compile. Added a cast: "where >= (char *)0".
Guido van Rossum [Mon, 10 Apr 2000 19:45:09 +0000 (19:45 +0000)]
Version 1.3 of the Python Unicode Integration proposal.
Fred Drake [Mon, 10 Apr 2000 19:38:24 +0000 (19:38 +0000)]
Added reference count information for Py_FindMethod().
Guido van Rossum [Mon, 10 Apr 2000 19:36:27 +0000 (19:36 +0000)]
Install the docs (with fewer rules).
Add descriptions for the system variables.
Guido van Rossum [Mon, 10 Apr 2000 19:14:16 +0000 (19:14 +0000)]
Bunch of new names, mostly from patches and bugs mailing lists
(everyone who said something remotely useful in the last 100 messages
I archived has been added :-).
Fred Drake [Mon, 10 Apr 2000 18:50:14 +0000 (18:50 +0000)]
Yet another markup nit: functions that are part of the Python/C API
are still C functions, and should be marked.
Fred Drake [Mon, 10 Apr 2000 18:46:22 +0000 (18:46 +0000)]
PyErr_Format():
Remove statement that the return value is always NULL; this is
generated by the formatting.
Jeremy Hylton [Mon, 10 Apr 2000 18:40:57 +0000 (18:40 +0000)]
document PyErr_Format
Fred Drake [Mon, 10 Apr 2000 18:35:49 +0000 (18:35 +0000)]
letters:
Fix description; lowercase and uppercase are strings, not
functions! Noted by Randall Hopper <aa8vb@yahoo.com>.
maketrans():
Minor markup nits in description.
Fred Drake [Mon, 10 Apr 2000 18:29:21 +0000 (18:29 +0000)]
Add to the comment a description of the "null" value for returned
PyObject* values.
Fred Drake [Mon, 10 Apr 2000 18:26:45 +0000 (18:26 +0000)]
load_refcounts(),
do_env_cfuncdesc(): Support the "null" value for the refcounts field
in refcounts.dat.
Fred Drake [Mon, 10 Apr 2000 18:25:09 +0000 (18:25 +0000)]
The reference count field for PyErr_NoMemory() and
PyErr_SetFromErrno() should be "null".
Fred Drake [Mon, 10 Apr 2000 18:24:26 +0000 (18:24 +0000)]
If the refcount field is "null", that's ok; the value will be None.
Fred Drake [Mon, 10 Apr 2000 18:23:47 +0000 (18:23 +0000)]
For functions which return a PyObject* but use "null" for the
reference count field, state that the return value is always NULL.
(Useful for some PyErr_*() flavors.)
Fred Drake [Mon, 10 Apr 2000 18:21:38 +0000 (18:21 +0000)]
cfuncdesc environment:
When processing the optional parameter, don't append any text;
let the pre-processor supply all of it.
Guido van Rossum [Mon, 10 Apr 2000 17:56:36 +0000 (17:56 +0000)]
Added project dependencies -- Mark is right, these are needed.
Guido van Rossum [Mon, 10 Apr 2000 17:52:44 +0000 (17:52 +0000)]
Strangely, we *do* need to define ZLIB_DLL.
Do it in the project file rather than in the source,
so it's easier for Mark to change.
Fred Drake [Mon, 10 Apr 2000 17:47:14 +0000 (17:47 +0000)]
do_cmd_datalineni(): New function, to implement the non-indexing form
of \dataline.
Guido van Rossum [Mon, 10 Apr 2000 17:41:37 +0000 (17:41 +0000)]
Christian Tismer: added test to ensure that multiplication commutes.
[The test is in a slightly odd place, in test_division_2; but it
exercises the recent change to long_mult(), and that's all we really
ask for. --GvR]
Guido van Rossum [Mon, 10 Apr 2000 17:31:58 +0000 (17:31 +0000)]
Simple optimization by Christian Tismer, who gives credit to Lenny
Kneler for reporting this issue: long_mult() is faster when the
smaller argument is on the left. Swap the arguments accordingly.
Guido van Rossum [Mon, 10 Apr 2000 17:16:12 +0000 (17:16 +0000)]
Implement suggestion from Lawrence Kesteloot in PR#280, to change the
default list of files from () to None, and explicitly test for None
before defaulting to sys.argv[1:]. This means that if you pass in an
explicit empty list, it will read stdin instead of defaulting to
sys.argv[1:]. This fixes a buglet in the test script (when called
with options but without files, it chokes when it tries to interpret
the options as files).
Lawrence adds: "I suspect that this is a safe change, because I can't
imagine someone actively passing in an empty list when they want
sys.argv used."
I agree.
Guido van Rossum [Mon, 10 Apr 2000 17:10:48 +0000 (17:10 +0000)]
Fredrik Lundh: new snapshot. Mostly reindented.
This one should work with unicode expressions, and compile
a bit more silently.
Guido van Rossum [Mon, 10 Apr 2000 17:07:24 +0000 (17:07 +0000)]
Removed CRLF line endings.
Guido van Rossum [Mon, 10 Apr 2000 17:06:55 +0000 (17:06 +0000)]
Remove CRLF line endings.
Fredrik Lundh: add two missing casts.
Guido van Rossum [Mon, 10 Apr 2000 17:02:46 +0000 (17:02 +0000)]
Some cleanup -- don't use splitfields/joinfields, standardize
indentation (tabs only), rationalize some code in urljoin...