]> granicus.if.org Git - python/log
python
22 years agoAdd tests for __nonzero__() problems.
Jeremy Hylton [Fri, 27 Jun 2003 17:40:16 +0000 (17:40 +0000)]
Add tests for __nonzero__() problems.

22 years agoRequire that __nonzero__() return a bool or exactly an int.
Jeremy Hylton [Fri, 27 Jun 2003 17:38:27 +0000 (17:38 +0000)]
Require that __nonzero__() return a bool or exactly an int.

22 years agoAdd definitions of the test and testlist symbols in the grammar so
Fred Drake [Fri, 27 Jun 2003 17:12:43 +0000 (17:12 +0000)]
Add definitions of the test and testlist symbols in the grammar so
there are no gaps in the definitions.
Closes SF bug #726150.

22 years agoRevert previous checkin and just add a comment about constructor_ob.
Jeremy Hylton [Fri, 27 Jun 2003 16:58:43 +0000 (16:58 +0000)]
Revert previous checkin and just add a comment about constructor_ob.

There's no point to passing it anymore, but there's a test that
expects the call to fail if you pass a non-callable object.

22 years agoCheck return type of __nonzero__() method.
Jeremy Hylton [Fri, 27 Jun 2003 16:46:45 +0000 (16:46 +0000)]
Check return type of __nonzero__() method.

The language reference says you must return an int or a bool.  This
fix limits the scope of SF bug 759227 (infinite recursion) to
subclasses of int.

22 years agofix link-hovering so <a name='...'> (no href attribute) doesn't get
Fred Drake [Fri, 27 Jun 2003 16:32:27 +0000 (16:32 +0000)]
fix link-hovering so <a name='...'> (no href attribute) doesn't get
the hovering background

22 years agoFix several bugs in handling of exceptions with trace function enabled.
Jeremy Hylton [Fri, 27 Jun 2003 16:13:17 +0000 (16:13 +0000)]
Fix several bugs in handling of exceptions with trace function enabled.

If the callback raised an exception but did not set curexc_traceback,
the trace function was called with PyTrace_RETURN.  That is, the trace
function was called with an exception set.  The main loop detected the
exception when the trace function returned; it complained and disabled
tracing.

Fix the logic error so that PyTrace_RETURN only occurs if the callback
returned normally.

The trace function must be called for exceptions, too.  So we had
to add new functionality to call with PyTrace_EXCEPTION.  (Leads to a
rather ugly ifdef / else block that contains only a '}'.)

Reverse the logic and name of NOFIX_TRACE to FIX_TRACE.

Joint work with Fred.

22 years agoSome Windows changes preparing for 2.3b2.
Tim Peters [Fri, 27 Jun 2003 15:49:35 +0000 (15:49 +0000)]
Some Windows changes preparing for 2.3b2.

22 years ago(HTML|Text)Repr.repr1: Guard against objects whos types have no __name__
Skip Montanaro [Fri, 27 Jun 2003 15:45:41 +0000 (15:45 +0000)]
(HTML|Text)Repr.repr1: Guard against objects whos types have no __name__
attribute. Patch and bug report from Geoff Talvola. Closes patch #672855.

22 years agoJacob Hallen cornered me here at EuroPython and got me to look at
Michael W. Hudson [Fri, 27 Jun 2003 12:32:39 +0000 (12:32 +0000)]
Jacob Hallen cornered me here at EuroPython and got me to look at
patch:

[ 750008 ] 'compiler' module bug with 'import foo.bar as baz'

which I'm now checking in.

after import foo.bar as baz, baz would refer to foo.

22 years agoSF bug #761337: datetime.strftime fails on trivial format string
Raymond Hettinger [Fri, 27 Jun 2003 08:14:17 +0000 (08:14 +0000)]
SF bug #761337: datetime.strftime fails on trivial format string

The interning of short strings violates the refcnt==1 assumption for
_PyString_Resize().

A simple fix is to boost the initial value of "totalnew" by 1.
Combined with an NULL argument to PyString_FromStringAndSize(),
this assures that resulting format string is not interned.
This will remain true even if the implementation of
PyString_FromStringAndSize() changes because only the uninitialized
strings that can be interned are those of zero length.

Added a test case.

22 years ago* Markup nits for the Invoking Descriptors section
Raymond Hettinger [Fri, 27 Jun 2003 06:57:56 +0000 (06:57 +0000)]
* Markup nits for the Invoking Descriptors section
* Documented __slots__
* Documented __metaclass__

Shamelessly plagarized from Guido's tutorial.

22 years agoDon't call constructor() from pickle().
Jeremy Hylton [Thu, 26 Jun 2003 23:20:20 +0000 (23:20 +0000)]
Don't call constructor() from pickle().

The constructor() call only made sense when it registered the
constructor as safe for unpickling.  We should probably remove the
module-global function, but need to worry about backwards
compatibility.

22 years agoSF patch #760792: "wo" in "word" now valid but not documented as such
Raymond Hettinger [Thu, 26 Jun 2003 19:32:10 +0000 (19:32 +0000)]
SF patch #760792: "wo" in "word" now valid but not documented as such
Revised version of a contribution from Gerrit Holl.

Update the docs for the extended behavior of __contains__

22 years agoPortion of SF patch #761104. Fixes a minor docstring error.
Raymond Hettinger [Thu, 26 Jun 2003 18:49:28 +0000 (18:49 +0000)]
Portion of SF patch #761104.   Fixes a minor docstring error.
_TemporarilyImmutableSet is in fact a subclass of BaseSet

22 years ago* Fixed an unmatched parenthesis early in the text.
Raymond Hettinger [Thu, 26 Jun 2003 17:41:40 +0000 (17:41 +0000)]
* Fixed an unmatched parenthesis early in the text.

* Clarified the meaning of lexicographic sequence ordering as discussed on
  comp.lang.python:  http://groups.google.com/groups?th=e163c9f9ba114493

22 years agoEnable tracing of multi-threaded applications.
Jeremy Hylton [Thu, 26 Jun 2003 14:56:17 +0000 (14:56 +0000)]
Enable tracing of multi-threaded applications.

Fix bug in computation of coverage percentage: Only count a line if it
was executed or if we print the >>>>>> marker.

22 years agoFixing bug described in patch #756032, where SRE reads invalid data
Gustavo Niemeyer [Thu, 26 Jun 2003 14:41:08 +0000 (14:41 +0000)]
Fixing bug described in patch #756032, where SRE reads invalid data
due to a corrupted end pointer.

22 years agomarkup consistency nits
Fred Drake [Thu, 26 Jun 2003 03:11:57 +0000 (03:11 +0000)]
markup consistency nits

22 years agoremove _ from label: LaTeX rejects this due to all the magic we use to
Fred Drake [Thu, 26 Jun 2003 03:11:20 +0000 (03:11 +0000)]
remove _ from label: LaTeX rejects this due to all the magic we use to
get the _ character to format like a normal character

22 years agoRemoved useless intra-section references which jump to the top of the
Raymond Hettinger [Wed, 25 Jun 2003 20:36:20 +0000 (20:36 +0000)]
Removed useless intra-section references which jump to the top of the
section instead of the specific item being referenced.

22 years agoSF bug #696777: How to make a class iterable using a member generator.
Raymond Hettinger [Wed, 25 Jun 2003 19:03:22 +0000 (19:03 +0000)]
SF bug #696777:  How to make a class iterable using a member generator.

* Added a note that a container class can implement the iterator protocol
  by defining its __iter__() method as a generator.

22 years ago* Document how descriptors are invoked.
Raymond Hettinger [Wed, 25 Jun 2003 18:29:36 +0000 (18:29 +0000)]
* Document how descriptors are invoked.
* Fix minor parenthesis matching errors in ref3.tex.

22 years agoSF bug #757822: Additional index items, other minor details
Raymond Hettinger [Wed, 25 Jun 2003 15:07:45 +0000 (15:07 +0000)]
SF bug #757822: Additional index items, other minor details

* Minor grammatical fix.

22 years agoWhitespace normalization.
Walter Dörwald [Wed, 25 Jun 2003 13:12:18 +0000 (13:12 +0000)]
Whitespace normalization.

22 years agoSF bug #759889: Pickling of Random is broken
Raymond Hettinger [Tue, 24 Jun 2003 20:29:04 +0000 (20:29 +0000)]
SF bug #759889:  Pickling of Random is broken

* Implement __reduce__() to support pickling.
* Add a test case to prove a successful roundtrip through pickle.

22 years ago_make_boundary(): A minor optimization suggested by the Timbot.
Barry Warsaw [Tue, 24 Jun 2003 20:19:34 +0000 (20:19 +0000)]
_make_boundary(): A minor optimization suggested by the Timbot.

22 years agoDeal with a couple XXX comments which asked questions.
Greg Stein [Tue, 24 Jun 2003 06:35:19 +0000 (06:35 +0000)]
Deal with a couple XXX comments which asked questions.

In response to "shouldn't the client close the file?", the answer is
"no". The original design behind HTTPConnection is that the client did
not have to worry about it. The response would close itself when you
read the last of the data from it. This closing also dealt with
allowing the connection to perform another request/response (if it was
a persistent connection).

However... the auto-close behavior broke compatibility with the
classic httplib.HTTP class' behavior when a zero-length response body
was present. In that situation, the HTTPResponse object was
auto-closing it since there was no data present, and for an HTTP/1.0
connection-close socket (or an HTTP/0.9 request) connection, that also
ended up closing the socket. When an httplib.HTTP user went to read
the socket... boom. A patch to correct the auto-close (for compat with
old httplib users) was added in rev 1.22.

But for non-zero-length *chunked* bodies, we should keep the
auto-close behavior. The library user is not reading the socket (they
can't cuz of the chunked response we just got done handling), so they
should be immune to the response closing the socket. In fact, I would
like to see (one day) the auto-close restored, and the HTTP subclass
would simply have a flag to disable that behavior (for back-compat
purposes).

22 years agoSF patch #736962. Converted test_compile to unittest format.
Raymond Hettinger [Mon, 23 Jun 2003 13:36:57 +0000 (13:36 +0000)]
SF patch #736962.  Converted test_compile to unittest format.

22 years agoIdlefork patch #682347: convert Unicode strings from readline to
Martin v. Löwis [Sun, 22 Jun 2003 07:52:56 +0000 (07:52 +0000)]
Idlefork patch #682347: convert Unicode strings from readline to
IOBinding.encoding. Also set sys.std{in,out,err}.encoding, for both
the local and the subprocess case.

22 years ago2.3b2 on Windows will ship with Tcl/Tk 8.4.3. Note: this still didn't
Tim Peters [Sun, 22 Jun 2003 01:42:20 +0000 (01:42 +0000)]
2.3b2 on Windows will ship with Tcl/Tk 8.4.3.  Note:  this still didn't
fix the hangs on Win98SE when starting IDLE via "python" from a DOS box,
but did appear to make them harder to provoke.  I closed that bug report
as being hopeless (and if someone wants to open it again, don't dare
assign it to me again <0.1 wink>).

22 years agoGive compileall a -d option so it works correctly in the face of
Jack Jansen [Sat, 21 Jun 2003 22:07:16 +0000 (22:07 +0000)]
Give compileall a -d option so it works correctly in the face of
DESTDIR being non-null.

22 years agoBetter error message
Jeremy Hylton [Sat, 21 Jun 2003 21:35:25 +0000 (21:35 +0000)]
Better error message

22 years agosome old changes to this unused module
Just van Rossum [Sat, 21 Jun 2003 14:49:14 +0000 (14:49 +0000)]
some old changes to this unused module

22 years agochanged 8-space indentation to 4
Just van Rossum [Sat, 21 Jun 2003 14:41:32 +0000 (14:41 +0000)]
changed 8-space indentation to 4

22 years agoPatch #640236: Better eplain unused data.
Martin v. Löwis [Sat, 21 Jun 2003 14:15:25 +0000 (14:15 +0000)]
Patch #640236: Better eplain unused data.

22 years agoPatch #755087: Deal with emptied dumbdbm files correctly.
Martin v. Löwis [Sat, 21 Jun 2003 13:54:55 +0000 (13:54 +0000)]
Patch #755087: Deal with emptied dumbdbm files correctly.

22 years agoPatch #755683: Document that there might be a maximum indentation limit.
Martin v. Löwis [Sat, 21 Jun 2003 13:40:02 +0000 (13:40 +0000)]
Patch #755683: Document that there might be a maximum indentation limit.
Fixes #700827

22 years agoSet -d in compileall, to get proper path in case DESTDIR is not empty.
Martin v. Löwis [Sat, 21 Jun 2003 13:26:28 +0000 (13:26 +0000)]
Set -d in compileall, to get proper path in case DESTDIR is not empty.
Also add force, to recompile string.pyc in DESTDIR (which would normally
compiled by running compileall.py).

22 years agoAdded a field that allows the user to set sys.argv-style arguments
Jack Jansen [Fri, 20 Jun 2003 22:21:03 +0000 (22:21 +0000)]
Added a field that allows the user to set sys.argv-style arguments
to the script. Fixes #757544.

22 years agoAdd some documentation which describes how to use the email package
Barry Warsaw [Fri, 20 Jun 2003 22:04:03 +0000 (22:04 +0000)]
Add some documentation which describes how to use the email package
instead of rfc822 as the Message factory.

22 years ago- do the right thing with symlinks inside directories we're copying
Just van Rossum [Fri, 20 Jun 2003 21:43:36 +0000 (21:43 +0000)]
- do the right thing with symlinks inside directories we're copying
- move the normpath stuff around a bit
- added dubious special case to addPythonFramework()

22 years agoCop out, and set things to be group-writeable recursively. The various
Jack Jansen [Fri, 20 Jun 2003 21:40:57 +0000 (21:40 +0000)]
Cop out, and set things to be group-writeable recursively. The various
xxxMODE flags don't cut it. Also set the umask to 2 before doing the
compileall on the destination system.

22 years agomake sure paths to dirs don't end in a /
Just van Rossum [Fri, 20 Jun 2003 21:26:55 +0000 (21:26 +0000)]
make sure paths to dirs don't end in a /

22 years agoReworked --strip option: it will now look at _any_ file that's marked
Just van Rossum [Fri, 20 Jun 2003 21:18:22 +0000 (21:18 +0000)]
Reworked --strip option: it will now look at _any_ file that's marked
executable in the bundle. Therefore got rid of the "binaries" attribute.

22 years agoSet the executable bits when installing the shared library in a MacOSX
Jack Jansen [Fri, 20 Jun 2003 20:36:53 +0000 (20:36 +0000)]
Set the executable bits when installing the shared library in a MacOSX
framework. Fixes #758112.

22 years agoregister the library inside Python.framework as eligable for stripping
Just van Rossum [Fri, 20 Jun 2003 20:05:40 +0000 (20:05 +0000)]
register the library inside Python.framework as eligable for stripping

22 years agoAdd initial standalone support for Python.framework
Just van Rossum [Fri, 20 Jun 2003 18:56:10 +0000 (18:56 +0000)]
Add initial standalone support for Python.framework

22 years agoAdded regression test for SF #757818
Raymond Hettinger [Fri, 20 Jun 2003 18:41:26 +0000 (18:41 +0000)]
Added regression test for SF #757818

22 years agoSF #757229, fix libsocket.tex typo
Neal Norwitz [Fri, 20 Jun 2003 17:11:39 +0000 (17:11 +0000)]
SF #757229, fix libsocket.tex typo

22 years agoRemoved bytecode transformation for sequence packing/unpacking.
Raymond Hettinger [Fri, 20 Jun 2003 16:13:17 +0000 (16:13 +0000)]
Removed bytecode transformation for sequence packing/unpacking.
It depended on the previously removed basic block checker to
prevent a jump into the middle of the transformed block.

Clears SF 757818: tuple assignment -- SystemError: unknown opcode

22 years agoUpdated.
Jack Jansen [Fri, 20 Jun 2003 15:14:08 +0000 (15:14 +0000)]
Updated.

22 years agoAt startup, test that PythonLauncher is the default application for files
Jack Jansen [Fri, 20 Jun 2003 14:36:58 +0000 (14:36 +0000)]
At startup, test that PythonLauncher is the default application for files
of type .py, .pyw and .pyc. If not, post a warning.

22 years agoInstallation of PythonLauncher has been failing silently, probably since
Jack Jansen [Fri, 20 Jun 2003 14:33:38 +0000 (14:33 +0000)]
Installation of PythonLauncher has been failing silently, probably since
the DESTDIR patch. Fixed.

22 years agoRemove heading from orphan section.
Fred Drake [Fri, 20 Jun 2003 14:27:27 +0000 (14:27 +0000)]
Remove heading from orphan section.

22 years agoUpdate link to Python book information.
Fred Drake [Fri, 20 Jun 2003 14:00:49 +0000 (14:00 +0000)]
Update link to Python book information.

22 years agominor __doc__ string tweakage
Skip Montanaro [Fri, 20 Jun 2003 01:01:19 +0000 (01:01 +0000)]
minor __doc__ string tweakage

22 years agotypo
Skip Montanaro [Fri, 20 Jun 2003 01:00:20 +0000 (01:00 +0000)]
typo

22 years agoMany new tests, based on gcov's coverage information.
Gustavo Niemeyer [Fri, 20 Jun 2003 00:25:14 +0000 (00:25 +0000)]
Many new tests, based on gcov's coverage information.

From gcov's output (based on a locally changed _sre.c):

  82.07% of 1372 source lines executed in file ./Modules/_sre.c

22 years agoInstall Demo and Tools too.
Jack Jansen [Thu, 19 Jun 2003 22:45:37 +0000 (22:45 +0000)]
Install Demo and Tools too.

22 years agoMacPython-2.3 has progressed so far that building a set of Mac 2.3
Jack Jansen [Thu, 19 Jun 2003 22:44:57 +0000 (22:44 +0000)]
MacPython-2.3 has progressed so far that building a set of Mac 2.3
extensions on top of Python 2.2 no longer seems feasible.

22 years agoAdded a target frameworkinstallextras (OSX framework build specific,
Jack Jansen [Thu, 19 Jun 2003 22:35:20 +0000 (22:35 +0000)]
Added a target frameworkinstallextras (OSX framework build specific,
and not part of a normal frameworkinstall) that installs Demo and Tools
and a readme file into /Applications/MacPython-2.3/Extras. This will
give people access to the demos and tools if they instal Python through
the binary installer.

22 years agodded notes on reporting bugs and becoming an active developer.
Jack Jansen [Thu, 19 Jun 2003 21:25:44 +0000 (21:25 +0000)]
dded notes on reporting bugs and becoming an active developer.

22 years agoAvoid using 'dir' as a variable name and use os.path.join() to create
Skip Montanaro [Thu, 19 Jun 2003 18:10:37 +0000 (18:10 +0000)]
Avoid using 'dir' as a variable name and use os.path.join() to create
paths.

22 years agoMake the comment prefix 7 character long, so the lines are properly
Walter Dörwald [Thu, 19 Jun 2003 10:36:17 +0000 (10:36 +0000)]
Make the comment prefix 7 character long, so the lines are properly
aligned.

22 years agoUse find() instead of looping over the string in expanduser().
Walter Dörwald [Thu, 19 Jun 2003 10:21:14 +0000 (10:21 +0000)]
Use find() instead of looping over the string in expanduser().
From SF patch #757058.

22 years agorandrange(): Repaired my overly optimistic rewrite, and added comments
Tim Peters [Thu, 19 Jun 2003 03:46:46 +0000 (03:46 +0000)]
randrange():  Repaired my overly optimistic rewrite, and added comments
explaining what's wrong with the two simpler variants.

22 years agorandrange(): 2.3 can no longer raises OverflowError on an int() call, so
Tim Peters [Thu, 19 Jun 2003 03:23:06 +0000 (03:23 +0000)]
randrange():  2.3 can no longer raises OverflowError on an int() call, so
some of this code because useless, and (worse) could return a long
instead of int (in Zope that's important, because a long can't be used
as a key in an IOBTree or IIBTree).

22 years ago- Added a "community" section.
Jack Jansen [Wed, 18 Jun 2003 22:10:27 +0000 (22:10 +0000)]
- Added a "community" section.
- Cleaned up the HTML.

22 years ago- Create TMPDIR only if it doesn't exist yet
Jack Jansen [Wed, 18 Jun 2003 21:28:44 +0000 (21:28 +0000)]
- Create TMPDIR only if it doesn't exist yet
- Set the installer to use our permissions, not influenced by the umask.

22 years agoMinor updates:
Raymond Hettinger [Wed, 18 Jun 2003 19:25:37 +0000 (19:25 +0000)]
Minor updates:

* Updated comment on design of imap()
* Added untraversed object in izip() structure
* Replaced the pairwise() example with a more general window() example

22 years agoInclude "instances of most classes" in a warning about mutable objects
Fred Drake [Wed, 18 Jun 2003 17:14:29 +0000 (17:14 +0000)]
Include "instances of most classes" in a warning about mutable objects
as default values of function/method parameters.

22 years agoPort test_complex.py to unittest.
Walter Dörwald [Wed, 18 Jun 2003 14:26:18 +0000 (14:26 +0000)]
Port test_complex.py to unittest.

Move the constructor tests from test_builtin to test_complex.

Add a bunch of tests (code coverage is a 94%).

From SF patch #736962.

22 years agoGive default _elemdict and _propdict attributes to OSA classes, so
Jack Jansen [Wed, 18 Jun 2003 14:19:08 +0000 (14:19 +0000)]
Give default _elemdict and _propdict attributes to OSA classes, so
we don't get infinite recursion for suites that don't have an application
class.

Also got rid of some tabs.

22 years agoAn indenting error in the code made it miss some suites that have an application
Jack Jansen [Wed, 18 Jun 2003 14:17:34 +0000 (14:17 +0000)]
An indenting error in the code made it miss some suites that have an application
class.

22 years agoFix whitespace.
Walter Dörwald [Wed, 18 Jun 2003 14:17:01 +0000 (14:17 +0000)]
Fix whitespace.

22 years agoFix typo.
Raymond Hettinger [Wed, 18 Jun 2003 01:58:31 +0000 (01:58 +0000)]
Fix typo.

22 years agoSF patch #751038 fixing SF bug#750092: exec doesn't need newline
Raymond Hettinger [Wed, 18 Jun 2003 01:32:24 +0000 (01:32 +0000)]
SF patch #751038 fixing SF bug#750092: exec doesn't need newline

Patch contributed by Steven Taschuk.

22 years agoSF bug #753451: classmethod abuse --> SystemError
Raymond Hettinger [Wed, 18 Jun 2003 01:13:41 +0000 (01:13 +0000)]
SF bug #753451: classmethod abuse --> SystemError

Check the argument to classmethod for callability.

Backport candidate.

22 years agoRemove debug print on filename with NUL byte.
Greg Ward [Wed, 18 Jun 2003 00:54:28 +0000 (00:54 +0000)]
Remove debug print on filename with NUL byte.

22 years agoSF patch #755987 (Jim Ahlstrom):
Greg Ward [Wed, 18 Jun 2003 00:53:06 +0000 (00:53 +0000)]
SF patch #755987 (Jim Ahlstrom):
This is a patch for Bug 755031: If a null byte appears in
a file name, Python zipfile.py retains it, but InfoZip
terminates the name. Null bytes in file names are used
as a trick by viruses. I tested WinZip, and it also
truncates the file name at the null byte.

The patch also fixes a buglet: If a zipfile incorrectly
uses a directory separator other than '/', there was an
invalid complaint that the central directory name does
not match the file header name.

I also removed my name from the top of the file. It was
there for legal reasons which I believe no longer apply.
Many people have worked on this file besides me.

22 years agoAdd missing DECREF.
Raymond Hettinger [Tue, 17 Jun 2003 23:14:40 +0000 (23:14 +0000)]
Add missing DECREF.

22 years agoChange all header strings to be as if they were capitalize()'ed. Also call
Brett Cannon [Tue, 17 Jun 2003 21:52:34 +0000 (21:52 +0000)]
Change all header strings to be as if they were capitalize()'ed.  Also call
capitalize in AbstractHTTPHandler before inserting headers into HTTP instance.

Closes bug #649742, again.

22 years agoFix typo in comment.
Walter Dörwald [Tue, 17 Jun 2003 20:22:24 +0000 (20:22 +0000)]
Fix typo in comment.

22 years agoUse _PyEval_SliceIndex to handle list.index() calls with
Walter Dörwald [Tue, 17 Jun 2003 19:27:39 +0000 (19:27 +0000)]
Use _PyEval_SliceIndex to handle list.index() calls with
huge start and stop arguments. Add tests.

22 years agoRemove short-circuitying grubbing by using last grubbed buffer. It's
Ken Manheimer [Tue, 17 Jun 2003 19:18:57 +0000 (19:18 +0000)]
Remove short-circuitying grubbing by using last grubbed buffer.  It's
evil - if the last grubbed buffer didn't happen to be the right one,
you couldn't remedy.

Mainline emacs compat - don't use third arg to buffer-substring (which
was for explicitly identifying the buffer in which to seek the
substring, and which turns out to be unnecessary).

22 years agoFix docstring
Raymond Hettinger [Tue, 17 Jun 2003 16:53:25 +0000 (16:53 +0000)]
Fix docstring

22 years agoUpdated documentation for the new slice arguments for list.index().
Walter Dörwald [Tue, 17 Jun 2003 16:19:56 +0000 (16:19 +0000)]
Updated documentation for the new slice arguments for list.index().

22 years agoWhitespace normalization.
Walter Dörwald [Tue, 17 Jun 2003 15:48:11 +0000 (15:48 +0000)]
Whitespace normalization.

22 years agoMake sure the files in the installer have group "admin", otherwise
Jack Jansen [Tue, 17 Jun 2003 14:36:54 +0000 (14:36 +0000)]
Make sure the files in the installer have group "admin", otherwise
administrators can still not add packages.

22 years agoFix sloppy index() implementation:
Guido van Rossum [Tue, 17 Jun 2003 14:25:14 +0000 (14:25 +0000)]
Fix sloppy index() implementation:
- don't use min() and max()
- interpret negative start/stop argument like negative slice indices

22 years agoModernize Lib/posixpath.py: Use startswith(), endswith(), rstrip(),
Walter Dörwald [Tue, 17 Jun 2003 13:13:40 +0000 (13:13 +0000)]
Modernize Lib/posixpath.py: Use startswith(), endswith(), rstrip(),
struct_passwd attributes and +=.

From SF patch #755245.

22 years agoSF Patch 569574 - enhancements to cgitb for plain text display
Skip Montanaro [Tue, 17 Jun 2003 12:58:31 +0000 (12:58 +0000)]
SF Patch 569574 - enhancements to cgitb for plain text display

22 years agoSF #754014: list.index() should accept optional start, end arguments
Raymond Hettinger [Tue, 17 Jun 2003 05:05:49 +0000 (05:05 +0000)]
SF #754014:  list.index() should accept optional start, end arguments

Also, modified UserList.index() to match and expanded the related tests.

22 years agotest_posixpath.py now uses unittest. The output file is no longer needed.
Raymond Hettinger [Tue, 17 Jun 2003 04:19:59 +0000 (04:19 +0000)]
test_posixpath.py now uses unittest.  The output file is no longer needed.

22 years agoConvert some repetitive code into a loop
Neal Norwitz [Tue, 17 Jun 2003 02:51:28 +0000 (02:51 +0000)]
Convert some repetitive code into a loop

22 years agoFix some markup nits
Neal Norwitz [Tue, 17 Jun 2003 02:37:06 +0000 (02:37 +0000)]
Fix some markup nits

22 years agoSF bug 751956: graminit.[ch] don't build on windows
Tim Peters [Tue, 17 Jun 2003 00:05:53 +0000 (00:05 +0000)]
SF bug 751956:  graminit.[ch] don't build on windows
A change from Duncan Booth, to deal with changes in the way pgen gets
built.  Note that graminit.[ch] aren't normally built on Windows (they're
obtained from CVS).

22 years agoAdd test for bug #751998.
Neal Norwitz [Mon, 16 Jun 2003 22:51:22 +0000 (22:51 +0000)]
Add test for bug #751998.

22 years agoComplete rewrite of tests by Walter Dorwald as unittest tests.
Brett Cannon [Mon, 16 Jun 2003 21:54:50 +0000 (21:54 +0000)]
Complete rewrite of tests by Walter Dorwald as unittest tests.