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

22 years agoDon't use the module object setattr when importing submodules. Instead,
Neil Schemenauer [Mon, 16 Jun 2003 21:03:07 +0000 (21:03 +0000)]
Don't use the module object setattr when importing submodules.  Instead,
operate on the module dictionary directly.  This prevents spurious
depreciation warnings from being raised if a submodule name shadows
a builtin name.

22 years agoAdd item about new threading module functions.
Jeremy Hylton [Mon, 16 Jun 2003 20:38:15 +0000 (20:38 +0000)]
Add item about new threading module functions.

22 years agoRemove many blanket try/except clauses.
Jeremy Hylton [Mon, 16 Jun 2003 20:19:49 +0000 (20:19 +0000)]
Remove many blanket try/except clauses.
SF bug [ 751276 ] cPickle doesn't raise error, pickle does (recursiondepth)

Most of the calls to PyErr_Clear() were intended to catch & clear an
attribute error and try something different.  Guard all those cases
with a PyErr_ExceptionMatches() and fail if some other error
occurred.  The other error is likely a bug in the user code.

This is basically the C equivalent of changing "except:" to
"except AttributeError:"

22 years agoCorrect function name.
Kurt B. Kaiser [Mon, 16 Jun 2003 18:51:28 +0000 (18:51 +0000)]
Correct function name.

22 years agoAdd ':' after IDLE version, fix spacing on a couple of lines I missed
Kurt B. Kaiser [Mon, 16 Jun 2003 18:46:42 +0000 (18:46 +0000)]
Add ':' after IDLE version, fix spacing on a couple of lines I missed

22 years agoAllow passing a build directory on the command line. Also, if the
Jack Jansen [Mon, 16 Jun 2003 15:12:16 +0000 (15:12 +0000)]
Allow passing a build directory on the command line. Also, if the
build directory is found to exist we don't clean it up. We also
use configure -C. All this lets us keep build directories, which
graeatly speeds up the process of debugging installers.

22 years agoOnly fix up pathnames in installed scripts when needed, i.e. when not installing
Jack Jansen [Mon, 16 Jun 2003 15:10:47 +0000 (15:10 +0000)]
Only fix up pathnames in installed scripts when needed, i.e. when not installing
to /. Pathnames are correct for installing to / since the DESTDIR patch.

22 years agoAdded a note about FSRef tests failing on MacOS 8.6.
Jack Jansen [Mon, 16 Jun 2003 13:57:09 +0000 (13:57 +0000)]
Added a note about FSRef tests failing on MacOS 8.6.

22 years agoThis wasn't ansified. Fixed.
Jack Jansen [Mon, 16 Jun 2003 13:56:05 +0000 (13:56 +0000)]
This wasn't ansified. Fixed.

22 years agoImport EasyDialogs only when needed, so this works if there is no window
Jack Jansen [Mon, 16 Jun 2003 13:55:21 +0000 (13:55 +0000)]
Import EasyDialogs only when needed, so this works if there is no window
manager (if it isn't needed).

22 years agoAdded two mac items (pimp auto-update and OSA property access).
Jack Jansen [Mon, 16 Jun 2003 13:53:40 +0000 (13:53 +0000)]
Added two mac items (pimp auto-update and OSA property access).

22 years agoPatch #755147 by Brian Lenihan:
Jack Jansen [Mon, 16 Jun 2003 09:47:25 +0000 (09:47 +0000)]
Patch #755147 by Brian Lenihan:
- Build idle from new location
- use ln -fsn when linking files.

22 years agoMade DateTime's constructor accept a time.struct_time class,
Gustavo Niemeyer [Mon, 16 Jun 2003 02:49:42 +0000 (02:49 +0000)]
Made DateTime's constructor accept a time.struct_time class,
besides plain tuples.

22 years agoWhitespace normalization.
Tim Peters [Sun, 15 Jun 2003 23:26:30 +0000 (23:26 +0000)]
Whitespace normalization.

22 years agomimetools.choose_boundary() news.
Tim Peters [Sun, 15 Jun 2003 23:13:35 +0000 (23:13 +0000)]
mimetools.choose_boundary() news.

22 years ago^D means EOF on Unix but not on Windows. Expand the example's prompt to
Tim Peters [Sun, 15 Jun 2003 23:08:45 +0000 (23:08 +0000)]
^D means EOF on Unix but not on Windows.  Expand the example's prompt to
tell Windows Truth too.

Bugfix candidate.

22 years agoAdd explicit text for where an obindex call for generators was since obindex does...
Brett Cannon [Sun, 15 Jun 2003 22:57:44 +0000 (22:57 +0000)]
Add explicit text for where an obindex call for generators was since obindex does not cause output of its argument.

22 years agoReturn None to signal that the module the object was defined in was not found when...
Brett Cannon [Sun, 15 Jun 2003 22:33:28 +0000 (22:33 +0000)]
Return None to signal that the module the object was defined in was not found when object has no __name__ attr but is needed to figure out location of object.

22 years agoMake CREDITS.txt a Latin-1 file. Extend ViewFile to support file encodings.
Martin v. Löwis [Sun, 15 Jun 2003 22:28:05 +0000 (22:28 +0000)]
Make CREDITS.txt a Latin-1 file. Extend ViewFile to support file encodings.

22 years agochoose_boundary(): This no longer uses random, so stop importing it.
Tim Peters [Sun, 15 Jun 2003 22:12:23 +0000 (22:12 +0000)]
choose_boundary():  This no longer uses random, so stop importing it.

22 years agochoose_boundary(): Incorporated a threadsafe incrementing counter, so that
Tim Peters [Sun, 15 Jun 2003 22:05:58 +0000 (22:05 +0000)]
choose_boundary():  Incorporated a threadsafe incrementing counter, so that
unique boundary strings within a program run are guaranteed.  On Windows,
duplicates were pretty likely, due to the coarse granularity of time.time.
Toned down the absurdly optimistic claims in the docstring.

Bugfix candidate.

22 years agoInstall IDLE's .def files; these are essential for the configuration!
Guido van Rossum [Sun, 15 Jun 2003 20:40:33 +0000 (20:40 +0000)]
Install IDLE's .def files; these are essential for the configuration!
Also install the start script from Tools/script/idle.  (This may
change again.)

22 years agoChanges to install the new idle: it's now in Lib/idlelib instead of
Guido van Rossum [Sun, 15 Jun 2003 19:42:39 +0000 (19:42 +0000)]
Changes to install the new idle: it's now in Lib/idlelib instead of
Tools/idle, in both source and destination.  (There are still problems
when running the IDLE icon, but they don't seem to have to do with the
installer.)

22 years agoAdd a missing 'self,' to a super call in recently checked-in code.
Guido van Rossum [Sun, 15 Jun 2003 19:08:57 +0000 (19:08 +0000)]
Add a missing 'self,' to a super call in recently checked-in code.
This was reported in the IDLEFORK bug tracker as #754971.

22 years agoForwardport Patch from IDLEfork SF 615312
Kurt B. Kaiser [Sun, 15 Jun 2003 17:49:59 +0000 (17:49 +0000)]
Forwardport Patch from IDLEfork SF 615312
Convert characters from the locale's encoding on output

22 years agoSupport testing in .../Lib/idlelib when calling <python PyShell.py>
Kurt B. Kaiser [Sun, 15 Jun 2003 17:38:45 +0000 (17:38 +0000)]
Support testing in .../Lib/idlelib when calling <python PyShell.py>
by providing other modules access to globals set up in PyShell.main()