]> granicus.if.org Git - python/log
python
27 years agoAdded Emacs turd so this file has the correct mode in Emacs / X/Emacs, even
Fred Drake [Mon, 8 Dec 1997 20:59:54 +0000 (20:59 +0000)]
Added Emacs turd so this file has the correct mode in Emacs / X/Emacs, even
if you don't have .perl in your mode table.

27 years agoAdded Emacs turd so this file has the correct mode in Emacs / X/Emacs.
Fred Drake [Mon, 8 Dec 1997 20:58:13 +0000 (20:58 +0000)]
Added Emacs turd so this file has the correct mode in Emacs / X/Emacs.

clean_key():  Override the standard LaTeX2HTML clean_key() to remove a
leading HTML tag, if present.  This broke the indexes for the library
reference (at least) since many of the strings began with <code> or
something similar.

27 years agoUpdated the README to the current status. Added a note about the
Guido van Rossum [Mon, 8 Dec 1997 20:51:26 +0000 (20:51 +0000)]
Updated the README to the current status.  Added a note about the
"times" option.

27 years agoNew version from AMK -- with minor corrections to make it legal latex.
Guido van Rossum [Mon, 8 Dec 1997 17:33:40 +0000 (17:33 +0000)]
New version from AMK -- with minor corrections to make it legal latex.

27 years agoNew pcre version from AMK
Guido van Rossum [Mon, 8 Dec 1997 17:15:20 +0000 (17:15 +0000)]
New pcre version from AMK

27 years agoNew re version from AMK
Guido van Rossum [Mon, 8 Dec 1997 17:12:06 +0000 (17:12 +0000)]
New re version from AMK

27 years agoFixed SFT #23842: leave in non-standard style options when checking in an
Fred Drake [Mon, 8 Dec 1997 15:48:35 +0000 (15:48 +0000)]
Fixed SFT #23842:  leave in non-standard style options when checking in an
update.  ;-(

27 years agoRemove the last bits of log from the leading comments.
Guido van Rossum [Mon, 8 Dec 1997 15:16:08 +0000 (15:16 +0000)]
Remove the last bits of log from the leading comments.

27 years agoJim Fulton:
Guido van Rossum [Mon, 8 Dec 1997 15:15:16 +0000 (15:15 +0000)]
Jim Fulton:

        - Loading non-binary string pickles checks for insecure
          strings. This is needed because cPickle (still)
          uses a restricted eval to parse non-binary string pickles.
          This change is needed to prevent untrusted
          pickles like::

            "S'hello world'*2000000\012p0\012."

          from hosing an application.

        - User-defined types can now support unpickling without
          executing a constructor.

          The second value returned from __reduce__ can now be None,
          rather than an argument tuple. On unpickling, if the second
          value returned from __reduce__ during pickling was None, then
          rather than calling the first value returned from __reduce__,
          directly, the __basicnew__ method of the first value returned
          from __reduce__ is called without arguments.

27 years agoFor RedHat Linux 5.0, added notes about needing to remove the LinuxThreads
Fred Drake [Mon, 8 Dec 1997 14:10:40 +0000 (14:10 +0000)]
For RedHat Linux 5.0, added notes about needing to remove the LinuxThreads
package, and -lcrypt for the crypt module.

27 years agoAdd special handling for Python modules that are imported implicitly
Guido van Rossum [Mon, 8 Dec 1997 05:01:06 +0000 (05:01 +0000)]
Add special handling for Python modules that are imported implicitly
by the Python runtime: 'site' and 'exceptions'.

27 years agoApply the same change to classes without an __getinitargs__() method
Guido van Rossum [Sun, 7 Dec 1997 16:18:22 +0000 (16:18 +0000)]
Apply the same change to classes without an __getinitargs__() method
as in pickle: the new instance is created without calling __init__().

27 years agoSome reorganization (all limit operations & constants together, and all usage
Fred Drake [Sat, 6 Dec 1997 07:25:41 +0000 (07:25 +0000)]
Some reorganization (all limit operations & constants together, and all usage
functions and constants together).

Make explicit datadesc sections for each of the constants which might appear,
and have a description of each.  (Descriptions are based on the Linux
documentation and sources and the Solaris man pages.)

Hopefully Jeremy won't mind, because I didn't ask.  ;-)

27 years agoSome manipulations with tags to get the TOC and Index to look better
Guido van Rossum [Sat, 6 Dec 1997 00:39:45 +0000 (00:39 +0000)]
Some manipulations with tags to get the TOC and Index to look better

27 years agoNew WML file, this time with working Title and Author tags, and
Guido van Rossum [Sat, 6 Dec 1997 00:38:30 +0000 (00:38 +0000)]
New WML file, this time with working Title and Author tags, and
mapping chapter and section headings to more appropriate nodes so that
the TOC actually works.  Now generates one HTML page per chapter.

27 years agoAdded some links to OO-Browser, given by Harri Pasanen.
Barry Warsaw [Sat, 6 Dec 1997 00:00:47 +0000 (00:00 +0000)]
Added some links to OO-Browser, given by Harri Pasanen.

Updated the to do list.

27 years agoAnother large batch of patches from Jeff Rush for OS/2.
Guido van Rossum [Fri, 5 Dec 1997 22:19:34 +0000 (22:19 +0000)]
Another large batch of patches from Jeff Rush for OS/2.

I hope this time I've taken out all // comments and indended #ifdefs.

27 years agoNew batch of patches by Jeff Rush; moved his readme.txt portion here.
Guido van Rossum [Fri, 5 Dec 1997 22:07:14 +0000 (22:07 +0000)]
New batch of patches by Jeff Rush; moved his readme.txt portion here.

27 years agoMoved Jeff Rush's ever expanding comments to os2vacpp/readme.txt.
Guido van Rossum [Fri, 5 Dec 1997 22:06:23 +0000 (22:06 +0000)]
Moved Jeff Rush's ever expanding comments to os2vacpp/readme.txt.

27 years agoTwo changes by Jeff Rush (slightly tweaked):
Guido van Rossum [Fri, 5 Dec 1997 21:56:45 +0000 (21:56 +0000)]
Two changes by Jeff Rush (slightly tweaked):

- New option -x, to skip first line of script

- Use the correct platform-specific delimiter and library location in
the usage message

(Also removed two blank lines and moved one line around so that each
part of the usage message is again under 512 bytes and the whole usage
message still fits in 23 lines.)

27 years agoJeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2.
Guido van Rossum [Fri, 5 Dec 1997 21:45:29 +0000 (21:45 +0000)]
Jeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2.

27 years agoUse the proper OS2 test symbol: PYOS_OS2.
Guido van Rossum [Fri, 5 Dec 1997 21:39:25 +0000 (21:39 +0000)]
Use the proper OS2 test symbol: PYOS_OS2.

27 years agoReindented according to new standard, without tabs.
Guido van Rossum [Fri, 5 Dec 1997 21:24:30 +0000 (21:24 +0000)]
Reindented according to new standard, without tabs.
Also added one more os2 specific piece of code, by Jeff Rush.

27 years agoospath.py has been obsolete for long enough.
Guido van Rossum [Fri, 5 Dec 1997 19:49:14 +0000 (19:49 +0000)]
ospath.py has been obsolete for long enough.

27 years agoWhen instantiating a class with no arguments and where the class does
Guido van Rossum [Fri, 5 Dec 1997 19:42:42 +0000 (19:42 +0000)]
When instantiating a class with no arguments and where the class does
not define __getinitargs__, bypass the __init__ constructor
completely.  This uses the trick of instantiating an empty dummy class
and then changing inst.__class__ to the real class.  This is done in
two places: once for the INST and once for the OBJ format code.

Also replaced the much outdated long doc string with a short summary
of the module; the information of that doc string is already
incorporated in the library reference manual.

27 years agoAdded doc strings and reindented according to new standard, without tabs.
Guido van Rossum [Fri, 5 Dec 1997 19:04:51 +0000 (19:04 +0000)]
Added doc strings and reindented according to new standard, without tabs.
(Like ntpath.py, this was contributed by "Charles G. Waldman" <cgw@pgt.com>)

27 years agoAdded doc strings and reindented according to new standard, without tabs.
Guido van Rossum [Fri, 5 Dec 1997 19:03:01 +0000 (19:03 +0000)]
Added doc strings and reindented according to new standard, without tabs.

27 years agoFix the exclusion of "config" in the methods copied from Pack to also
Guido van Rossum [Fri, 5 Dec 1997 17:05:04 +0000 (17:05 +0000)]
Fix the exclusion of "config" in the methods copied from Pack to also
exclude "configure".

27 years agoForgot to use &lt;/&gt; for some example output.
Guido van Rossum [Fri, 5 Dec 1997 16:18:45 +0000 (16:18 +0000)]
Forgot to use &lt;/&gt; for some example output.

27 years agoUse registry key ProgramFilesDir as default MAINDIR
Guido van Rossum [Fri, 5 Dec 1997 06:32:47 +0000 (06:32 +0000)]
Use registry key ProgramFilesDir as default MAINDIR

27 years agoAdd a few more PyErr_ symbols
Guido van Rossum [Fri, 5 Dec 1997 06:32:13 +0000 (06:32 +0000)]
Add a few more PyErr_ symbols

27 years agoAdd pretty icon to python.exe
Guido van Rossum [Fri, 5 Dec 1997 06:31:40 +0000 (06:31 +0000)]
Add pretty icon to python.exe

27 years agoOnly parsing requires Python 1.5
Barry Warsaw [Thu, 4 Dec 1997 19:44:30 +0000 (19:44 +0000)]
Only parsing requires Python 1.5

27 years agoUpdated world codes with latest iso3166 codes
Barry Warsaw [Thu, 4 Dec 1997 19:42:36 +0000 (19:42 +0000)]
Updated world codes with latest iso3166 codes

27 years agoAdded parsing of ISO 3166 files
Barry Warsaw [Thu, 4 Dec 1997 19:35:25 +0000 (19:35 +0000)]
Added parsing of ISO 3166 files

27 years agoMake examples consistently use 4-space indentation.
Fred Drake [Thu, 4 Dec 1997 15:43:15 +0000 (15:43 +0000)]
Make examples consistently use 4-space indentation.

Use \file{} for file names.

Prefer \code{blat} and \emph{blat} to {\tt blat} and {\em blat}; this matches
current style in the Library Reference a bit better.

Made the example startup banner current.  The version number should be
bumped before the next release.

27 years agoFixed unresolved reference problem; this module wasn't \label{}ed.
Fred Drake [Thu, 4 Dec 1997 14:36:52 +0000 (14:36 +0000)]
Fixed unresolved reference problem; this module wasn't \label{}ed.

Remove spurious underscore following book title.  Added specific reference to
a Win32 networking book.

Changed \indexsubitem from (in module SocketServer) to (SocketServer protocol),
since it's talking about a protocol supported by a collection of classes.

27 years agoRemoved unnecessary escaping.
Fred Drake [Thu, 4 Dec 1997 14:20:59 +0000 (14:20 +0000)]
Removed unnecessary escaping.

27 years agoArg; more nits, but I may as well finish the job.
Fred Drake [Thu, 4 Dec 1997 04:57:56 +0000 (04:57 +0000)]
Arg; more nits, but I may as well finish the job.

Removed the large comment remaining from the template documentation
section; the template tells us to remove these once they're not needed.

Remove some trailing whitespace from VM instruction pseudo-code.

27 years agoFixed BINARY_RSHIFT documentation to indicate a right shift instead of a left
Fred Drake [Thu, 4 Dec 1997 04:51:12 +0000 (04:51 +0000)]
Fixed BINARY_RSHIFT documentation to indicate a right shift instead of a left
shift.

Adjust whitespace around "=" in VM machine descriptions to be consistent
throughout the document.

27 years agoChanged {\sc gdbm} to \code{gdbm} everywhere.
Fred Drake [Thu, 4 Dec 1997 04:45:28 +0000 (04:45 +0000)]
Changed {\sc gdbm} to \code{gdbm} everywhere.

Fixed \indexsubitem to gdbm instead of dbm.

Changed dbm to \code{dbm} everywhere.

27 years agoMerge between my version and Jim Fulton's version; removed RCS keywords
Guido van Rossum [Thu, 4 Dec 1997 01:14:08 +0000 (01:14 +0000)]
Merge between my version and Jim Fulton's version; removed RCS keywords
but otherwise unchanged.

27 years agoNew versions of cPickle and cStringIO, from Jim Fulton's cPickle 1.0b1
Guido van Rossum [Thu, 4 Dec 1997 01:13:01 +0000 (01:13 +0000)]
New versions of cPickle and cStringIO, from Jim Fulton's cPickle 1.0b1
distribution.

27 years agoWhen --with-thread(s) is specified, the thread module is now automatically
Guido van Rossum [Thu, 4 Dec 1997 00:51:42 +0000 (00:51 +0000)]
When --with-thread(s) is specified, the thread module is now automatically
enabled.  This is done through a substitution in Modules/Setup.thread(.in).
Bill Janssen will be happy.  The original idea was by Lele Gaifax (though
I changed the implementation to use a separate file).

27 years agoMoved the thread module to its own Setup.thread(.in) file,
Guido van Rossum [Thu, 4 Dec 1997 00:48:27 +0000 (00:48 +0000)]
Moved the thread module to its own Setup.thread(.in) file,
which is edited by the config.status script depending on whether
--with-thread is specified or not.  Also needs changes to configure(.in).

27 years agoPatch my Marc Lemburg to fix urljoin("/a", "..") and urljoin("/a", "..#1").
Guido van Rossum [Wed, 3 Dec 1997 22:38:56 +0000 (22:38 +0000)]
Patch my Marc Lemburg to fix urljoin("/a", "..") and urljoin("/a", "..#1").

27 years agoRefinement of home for NT, courtesy Jeff Bauer.
Guido van Rossum [Wed, 3 Dec 1997 22:34:03 +0000 (22:34 +0000)]
Refinement of home for NT, courtesy Jeff Bauer.

27 years agoAdded handler for opcodedesc environment.
Fred Drake [Wed, 3 Dec 1997 19:45:08 +0000 (19:45 +0000)]
Added handler for opcodedesc environment.

Fixed weird index behavior.

27 years agomake_str_index_entry(): New function. Similar to make_index_entry(), but
Fred Drake [Wed, 3 Dec 1997 19:44:27 +0000 (19:44 +0000)]
make_str_index_entry():  New function.  Similar to make_index_entry(), but
includes the string in the returned value instead of the dummy
filler character.

add_idx():  Override the latex2html function of the same name; this gets
the anchor properly embedded in the <dt> element, so the index
works in Grail too.

27 years agoProvide default for blocksize on retrbinary (Skip Montanaro).
Guido van Rossum [Wed, 3 Dec 1997 19:34:14 +0000 (19:34 +0000)]
Provide default for blocksize on retrbinary (Skip Montanaro).

27 years agoMore generated files for netbsd 1.x, by Anders Andersen.
Guido van Rossum [Wed, 3 Dec 1997 18:44:57 +0000 (18:44 +0000)]
More generated files for netbsd 1.x, by Anders Andersen.

27 years ago(py-jump-on-exception): Variable which if t, means that if an
Barry Warsaw [Wed, 3 Dec 1997 05:25:48 +0000 (05:25 +0000)]
(py-jump-on-exception): Variable which if t, means that if an
exception occurs in a synchronous Python subprocess, the mode will
automatically jump to the innermost exception.

27 years agoRemoved redundant eval-when-compile.
Barry Warsaw [Wed, 3 Dec 1997 05:03:44 +0000 (05:03 +0000)]
Removed redundant eval-when-compile.

(python-mode): Conditionalize imenu initializations to when we can
safely require imenu.  Under Emacs this should prevent python-mode
from hosing the global value of imenu-create-index-function and
messing things up for all other modes.  Problem identified by
Christian Egli.

(py-describe-mode): py-delete-char => py-electric-backspace.  Given by
Christian Egli.

27 years agoThe biggie: changed the funcdesc environments used for opcode descriptions
Fred Drake [Wed, 3 Dec 1997 04:06:57 +0000 (04:06 +0000)]
The biggie:  changed the funcdesc environments used for opcode descriptions
to use the opcodedesc environment.

Changed a \code{} to a \file{} near the start where a file is referenced.

Fixed a typo:  "on" --> "one" in ROT_THREE description.

Wherever opcodes were referenced by name, use \code{OPCODE_NAME}; usage was
inconsistent.  Ideally, another macro would be defined since these don't
represent code a programmer would type, but that's minor even for me.  It'll
probably get converted automatically in the SGML conversion project.  Whether
that matters or not isn't relevant at this point.

27 years agoAdded environment for defining PyVM instructions. This is only used in
Fred Drake [Wed, 3 Dec 1997 03:42:39 +0000 (03:42 +0000)]
Added environment for defining PyVM instructions.  This is only used in
the libdis.tex file I'm about to check in.

I'm not sure this is really an optimal solution yet, but it may be the best
alternative.  It avoids describing the instructions as either data items or
functions.

This change was discussed with Guido.  (Guido:  Take a look at the LaTeX
output for this; if this is reasonable I'll go ahead and update the perl
code in myformat.perl to match.)

27 years agoChange the default repr() and str() of class instance objects to look
Guido van Rossum [Wed, 3 Dec 1997 00:06:02 +0000 (00:06 +0000)]
Change the default repr() and str() of class instance objects to look
like <modulename.classname instance at ...> (to match the repr() of
class objects.

27 years ago(python-mode): Patch to make font-lock work automatically for Emacs.
Barry Warsaw [Tue, 2 Dec 1997 22:01:04 +0000 (22:01 +0000)]
(python-mode): Patch to make font-lock work automatically for Emacs.
Unnecessary for XEmacs, but oh well...

27 years agoTest for an up-to-date Custom library when byte-compiling, and issue
Barry Warsaw [Tue, 2 Dec 1997 21:51:57 +0000 (21:51 +0000)]
Test for an up-to-date Custom library when byte-compiling, and issue
an informative message when one cannot be found, as is the case with a
vanilla Emacs 19.34 (and NTEmacs 19.34).

27 years agoAdd the flag RTLD_GLOBAL to the dlopen() options.
Guido van Rossum [Tue, 2 Dec 1997 20:43:18 +0000 (20:43 +0000)]
Add the flag RTLD_GLOBAL to the dlopen() options.
This exports symbols defined by the loaded extension to other
extensions (loaded later).

(I'm not quite sure about this but suppose it can't hurt...)

27 years agoMake stdin unbuffered too, when PYTHONUNBUFFERED is specified.
Guido van Rossum [Tue, 2 Dec 1997 20:41:39 +0000 (20:41 +0000)]
Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.

27 years agoPatches by Fred Lundh to make it compile better with K&R compilers.
Guido van Rossum [Tue, 2 Dec 1997 20:40:28 +0000 (20:40 +0000)]
Patches by Fred Lundh to make it compile better with K&R compilers.
(Should really let AMK do this, but don't know when he'll give me a
new version.)

27 years agoSmall bugfixes for broken old style use of the syntax table. AMK, of
Guido van Rossum [Tue, 2 Dec 1997 20:39:23 +0000 (20:39 +0000)]
Small bugfixes for broken old style use of the syntax table.  AMK, of
course.

27 years agoYes, Virginia, Tix does have a Tix_SafeInit() function.
Guido van Rossum [Tue, 2 Dec 1997 20:38:38 +0000 (20:38 +0000)]
Yes, Virginia, Tix does have a Tix_SafeInit() function.

27 years agoUnderstand -Xlinker option.
Guido van Rossum [Tue, 2 Dec 1997 20:38:11 +0000 (20:38 +0000)]
Understand -Xlinker option.

27 years agoLeft-aligned preprocessor directives and changed C++ comments to C
Guido van Rossum [Tue, 2 Dec 1997 20:37:32 +0000 (20:37 +0000)]
Left-aligned preprocessor directives and changed C++ comments to C
comments.

27 years agoPatch for QNX, by Chris Herborth. Also left-aligned preprocessor
Guido van Rossum [Tue, 2 Dec 1997 20:36:02 +0000 (20:36 +0000)]
Patch for QNX, by Chris Herborth.  Also left-aligned preprocessor
directives and changed C++ comments to C comments.

27 years agoPatch for QNX, by Chris Herborth.
Guido van Rossum [Tue, 2 Dec 1997 20:34:19 +0000 (20:34 +0000)]
Patch for QNX, by Chris Herborth.

27 years agoSupport for netbsd1 and freebsd3, after suggestions by Anders Andersen
Guido van Rossum [Tue, 2 Dec 1997 20:30:29 +0000 (20:30 +0000)]
Support for netbsd1 and freebsd3, after suggestions by Anders Andersen
and Jacques Vidrine.

27 years agoWhen a port is specified in an ftp:// URL, must convert it to a number!
Guido van Rossum [Tue, 2 Dec 1997 20:26:21 +0000 (20:26 +0000)]
When a port is specified in an ftp:// URL, must convert it to a number!

27 years agoTypo in example (missing '=') discovered by Sandy Langbart.
Guido van Rossum [Tue, 2 Dec 1997 20:08:06 +0000 (20:08 +0000)]
Typo in example (missing '=') discovered by Sandy Langbart.

27 years agoSupport for the "event" command, new in Tk 4.2.
Guido van Rossum [Tue, 2 Dec 1997 19:51:39 +0000 (19:51 +0000)]
Support for the "event" command, new in Tk 4.2.
By Case Roole.

27 years agoAdd attributions to Jeffrey Ollie and Tim Peters for re.py.
Guido van Rossum [Tue, 2 Dec 1997 19:44:54 +0000 (19:44 +0000)]
Add attributions to Jeffrey Ollie and Tim Peters for re.py.

27 years agoAdd attributions to Jeffrey Ollie and Tim Peters for re.py; new QNX
Guido van Rossum [Tue, 2 Dec 1997 19:44:31 +0000 (19:44 +0000)]
Add attributions to Jeffrey Ollie and Tim Peters for re.py; new QNX
section from Chris Herborth.

27 years agoChanges for FreeBSD and NetBSD: NetBSD does shared libs just like FreeBSD
Guido van Rossum [Tue, 2 Dec 1997 19:28:29 +0000 (19:28 +0000)]
Changes for FreeBSD and NetBSD: NetBSD does shared libs just like FreeBSD
(big surprise), and FreeBSD has pthread support in -lc_r -- maybe NetBSD
has too.

27 years agoSkip directories when installing library files; this avoids problems
Guido van Rossum [Tue, 2 Dec 1997 19:18:27 +0000 (19:18 +0000)]
Skip directories when installing library files; this avoids problems
when test/output is found (/usr/bin/install chokes on this; no idea
why install-sh doesn't).

27 years agoDocument new behavior of isinstance() when using a type object.
Guido van Rossum [Tue, 2 Dec 1997 19:15:01 +0000 (19:15 +0000)]
Document new behavior of isinstance() when using a type object.

27 years agoSupport type objects in isinstance().
Guido van Rossum [Tue, 2 Dec 1997 19:11:45 +0000 (19:11 +0000)]
Support type objects in isinstance().

E.g. isinstance('',types.StringType) will return true now instead of
raising a TypeError exception.  This is for JPython compatibility.

27 years agoMake modes for installed files and directories variables; change the
Guido van Rossum [Tue, 2 Dec 1997 17:52:37 +0000 (17:52 +0000)]
Make modes for installed files and directories variables; change the
default for directories (not for files!) to be group writable.

27 years agoSjoerd sez: global substitute \240 with \177.
Guido van Rossum [Tue, 2 Dec 1997 17:45:39 +0000 (17:45 +0000)]
Sjoerd sez: global substitute \240 with \177.

27 years agoChanged the occurrence of *shared* in the example so people won't
Guido van Rossum [Tue, 2 Dec 1997 16:46:39 +0000 (16:46 +0000)]
Changed the occurrence of *shared* in the example so people won't
accidentally uncomment it...

27 years agoAdded stropts.h to the list of files automatically regenerated.
Guido van Rossum [Tue, 2 Dec 1997 14:37:20 +0000 (14:37 +0000)]
Added stropts.h to the list of files automatically regenerated.

27 years agoGenerated from Solaris 2.6's /usr/include/sys/stropts.h via
Barry Warsaw [Tue, 2 Dec 1997 04:49:09 +0000 (04:49 +0000)]
Generated from Solaris 2.6's /usr/include/sys/stropts.h via
Tools/scripts/h2py.py.  This file contains many useful streamio(7)
constants, especially the ones that support passing open file
descriptors through a pipe: I_RECVFD and I_SENDFD.

27 years ago*** empty log message ***
Guido van Rossum [Tue, 2 Dec 1997 03:42:17 +0000 (03:42 +0000)]
*** empty log message ***

27 years agoComment out crypt by default; it's not used very much and messes up
Guido van Rossum [Tue, 2 Dec 1997 03:23:01 +0000 (03:23 +0000)]
Comment out crypt by default; it's not used very much and messes up
the default build on Linux (because it requires -lcrypt which isn't
availabel everywhere).

Some improvements to the _tkinter build line suggested by Case Roole.

27 years agoAdded Pareto and Weibull distributions, courtesy Jeremy Hylton.
Guido van Rossum [Tue, 2 Dec 1997 02:47:39 +0000 (02:47 +0000)]
Added Pareto and Weibull distributions, courtesy Jeremy Hylton.

27 years agoAdded strop.split tests when sep is None.
Barry Warsaw [Tue, 2 Dec 1997 00:30:04 +0000 (00:30 +0000)]
Added strop.split tests when sep is None.

27 years agosplit_whitespace(): Make sure delimiter is stripped from the beginning
Barry Warsaw [Tue, 2 Dec 1997 00:29:30 +0000 (00:29 +0000)]
split_whitespace(): Make sure delimiter is stripped from the beginning
of the remainder item (last item in list) when maxsplit is < the
number of occurrences.

27 years agoRequire 'cl when compiling so that the push macro gets picked in Emacs
Barry Warsaw [Mon, 1 Dec 1997 20:03:12 +0000 (20:03 +0000)]
Require 'cl when compiling so that the push macro gets picked in Emacs
19.34.

27 years agoUse $LOGNAME instead of $USER to get the current user -- it seems to
Guido van Rossum [Mon, 1 Dec 1997 18:50:09 +0000 (18:50 +0000)]
Use $LOGNAME instead of $USER to get the current user -- it seems to
be the state of the art.

27 years agoRemoved Queue.py. It's documented now.
Barry Warsaw [Mon, 1 Dec 1997 16:35:54 +0000 (16:35 +0000)]
Removed Queue.py.  It's documented now.

27 years agoInitialize __version__ to the correct version string regardless of
Guido van Rossum [Mon, 1 Dec 1997 15:57:40 +0000 (15:57 +0000)]
Initialize __version__ to the correct version string regardless of
what RCS checkout options are used.  Problem first diagnosed by Marc
Lemburg.

27 years agoIn string.split(), honor maxsplit (if > 0).
Guido van Rossum [Mon, 1 Dec 1997 15:25:19 +0000 (15:25 +0000)]
In string.split(), honor maxsplit (if > 0).

In string.splitfields(), ignore maxsplit if <= 0, rather than ignoring
maxsplit=0 but effectively treating negative numbers the same as
maxsplit=1.  Also made the test for maxsplit slightly more efficient
(set it to the length of the string when <= 0 so the test for its
presence can be omitted from the loop).

27 years ago_Environ(): Added __getinitargs__() method so os.environ.copy() works,
Barry Warsaw [Mon, 1 Dec 1997 04:30:19 +0000 (04:30 +0000)]
_Environ(): Added __getinitargs__() method so os.environ.copy() works,
as does unpickling, as in: pickle.loads(pickle.dumps(os.environ)).

Hope this is right!  Don't shoot me Guido. :-)

27 years agoAdded \indexsubitem definition; functions were previously indexed for the
Fred Drake [Sun, 30 Nov 1997 05:53:22 +0000 (05:53 +0000)]
Added \indexsubitem definition; functions were previously indexed for the
wrong module.

27 years agoAdded \indexsubitem definition. Non-optimal, but two modules are sharing
Fred Drake [Sun, 30 Nov 1997 05:38:44 +0000 (05:38 +0000)]
Added \indexsubitem definition.  Non-optimal, but two modules are sharing
the documentation here.

27 years agoAdded \indexsubitem definition; functions were previously indexed for the
Fred Drake [Sun, 30 Nov 1997 05:27:26 +0000 (05:27 +0000)]
Added \indexsubitem definition; functions were previously indexed for the
wrong module.

27 years agoUpdated \indexsubitem; functions had been indexed for the wrong module.
Fred Drake [Sun, 30 Nov 1997 05:23:47 +0000 (05:23 +0000)]
Updated \indexsubitem; functions had been indexed for the wrong module.

27 years agoAdded tests of strop.replace()
Barry Warsaw [Sat, 29 Nov 1997 00:25:30 +0000 (00:25 +0000)]
Added tests of strop.replace()

27 years agomymemreplace(), strop_replace(): Add support for optional 4th argument
Barry Warsaw [Sat, 29 Nov 1997 00:10:07 +0000 (00:10 +0000)]
mymemreplace(), strop_replace(): Add support for optional 4th argument
maxsplit which is implemented in string.py but wasn't here.  The
reference manual doesn't define what happens when maxsplit is negative
or larger than the number of occurrences, but in either case, I
implemented this as all get replaced.  Default value is zero which
replaces all occurrences.

27 years ago(py-traceback-line-re): Relaxation of regexp to catch SyntaxErrors.
Barry Warsaw [Thu, 27 Nov 1997 20:08:14 +0000 (20:08 +0000)]
(py-traceback-line-re): Relaxation of regexp to catch SyntaxErrors.
Harri Pasanen.