]> granicus.if.org Git - python/log
python
24 years agoCheck that 'self.formats' is good early on.
Greg Ward [Sat, 22 Apr 2000 03:11:55 +0000 (03:11 +0000)]
Check that 'self.formats' is good early on.

24 years agoCatch DistutilsOptionError in 'setup()' -- it's thrown either because of
Greg Ward [Sat, 22 Apr 2000 03:11:17 +0000 (03:11 +0000)]
Catch DistutilsOptionError in 'setup()' -- it's thrown either because of
errors in the setup script or on the command line, so shouldn't result
in a traceback.

24 years agoExtracted the "what-do-I-do-for-this-format" logic from code in
Greg Ward [Sat, 22 Apr 2000 03:09:56 +0000 (03:09 +0000)]
Extracted the "what-do-I-do-for-this-format" logic from code in
  'make_archive()' to a global static dictionary, ARCHIVE_FORMATS.
Added 'check_archive_formats()', which obviously makes good use of
  this dictionary.

24 years agoFix how we generate the meta-data query methods to include 'get_fullname()'
Greg Ward [Sat, 22 Apr 2000 02:52:44 +0000 (02:52 +0000)]
Fix how we generate the meta-data query methods to include 'get_fullname()'
and the other "composite meta-data" methods.

24 years agoChanged to call 'get_fullname()', not 'get_full_name()', on Distribution object.
Greg Ward [Sat, 22 Apr 2000 02:51:25 +0000 (02:51 +0000)]
Changed to call 'get_fullname()', not 'get_full_name()', on Distribution object.

24 years agoMade the GUSI options work again with GUSI 2.
Jack Jansen [Fri, 21 Apr 2000 23:53:37 +0000 (23:53 +0000)]
Made the GUSI options work again with GUSI 2.

24 years agoAdded winsound project to workspace, and added -I options to winsound
Guido van Rossum [Fri, 21 Apr 2000 21:43:40 +0000 (21:43 +0000)]
Added winsound project to workspace, and added -I options to winsound

24 years agoPatch by Vladimir Marangozov to unload additionally imported modules
Guido van Rossum [Fri, 21 Apr 2000 21:35:06 +0000 (21:35 +0000)]
Patch by Vladimir Marangozov to unload additionally imported modules
after each test has been run.  This avoids excessive memory growth
during the tests.

24 years agoAdded test_winsound by Mark Hammond.
Guido van Rossum [Fri, 21 Apr 2000 21:28:47 +0000 (21:28 +0000)]
Added test_winsound by Mark Hammond.

24 years agoMark Hammond:
Guido van Rossum [Fri, 21 Apr 2000 21:26:43 +0000 (21:26 +0000)]
Mark Hammond:

* Base address for all extension modules updated. PC\dllbase_nt.txt
also updated.  Erroneous "libpath" directory removed for all
projects.

* winsound module moved from a builtin module to an extension
module.  This was done primarily to avoid Python16.dll needing to
pull in winmm.dll.  Really dumb test added for winsound - but if
nothing else it ensures the module imports.

24 years agoMark Hammond:
Guido van Rossum [Fri, 21 Apr 2000 21:26:08 +0000 (21:26 +0000)]
Mark Hammond:

* Temp directory for all projects are now specific to the project
(rather than common as before).  This avoids any conflicts with
debug symbols or common file names etc.
NOTE: You should manually delete your existing build directory after
applying this patch, as the MSVC "clean" command will now only clean
the new temporary directories - not the existing common temp
directory.

* Base address for all extension modules updated. PC\dllbase_nt.txt
also updated.  Erroneous "libpath" directory removed for all
projects.

* winsound module moved from a builtin module to an extension
module.  This was done primarily to avoid Python16.dll needing to
pull in winmm.dll.  Really dumb test added for winsound - but if
nothing else it ensures the module imports.

24 years agoCharles Waldman writes:
Guido van Rossum [Fri, 21 Apr 2000 21:17:39 +0000 (21:17 +0000)]
Charles Waldman writes:

"""
Running "test_extcall" repeatedly results in memory leaks.

One of these can't be fixed (at least not easily!), it happens since
this code:

def saboteur(**kw):
    kw['x'] = locals()
d = {}
saboteur(a=1, **d)

creates a circular reference - d['x']['d']==d

The others are due to some missing decrefs in ceval.c, fixed by the
patch attached below.

Note:  I originally wrote this without the "goto", just adding the
missing decref's where needed.  But I think the goto is justified in
keeping the executable code size of ceval as small as possible.
"""

[I think the circular reference is more like kw['x']['kw'] == kw. --GvR]

24 years agoPatch by Charles G Waldman to avoid a sneaky memory leak in
Guido van Rossum [Fri, 21 Apr 2000 21:15:05 +0000 (21:15 +0000)]
Patch by Charles G Waldman to avoid a sneaky memory leak in
_PyTuple_Resize().  In addition, a change suggested by Jeremy Hylton
to limit the size of the free lists is also merged into this patch.

Charles wrote initially:

"""
Test Case:  run the following code:

class Nothing:
    def __len__(self):
        return 5
    def __getitem__(self, i):
        if i < 3:
            return i
        else:
            raise IndexError, i

def g(a,*b,**c):
    return

for x in xrange(1000000):
    g(*Nothing())

and watch Python's memory use go up and up.

Diagnosis:

The analysis begins with the call to PySequence_Tuple at line 1641 in
ceval.c - the argument to g is seen to be a sequence but not a tuple,
so it needs to be converted from an abstract sequence to a concrete
tuple.  PySequence_Tuple starts off by creating a new tuple of length
5 (line 1122 in abstract.c).  Then at line 1149, since only 3 elements
were assigned, _PyTuple_Resize is called to make the 5-tuple into a
3-tuple.  When we're all done the 3-tuple is decrefed, but rather than
being freed it is placed on the free_tuples cache.

The basic problem is that the 3-tuples are being added to the cache
but never picked up again, since _PyTuple_Resize doesn't make use of
the free_tuples cache.  If you are resizing a 5-tuple to a 3-tuple and
there is already a 3-tuple in free_tuples[3], instead of using this
tuple, _PyTuple_Resize will realloc the 5-tuple to a 3-tuple.  It
would more efficient to use the existing 3-tuple and cache the
5-tuple.

By making _PyTuple_Resize aware of the free_tuples (just as
PyTuple_New), we not only save a few calls to realloc, but also
prevent this misbehavior whereby tuples are being added to the
free_tuples list but never properly "recycled".
"""

And later:

"""
This patch replaces my submission of Sun, 16 Apr and addresses Jeremy
Hylton's suggestions that we also limit the size of the free tuple
list.  I chose 2000 as the maximum number of tuples of any particular
size to save.

There was also a problem with the previous version of this patch
causing a core dump if Python was built with Py_TRACE_REFS.  This is
fixed in the below version of the patch, which uses tupledealloc
instead of _Py_Dealloc.
"""

24 years agoCharles Waldman writes:
Guido van Rossum [Fri, 21 Apr 2000 20:49:58 +0000 (20:49 +0000)]
Charles Waldman writes:

"""
In the course of debugging this I also saw that cPickle is
inconsistent with pickle - if you attempt a pickle.load or pickle.dump
on a closed file, you get a ValueError, whereas the corresponding
cPickle operations give an IOError.  Since cPickle is advertised as
being compatible with pickle, I changed these exceptions to match.
"""

24 years agoCharles Waldman writes:
Guido van Rossum [Fri, 21 Apr 2000 20:49:36 +0000 (20:49 +0000)]
Charles Waldman writes:

"""
Problem description:

Run the following script:

import test.test_cpickle
for x in xrange(1000000):
    reload(test.test_cpickle)

Watch Python's memory use go up up and away!

In the course of debugging this I also saw that cPickle is
inconsistent with pickle - if you attempt a pickle.load or pickle.dump
on a closed file, you get a ValueError, whereas the corresponding
cPickle operations give an IOError.  Since cPickle is advertised as
being compatible with pickle, I changed these exceptions to match.
"""

24 years agoUse an explicit macro SOCKETCLOSE which expands to closesocket (on
Guido van Rossum [Fri, 21 Apr 2000 20:33:00 +0000 (20:33 +0000)]
Use an explicit macro SOCKETCLOSE which expands to closesocket (on
Windows), soclose (on OS2), or to close (everywhere else).

Hopefully this fixes a new compilation error that I suddenly get on
Windows because the macro definition for close -> closesocket
apparently was done before including io.h, which contains a prototype
for close.  (No idea why this wasn't an error before.)

24 years agoPatch by Brian Hooper, somewhat augmented by GvR, to strip a trailing
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!)

24 years agoDoc strings for the spawn* functions, by Michael Hudson.
Guido van Rossum [Fri, 21 Apr 2000 18:35:36 +0000 (18:35 +0000)]
Doc strings for the spawn* functions, by Michael Hudson.

24 years agoFix 'check_metadata()' so it grovels through the distribution's metadata
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).

24 years agoPatch from Andrew Kuchling: document the new multiple pattern feature in the
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.

24 years agoPatch from Andrew Kuchling: allow multiple include/exclude patterns
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'.

24 years agoFixed the '--license' option so it's officially an alias for '--licence',
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.

24 years agoAdded the capability for alias options.
Greg Ward [Fri, 21 Apr 2000 04:22:01 +0000 (04:22 +0000)]
Added the capability for alias options.

24 years agoAdded 'has_option()', 'get_attr_name()' methods.
Greg Ward [Fri, 21 Apr 2000 02:31:07 +0000 (02:31 +0000)]
Added 'has_option()', 'get_attr_name()' methods.

24 years agoPatch, originally from Bastian Kleineidam and savagely mutilated by me,
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.

24 years agoMade 'generate_help()' and 'print_help()' methods of FancyGetopt.
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.

24 years agoContinuing the refactoring: deleted the old 'fancy_getopt()' function,
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.

24 years agoHefty refactoring: converted 'fancy_getopt()' function into FancyGetopt
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.)

24 years agoReformatted wide paragraphs.
Greg Ward [Wed, 19 Apr 2000 22:48:09 +0000 (22:48 +0000)]
Reformatted wide paragraphs.

24 years agoReverted '\var' in the "standard installation location" table to '\filevar'.
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.

24 years agoDropped '\tilde' and '\bslash' definitions.
Greg Ward [Wed, 19 Apr 2000 22:40:34 +0000 (22:40 +0000)]
Dropped '\tilde' and '\bslash' definitions.

24 years agoChanged '\tilde' and '\bslash' to the standard '\textasciitilde' and
Greg Ward [Wed, 19 Apr 2000 22:40:12 +0000 (22:40 +0000)]
Changed '\tilde' and '\bslash' to the standard '\textasciitilde' and
'\textbackslash'.

24 years agoRemoved '\package' definition.
Greg Ward [Wed, 19 Apr 2000 22:36:33 +0000 (22:36 +0000)]
Removed '\package' definition.

24 years agoChanged '\package' to \module'.
Greg Ward [Wed, 19 Apr 2000 22:36:24 +0000 (22:36 +0000)]
Changed '\package' to \module'.

24 years agoChanged '\option' to '\longprogramopt' wherever it referred to a command-line
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.

24 years agoANSI-fy & de-tabify the source.
Fred Drake [Wed, 19 Apr 2000 13:54:15 +0000 (13:54 +0000)]
ANSI-fy & de-tabify the source.
(4-space indents already used.)

24 years agoBumped version to 0.8.1.
Greg Ward [Wed, 19 Apr 2000 02:23:21 +0000 (02:23 +0000)]
Bumped version to 0.8.1.

24 years agoAdded kludge to deal with the "./ld_so_aix" problem: force all strings
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).

24 years agoDon't load the config.h file, even under Unix, because we never use the
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.

24 years agoAdded 'link_executable()' method (Berthold Hoellmann).
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()'.

24 years agoFix by Dan Green and Corran Webster to support LongDateTime
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.

24 years agoAdded documentation for WindowsError; omission noted by Michal Bozon
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!)

24 years agoClarify the description of the else clause for try/except, and add an
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>.

24 years agoReformatted all exception documentation as docstrings.
Greg Ward [Sat, 15 Apr 2000 22:23:47 +0000 (22:23 +0000)]
Reformatted all exception documentation as docstrings.

24 years agoCleaned up/simplified error-handling:
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

24 years agoFix PR#7 comparisons of recursive objects
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.

24 years agoAnthony Baxter <anthony@interlink.com.au>:
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.)

24 years agoDon't run "ranlib" if sysconfig's RANLIB (from Python's Makefile) starts
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 ":".

24 years agoVarious wording/formattin tweaks.
Greg Ward [Fri, 14 Apr 2000 01:53:36 +0000 (01:53 +0000)]
Various wording/formattin tweaks.
Started spewing "Creating Built Distributions" section.

24 years agoUse 'get_python_inc()' to figure out the Python include directories
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.

24 years agoCoerce all paths in the manifest template to the local path syntax with
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()'.

24 years agoCleaned up use of sysconfig module a bit: don't import more names
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.)

24 years agoDon't bother reading config.h on NT or Mac OS. (It's not really needed
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.)

24 years agoSimplify creation of the version_info value for clarity, per
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.

24 years agoUpdate change to version_info structure.
Fred Drake [Thu, 13 Apr 2000 17:51:58 +0000 (17:51 +0000)]
Update change to version_info structure.

24 years agoCapitulate, changing version_info to a 5-tuple:
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.

24 years agoDocument hexversion (incompletely explained) and version_info (easily
Fred Drake [Thu, 13 Apr 2000 16:54:17 +0000 (16:54 +0000)]
Document hexversion (incompletely explained) and version_info (easily
explained).

24 years agoDefine version_info to be a tuple (major, minor, micro, level); level
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.

24 years agosetup_confname_table(): Close memory leak caused by not decref'ing the
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.

24 years agoThomas Heller <thomas.heller@ion-tof.com>:
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.

24 years agoM.-A. Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 13 Apr 2000 14:12:38 +0000 (14:12 +0000)]
M.-A. Lemburg <mal@lemburg.com>:

Updated to version 1.4.

24 years agoM.-A. Lemburg <mal@lemburg.com>:
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.

24 years agoM.-A. Lemburg <mal@lemburg.com>:
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.

24 years agoM.-A. Lemburg <mal@lemburg.com>:
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.

24 years agoM.-A. Lemburg <mal@lemburg.com>:
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.

24 years agoWhen refering to Unicode characters in exception messages and
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.

24 years agoraise TypeError when bad argument passed to cStringIO.StringIO
Jeremy Hylton [Wed, 12 Apr 2000 22:04:01 +0000 (22:04 +0000)]
raise TypeError when bad argument passed to cStringIO.StringIO

24 years agoord: provide better error messages
Jeremy Hylton [Wed, 12 Apr 2000 21:19:47 +0000 (21:19 +0000)]
ord: provide better error messages

24 years agoAdded note about usual default prefix under Linux (thanks to Peter Funk
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).

24 years agoTrying to placate Fred: redefine \tilde and \bslash; document everything.
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.

24 years agoChanged the table of per-platform default installation locations to be
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.

24 years agoMake use of \longprogramopt where appropriate.
Fred Drake [Tue, 11 Apr 2000 19:46:40 +0000 (19:46 +0000)]
Make use of \longprogramopt where appropriate.

24 years agoElaborate descriptions of \e, \module.
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.

24 years agoRevise the description of \programopt, document \longprogramopt.
Fred Drake [Tue, 11 Apr 2000 18:52:52 +0000 (18:52 +0000)]
Revise the description of \programopt, document \longprogramopt.

24 years ago\longprogramopt: New macro.
Fred Drake [Tue, 11 Apr 2000 18:47:59 +0000 (18:47 +0000)]
\longprogramopt:  New macro.

24 years agodo_cmd_longprogramopt(): New function.
Fred Drake [Tue, 11 Apr 2000 18:46:59 +0000 (18:46 +0000)]
do_cmd_longprogramopt():  New function.

24 years agoThis commit was manufactured by cvs2svn to create tag 'r16a2'. v1.6a2
cvs2svn [Tue, 11 Apr 2000 17:11:09 +0000 (17:11 +0000)]
This commit was manufactured by cvs2svn to create tag 'r16a2'.

24 years agoAdd weasel-words about versioning, so I don't have to check in a new
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.

24 years agoDeleted trailing whitespace. This is really a way to be able to add
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.

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
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).

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
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.

24 years agoMarc-Andre Lemburg:
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.

24 years agoTwo more items.
Guido van Rossum [Tue, 11 Apr 2000 15:30:19 +0000 (15:30 +0000)]
Two more items.

24 years agoLaTeX macros for the Distutils manuals.
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?

24 years agoSpewed a bunch more verbiage.
Greg Ward [Tue, 11 Apr 2000 02:00:26 +0000 (02:00 +0000)]
Spewed a bunch more verbiage.
Lots of scattered wording changes.

24 years agoCorrect fix by Mark Favas for the cast problems.
Guido van Rossum [Mon, 10 Apr 2000 21:34:37 +0000 (21:34 +0000)]
Correct fix by Mark Favas for the cast problems.

24 years agoI've had complaints about the comparison "where >= 0" before -- on
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".

24 years agoVersion 1.3 of the Python Unicode Integration proposal.
Guido van Rossum [Mon, 10 Apr 2000 19:45:09 +0000 (19:45 +0000)]
Version 1.3 of the Python Unicode Integration proposal.

24 years agoAdded reference count information for Py_FindMethod().
Fred Drake [Mon, 10 Apr 2000 19:38:24 +0000 (19:38 +0000)]
Added reference count information for Py_FindMethod().

24 years agoInstall the docs (with fewer rules).
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.

24 years agoBunch of new names, mostly from patches and bugs mailing lists
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 :-).

24 years agoYet another markup nit: functions that are part of the Python/C API
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.

24 years agoPyErr_Format():
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.

24 years agodocument PyErr_Format
Jeremy Hylton [Mon, 10 Apr 2000 18:40:57 +0000 (18:40 +0000)]
document PyErr_Format

24 years agoletters:
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.