]> granicus.if.org Git - python/log
python
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.

24 years agoAdd to the comment a description of the "null" value for returned
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.

24 years agoload_refcounts(),
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.

24 years agoThe reference count field for PyErr_NoMemory() and
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".

24 years agoIf the refcount field is "null", that's ok; the value will be None.
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.

24 years agoFor functions which return a PyObject* but use "null" for the
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.)

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

24 years agoAdded project dependencies -- Mark is right, these are needed.
Guido van Rossum [Mon, 10 Apr 2000 17:56:36 +0000 (17:56 +0000)]
Added project dependencies -- Mark is right, these are needed.

24 years agoStrangely, we *do* need to define ZLIB_DLL.
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.

24 years agodo_cmd_datalineni(): New function, to implement the non-indexing form
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.

24 years agoChristian Tismer: added test to ensure that multiplication commutes.
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]

24 years agoSimple optimization by Christian Tismer, who gives credit to Lenny
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.

24 years agoImplement suggestion from Lawrence Kesteloot in PR#280, to change the
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.

24 years agoFredrik Lundh: new snapshot. Mostly reindented.
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.