Finn Bock [Wed, 6 Nov 2002 11:45:15 +0000 (11:45 +0000)]
Skip the test_nocaret test when running as jython. Jython happens to add
a caret in this case too.
Finn Bock [Wed, 6 Nov 2002 11:37:57 +0000 (11:37 +0000)]
Make the test pass for jython where there are no sys.executable.
Chui Tey [Wed, 6 Nov 2002 02:18:45 +0000 (02:18 +0000)]
By default when getting the search menu, the currently highligted
text is the search term.
Neal Norwitz [Tue, 5 Nov 2002 23:55:27 +0000 (23:55 +0000)]
Fix minor wording and 2 typos
Martin v. Löwis [Tue, 5 Nov 2002 23:01:50 +0000 (23:01 +0000)]
Support sdist.
Neal Norwitz [Tue, 5 Nov 2002 22:46:39 +0000 (22:46 +0000)]
Whoops, fix the typo correctly this time
Neal Norwitz [Tue, 5 Nov 2002 22:41:37 +0000 (22:41 +0000)]
Use PyOS_snprintf() instead of sprintf and wrap the long line
Barry Warsaw [Tue, 5 Nov 2002 22:41:33 +0000 (22:41 +0000)]
Add an entry for pdb's new `pp' command.
Barry Warsaw [Tue, 5 Nov 2002 22:41:16 +0000 (22:41 +0000)]
Document the new `pp' command.
Barry Warsaw [Tue, 5 Nov 2002 22:40:20 +0000 (22:40 +0000)]
Implement a `pp' command, which is like `p' except that it
pretty-prints the value of its expression argument.
Neal Norwitz [Tue, 5 Nov 2002 22:37:58 +0000 (22:37 +0000)]
Fix minor typos
Fred Drake [Tue, 5 Nov 2002 22:19:45 +0000 (22:19 +0000)]
Minor cleanups, markup.
Martin v. Löwis [Tue, 5 Nov 2002 22:11:50 +0000 (22:11 +0000)]
Document that images go away when they go away. Fixes #632323.
Barry Warsaw [Tue, 5 Nov 2002 21:44:06 +0000 (21:44 +0000)]
parse(), _parseheaders(), _parsebody(): A fix for SF bug #633527,
where in lax parsing, the first non-header line after a header block
(e.g. the first line not containing a colon, and not a continuation),
can be treated as the first body line, even without the RFC mandated
blank line separator.
rfc822 had this behavior, and I vaguely remember problems with this,
but can't remember details. In any event, all the tests still pass,
so I guess we'll find out. ;/
This patch works by returning the non-header, non-continuation line
from _parseheader() and using that as the first header line prepended
to fp.read() if given. It's usually None.
We use this approach instead of trying to seek/tell the file-like
object.
Barry Warsaw [Tue, 5 Nov 2002 21:36:17 +0000 (21:36 +0000)]
test_no_separating_blank_line(): A test for SF bug #633527, no
separating blank line between a header block and body text.
Tests both lax and strict parsing.
Barry Warsaw [Tue, 5 Nov 2002 21:29:47 +0000 (21:29 +0000)]
A message with no separating blank line between the headers and the
body. A test message for SF bug #633527.
Barry Warsaw [Tue, 5 Nov 2002 21:04:52 +0000 (21:04 +0000)]
test_text_plain_in_a_multipart_digest(): A test of the fix for SF bug
#631350, where a subobject in a multipart/digest isn't a
message/rfc822.
Barry Warsaw [Tue, 5 Nov 2002 20:54:37 +0000 (20:54 +0000)]
_parsebody(): A fix for SF bug #631350, where a subobject in a
multipart/digest isn't a message/rfc822. This is legal, but counter
to recommended practice in RFC 2046, $5.1.5.
The fix is to look at the content type after setting the default
content type. If the maintype is then message or multipart, attach
the parsed subobject, otherwise use set_payload() to set the data of
the other object.
Barry Warsaw [Tue, 5 Nov 2002 20:53:18 +0000 (20:53 +0000)]
Test case, distilled from SF bug #631350, where a subobject in a
multipart/digest isn't a message/rfc822. This is legal, but counter
to recommended practice in RFC 2046, $5.1.5.
Tim Peters [Tue, 5 Nov 2002 20:38:55 +0000 (20:38 +0000)]
Another round on SF patch 618135: gzip.py and files > 2G
The last round boosted "the limit" from 2GB to 4GB. This round gets
rid of the 4GB limit. For files > 4GB, gzip stores just the last 32
bits of the file size, and now we play along with that too. Tested
by hand (on a 6+GB file) on Win2K.
Boosting from 2GB to 4GB was arguably enough "a bugfix". Going beyond
that smells more like "new feature" to me.
Jeremy Hylton [Tue, 5 Nov 2002 20:27:17 +0000 (20:27 +0000)]
Repair inconsistent use of tabs and spaces.
Jeremy Hylton [Tue, 5 Nov 2002 20:11:08 +0000 (20:11 +0000)]
Remove use of string module and reflow a couple of long lines.
Barry Warsaw [Tue, 5 Nov 2002 19:56:47 +0000 (19:56 +0000)]
Bump __version__ (yes, to 2.5 "minus")
Barry Warsaw [Tue, 5 Nov 2002 19:54:52 +0000 (19:54 +0000)]
Jason Mastaler's patch to break the dependence on rfc822.py for the
address parsing routines. Closes SF patch #613434.
Gustavo Niemeyer [Tue, 5 Nov 2002 18:41:53 +0000 (18:41 +0000)]
* bzmodule.c
More fixes of XDECREF'd values not initialized.
Guido van Rossum [Tue, 5 Nov 2002 18:41:20 +0000 (18:41 +0000)]
Fix an old bug in poll(). When a signal is handled while we're
blocked in select(), this will raise select.error with errno set to
EINTR. The except clauses correctly ignores this error, but the rest
of the logic will then call read() for all objects in select's *input*
list of read file descriptors. Then when an object's read_handler()
is naive, it will call recv() on its socket, which will raise an
IOError, and then asyncore decides to close the socket. To fix this,
we simply return in this case.
Backport candidate.
Neal Norwitz [Tue, 5 Nov 2002 18:17:32 +0000 (18:17 +0000)]
Fix SF #633935, test_bz2 fails
Needed to init ret since it was Py_XDECREF()d on error.
All regressions pass in debug build for me.
Michael W. Hudson [Tue, 5 Nov 2002 18:05:49 +0000 (18:05 +0000)]
Use PyList_CheckExact and PyTuple_CheckExact for checking whether
PySequence_Fast needs to do anything siginificant.
Fred Drake [Tue, 5 Nov 2002 17:54:02 +0000 (17:54 +0000)]
Fix a few minor nits. Still need to actually proofread this.
Michael W. Hudson [Tue, 5 Nov 2002 17:38:05 +0000 (17:38 +0000)]
This is Alex Martelli's patch
[ 633870 ] allow any seq assignment to a list slice
plus a very silly little test case of my own.
Fred Drake [Tue, 5 Nov 2002 16:52:50 +0000 (16:52 +0000)]
Fix minor markup nits.
Gustavo Niemeyer [Tue, 5 Nov 2002 16:50:05 +0000 (16:50 +0000)]
Patch implementing bz2 module.
* setup.py
(PyBuildExt.detect_modules): Included bz2 module detection.
* Modules/bz2module.c
* Lib/test/test_bz2.py
* Doc/lib/libbz2.tex
Included files implementing, testing, and documenting bz2 module.
* Doc/Makefile.deps
* Doc/lib/lib.tex
Include references to libbz2.tex.
* Misc/NEWS
(Library): Mention distutils' c++ linkage patch, and new bz2 module.
Gustavo Niemeyer [Tue, 5 Nov 2002 16:12:02 +0000 (16:12 +0000)]
This patch fixes the following bugs:
[#413582] g++ must be called for c++ extensions
[#454030] distutils cannot link C++ code with GCC
topdir = "Lib/distutils"
* bcppcompiler.py
(BCPPCompiler.create_static_lib): Fixed prototype, removing extra_preargs
and extra_postargs parameters. Included target_lang parameter.
(BCPPCompiler.link): Included target_lang parameter.
* msvccompiler.py
(MSVCCompiler.create_static_lib): Fixed prototype, removing extra_preargs
and extra_postargs parameters. Included target_lang parameter.
(MSVCCompiler.link): Included target_lang parameter.
* ccompiler.py
(CCompiler): New language_map and language_order attributes, used by
CCompiler.detect_language().
(CCompiler.detect_language): New method, will return the language of
a given source, or list of sources. Individual source language is
detected using the language_map dict. When mixed sources are used,
language_order will stablish the language precedence.
(CCompiler.create_static_lib, CCompiler.link, CCompiler.link_executable,
CCompiler.link_shared_object, CCompiler.link_shared_lib):
Inlcuded target_lang parameter.
* cygwinccompiler.py
(CygwinCCompiler.link): Included target_lang parameter.
* emxccompiler.py
(EMXCCompiler.link): Included target_lang parameter.
* mwerkscompiler.py
(MWerksCompiler.link): Included target_lang parameter.
* extension.py
(Extension.__init__): New 'language' parameter/attribute, initialized
to None by default. If provided will overlap the automatic detection
made by CCompiler.detect_language(), in build_ext command.
* sysconfig.py
(customize_compiler): Check Makefile for CXX option, and also the
environment variable CXX. Use the resulting value in the 'compiler_cxx'
parameter of compiler.set_executables().
* unixccompiler.py
(UnixCCompiler): Included 'compiler_cxx' in executables dict, defaulting
to 'cc'.
(UnixCCompiler.create_static_lib): Included target_lang parameter.
(UnixCCompiler.link): Included target_lang parameter, and made
linker command use compiler_cxx, if target_lang is 'c++'.
* command/build_ext.py
(build_ext.build_extension): Pass new ext.language attribute
to compiler.link_shared_object()'s target_lang parameter. If
ext.language is not provided, detect language using
compiler.detect_language(sources) instead.
* command/config.py
(config._link): Pass already available lang parameter as target_lang
parameter of compiler.link_executable().
Michael W. Hudson [Tue, 5 Nov 2002 15:28:51 +0000 (15:28 +0000)]
Some days, I think my comment of
/* this is harder to get right than you might think */
angered some God somewhere. After noticing
>>> range(
5000000)[slice(96360, None, 439)]
[]
I found that my cute test for the slice being empty failed due to
overflow. Fixed, and added simple test (not the above!).
Thomas Heller [Tue, 5 Nov 2002 10:06:19 +0000 (10:06 +0000)]
Must now give the basename - not including directories - of the
install-script on the command line.
Recreated after recompilation of wininst.exe.
Raymond Hettinger [Tue, 5 Nov 2002 06:06:02 +0000 (06:06 +0000)]
SF 633560: tokenize.__all__ needs "generate_tokens"
Tim Peters [Tue, 5 Nov 2002 03:49:09 +0000 (03:49 +0000)]
This stopped working on Windows, due to a reference to the non-existent
_locale.getdefaultlocale. Guessing a leading underscore was intended,
but don't really understood this stuff (locale looks like Spanish for
the opposite of global to me <wink>).
Andrew M. Kuchling [Tue, 5 Nov 2002 00:26:33 +0000 (00:26 +0000)]
Use personal e-mail address; update date; various small edits; add a name to acks
Chui Tey [Mon, 4 Nov 2002 23:39:45 +0000 (23:39 +0000)]
Set breakpoints on remote debugger
Neal Norwitz [Mon, 4 Nov 2002 23:21:09 +0000 (23:21 +0000)]
SF #633013, Fix NIS causing interpreter core dump
Prevent the lengths passed to PyString_FromStringAndSize()
from being negative in some cases.
Chui Tey [Mon, 4 Nov 2002 23:07:51 +0000 (23:07 +0000)]
Tidied up widget placement
Chui Tey [Mon, 4 Nov 2002 22:14:54 +0000 (22:14 +0000)]
Recalls breakpoints set in a file
Fred Drake [Mon, 4 Nov 2002 20:49:45 +0000 (20:49 +0000)]
Update config.h to pyconfig.h.
Andrew M. Kuchling [Mon, 4 Nov 2002 20:17:24 +0000 (20:17 +0000)]
Bring back the patch/bug count paragraph.
Correct source of *strip() changes
Small rewrites.
Andrew M. Kuchling [Mon, 4 Nov 2002 20:05:10 +0000 (20:05 +0000)]
Mention distutil changes
Andrew M. Kuchling [Mon, 4 Nov 2002 19:53:24 +0000 (19:53 +0000)]
[Patch #588809] LDFLAGS support for build_ext.py, from Robert Weber
customize_compiler() now looks at various environment variables and uses
their values to override the configured C compiler/preprocessor/linker
binary and flags.
Tim Peters [Mon, 4 Nov 2002 19:50:11 +0000 (19:50 +0000)]
Related to SF patch 618135: gzip.py and files > 2G.
Fixed the signed/unsigned confusions when dealing with files >= 2GB.
4GB is still a hard limitation of the gzip file format, though.
Testing this was a bitch on Win98SE due to frequent system freezes. It
didn't freeze while running gzip, it kept freezing while trying to *create*
a > 2GB test file! This wasn't Python's doing. I don't know of a
reasonable way to test this functionality in regrtest.py, so I'm not
checking in a test case (a test case would necessarily require creating
a 2GB+ file first, using gzip to zip it, using gzip to unzip it again,
and then compare before-and-after; so >4GB free space would be required,
and a loooong time; I did all this "by hand" once).
Bugfix candidate, I guess.
Andrew M. Kuchling [Mon, 4 Nov 2002 19:50:03 +0000 (19:50 +0000)]
[Patch #588809] Remove check of environment variables; sysconfig.py will do that now
Martin v. Löwis [Mon, 4 Nov 2002 17:41:18 +0000 (17:41 +0000)]
Document symbolic constants for commands.
Martin v. Löwis [Mon, 4 Nov 2002 17:34:07 +0000 (17:34 +0000)]
Patch #625823: Add symbolic constants for more commands.
Fred Drake [Mon, 4 Nov 2002 16:29:31 +0000 (16:29 +0000)]
Thinking on comp.text.tex seems to be that it's better to override
\@makefntext than \@footnotetext, so we'll do that instead.
Andrew M. Kuchling [Mon, 4 Nov 2002 14:27:43 +0000 (14:27 +0000)]
[Bug #620630] Flush stdout after logging every message. Without it,
when output is redirected to a file, compiler error messages show
up before Distutils prints the command being invoked.
Andrew M. Kuchling [Mon, 4 Nov 2002 13:45:15 +0000 (13:45 +0000)]
Add get_distutil_options(); future setup.py files can use this to check
whether the Distutils being used supports a particularly capability.
(This idea was originally suggested by Juergen Hermann as a method
on the Distribution class. I think it makes more sense as a
function in core.py, and that's what this patch implements.)
Andrew M. Kuchling [Mon, 4 Nov 2002 13:33:07 +0000 (13:33 +0000)]
[Bug #570655] Fix misleading option text
Martin v. Löwis [Mon, 4 Nov 2002 09:56:00 +0000 (09:56 +0000)]
Patch #630829: Don't block on IAC, process suboptions.
Chui Tey [Mon, 4 Nov 2002 03:17:45 +0000 (03:17 +0000)]
[ 629984 ] Smaller font sizes not supported
Chui Tey [Mon, 4 Nov 2002 03:11:10 +0000 (03:11 +0000)]
619127: Recent File Menu Not Updating
Martin v. Löwis [Sun, 3 Nov 2002 17:20:12 +0000 (17:20 +0000)]
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
The @euro part is backported to 2.2.3.
Neal Norwitz [Sun, 3 Nov 2002 13:13:20 +0000 (13:13 +0000)]
Fix SF #632864, Typo string instead of sting in LibDoc. Will backport.
Neal Norwitz [Sun, 3 Nov 2002 02:56:27 +0000 (02:56 +0000)]
Fix SF # 518775, buffer object API description truncated
Neal Norwitz [Sun, 3 Nov 2002 00:35:53 +0000 (00:35 +0000)]
Fix SF # 631066, running regrtest in user mode fails
Try to write to TESTFN, if that fails, try TESTFN in /tmp
If that fails, print a warning and go on.
Will backport.
Neal Norwitz [Sun, 3 Nov 2002 00:13:42 +0000 (00:13 +0000)]
Fix SF #618146, overflow error in calendar module
Will backport.
Guido van Rossum [Sat, 2 Nov 2002 22:18:46 +0000 (22:18 +0000)]
Add "select all" by clicking on (0,0) cell.
Redo setting the selection and setting the beacon to deal better
with rows or columns -- these are now expressed by range (1, sys.maxint).
Neal Norwitz [Sat, 2 Nov 2002 20:58:05 +0000 (20:58 +0000)]
Fix SF # 551504, python -v sometimes fails to find init (HPUX)
Joseph Winston recommends removing DYNAMIC_PATH, since it can
cause some dynamic libraries to not load on HP-UX 11.
Neal Norwitz [Sat, 2 Nov 2002 20:43:25 +0000 (20:43 +0000)]
Fix compiler warning on HP-UX.
Cast param to isalnum() to int.
Neal Norwitz [Sat, 2 Nov 2002 19:55:21 +0000 (19:55 +0000)]
Use O_NONBLOCK rather than O_NDELAY, so we get POSIX non-blocking I/O.
On HPUX, Solaris, Tru64 (Dec UNIX), and IRIX (I think),
O_NONBLOCK is the POSIX version of non-blocking I/O
which is what we want.
On Linux and FreeBSD (at least), O_NONBLOCK and O_NDELAY are the same.
So this change should have no negative effect on those platforms.
Tested on Linux, Solaris, HPUX.
Thanks to Anders Qvist for diagnosing this problem.
Neal Norwitz [Sat, 2 Nov 2002 18:25:08 +0000 (18:25 +0000)]
Skip test_dbm if we can't write to the file
Cleanup (remove) the file(s) after we are done with the test.
(Fixes problem on snake farm)
Neal Norwitz [Sat, 2 Nov 2002 17:46:24 +0000 (17:46 +0000)]
Fix SF #632624, test_resource failure on alpha/64bit
Return PyLongs instead ot PyInts.
On alphas,
9223372036854775807 became -1.
Martin v. Löwis [Sat, 2 Nov 2002 17:42:33 +0000 (17:42 +0000)]
Remove extra argument in mknod. Fixes #632628.
Neal Norwitz [Sat, 2 Nov 2002 16:58:05 +0000 (16:58 +0000)]
Need to quote test for posix_threads on HPUX11
Walter Dörwald [Sat, 2 Nov 2002 13:32:07 +0000 (13:32 +0000)]
Move introductory sentence to where it belongs.
Guido van Rossum [Sat, 2 Nov 2002 06:50:05 +0000 (06:50 +0000)]
Add ESC key binding -- undo current cell editing.
Guido van Rossum [Sat, 2 Nov 2002 06:25:51 +0000 (06:25 +0000)]
Major breakthrough in selection -- drag-select multiple cells now
works. Also row and column selection works (sort of). The DEL
key deletes the selected rectangle. sys.argv[1] used by test_gui().
Raymond Hettinger [Sat, 2 Nov 2002 02:02:46 +0000 (02:02 +0000)]
Correct erroneous parenthesis placement in the delta from 1.63 to 1.64.
Fred Drake [Fri, 1 Nov 2002 21:33:44 +0000 (21:33 +0000)]
Update example for the type() function to use the currently accepted
preference of using "is" instead of "==" to compare types, use
built-in names where available, and point to the isinstance()
function.
Closes SF bug #632196.
Finn Bock [Fri, 1 Nov 2002 18:02:03 +0000 (18:02 +0000)]
Patch #631972: Adds an is_jython flag.
Fredrik Lundh [Fri, 1 Nov 2002 17:14:16 +0000 (17:14 +0000)]
patch #624180 (part 2 of 2):
use unquote on authentication strings, to allow users to embed
@ and : in user names and passwords (from Phillip Eby)
Finn Bock [Fri, 1 Nov 2002 11:33:00 +0000 (11:33 +0000)]
[SF bug 631713] use the import exeption message in the TestFailed
exception.
Fred Drake [Thu, 31 Oct 2002 21:04:34 +0000 (21:04 +0000)]
Define abstract way to get the normal and smaller font sizes that work
even in the footnote context.
Fred Drake [Thu, 31 Oct 2002 20:46:20 +0000 (20:46 +0000)]
Add a missing % to a Windows-style environment variable expression.
Minor style guide compliance fix.
Several markup fixes.
Greg Ward [Thu, 31 Oct 2002 16:11:18 +0000 (16:11 +0000)]
Ad test_funky_hyphens() to test some screwy edge cases reported in SF
bug #596434. (Alas, I don't think this completely covers that bug.)
Remove 'wrapper' argument from BaseTestCase.check_split() -- it's not
actually needed.
Thomas Heller [Thu, 31 Oct 2002 14:26:37 +0000 (14:26 +0000)]
Fixes SF bug#614051: win32 build_ext problem.
Andrew M. Kuchling [Thu, 31 Oct 2002 13:39:33 +0000 (13:39 +0000)]
Catch only ImportError
Walter Dörwald [Thu, 31 Oct 2002 13:36:29 +0000 (13:36 +0000)]
Add docstrings to register, lookup, register_error
and lookup_error. This closes SF patch #630622.
Andrew M. Kuchling [Thu, 31 Oct 2002 13:22:41 +0000 (13:22 +0000)]
Make the Distribution() constructor forgiving of unknown keyword
arguments, triggering a warning instead of raising an exception. (In
1.5.2/2.0, it will print to stderr.)
Bugfix candidate for all previous versions. This changes behaviour,
but the old behaviour wasn't very useful. If Distutils version X+1
adds a new keyword argument, using the new keyword means your setup.py
file won't work with Distutils version X any more.
Fred Drake [Wed, 30 Oct 2002 22:20:27 +0000 (22:20 +0000)]
Add a couple of comments about the use of \normalsize and
\footnotesize.
Fred Drake [Wed, 30 Oct 2002 21:51:18 +0000 (21:51 +0000)]
Still more magical <link> elements.
Fred Drake [Wed, 30 Oct 2002 21:38:32 +0000 (21:38 +0000)]
Hackish way to generate an up-<link> for the title page if we have
one.
Added misc. comments.
Fred Drake [Wed, 30 Oct 2002 21:32:40 +0000 (21:32 +0000)]
More <link> support for generated pages.
Fred Drake [Wed, 30 Oct 2002 21:29:50 +0000 (21:29 +0000)]
Two more <link> elements.
Fred Drake [Wed, 30 Oct 2002 21:17:10 +0000 (21:17 +0000)]
Add some relevant <link> elements.
Andrew M. Kuchling [Wed, 30 Oct 2002 21:08:34 +0000 (21:08 +0000)]
Use personal e-mail address
Fred Drake [Wed, 30 Oct 2002 19:55:23 +0000 (19:55 +0000)]
Minor rearranging.
Fred Drake [Wed, 30 Oct 2002 18:17:03 +0000 (18:17 +0000)]
Add notes to the asctime() and ctime() descriptions to make it
explicit that locale information is not used. There wasn't anything
that implied it was, but this has confused users.
Fred Drake [Wed, 30 Oct 2002 17:07:02 +0000 (17:07 +0000)]
Sprinkle with --favicon options.
Fred Drake [Wed, 30 Oct 2002 17:05:03 +0000 (17:05 +0000)]
Added support for --favicon.
Fix support for the Aesop Meta Type.
Fred Drake [Wed, 30 Oct 2002 17:02:21 +0000 (17:02 +0000)]
Added support for --favicon.
Fred Drake [Wed, 30 Oct 2002 17:00:58 +0000 (17:00 +0000)]
Add support for using a "favicon".
make_head_and_body(): Re-arranged to do (slightly) less work for each page.
Fred Drake [Wed, 30 Oct 2002 16:54:54 +0000 (16:54 +0000)]
Make use of the new "favicon" image.
Fred Drake [Wed, 30 Oct 2002 16:54:12 +0000 (16:54 +0000)]
Added "favicon" image.