Martin v. Löwis [Fri, 10 Sep 2004 06:25:01 +0000 (06:25 +0000)]
Patch #808115: Add script support to bdist_rpm.py.
Raymond Hettinger [Fri, 10 Sep 2004 06:21:22 +0000 (06:21 +0000)]
__slots__ went missing from Template.
Barry Warsaw [Fri, 10 Sep 2004 03:08:08 +0000 (03:08 +0000)]
Many updates to PEP 292 templates. Summary:
- Template no longer inherits from unicode.
- SafeTemplate is removed. Now Templates have both a substitute() and a
safe_substitute() method, so we don't need separate classes. No more
__mod__() operator.
- Adopt Tim Peter's idea for giving Template a metaclass, which makes the
delimiter, the identifier pattern, or the entire pattern easy to override
and document, while retaining efficiency of class-time compilation of the
regexp.
- More informative ValueError messages which will help a user narrow down the
bogus delimiter to the line and column in the original string (helpful for
long triple quoted strings).
Fred Drake [Fri, 10 Sep 2004 01:20:21 +0000 (01:20 +0000)]
document the exceptions raised by sgmllib, htmllib, and HTMLParser
Fred Drake [Fri, 10 Sep 2004 01:16:49 +0000 (01:16 +0000)]
fix typo in markup
Fred Drake [Thu, 9 Sep 2004 05:13:52 +0000 (05:13 +0000)]
make_nav_panel(): Don't cause side-effects on the input variables;
this caused duplicate attributes for the bottom navigation panel.
(closes SF patch #
1013055; backport candidate)
Fred Drake [Thu, 9 Sep 2004 02:24:13 +0000 (02:24 +0000)]
clean up the API a little; exceptions are defined by this module
(needs documentation)
Fred Drake [Thu, 9 Sep 2004 01:49:58 +0000 (01:49 +0000)]
add name that should be considered public to __all__
Fred Drake [Wed, 8 Sep 2004 22:58:36 +0000 (22:58 +0000)]
remove unnecessary override of base class method
Fred Drake [Wed, 8 Sep 2004 22:57:01 +0000 (22:57 +0000)]
add tests that make sure buffer boundaries are handled properly for SGML comments
(see SF patch #901369)
Martin v. Löwis [Wed, 8 Sep 2004 16:09:14 +0000 (16:09 +0000)]
Revert creation of launcher.exe.
Install python[w].exe on demand also as extpy[w].exe
Martin v. Löwis [Wed, 8 Sep 2004 15:57:36 +0000 (15:57 +0000)]
Revert creation of launcher.exe
Brett Cannon [Wed, 8 Sep 2004 02:02:41 +0000 (02:02 +0000)]
Remove usage of locale.getlocale in favor or setlocale(LC_NUMERIC, None) .
Also added a comment about why the code is bother to see what setlocale thinks
the set locale is.
Closes bug #
1023798.
Walter Dörwald [Tue, 7 Sep 2004 20:24:22 +0000 (20:24 +0000)]
SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support
decoding incomplete input (when the input stream is temporarily exhausted).
codecs.StreamReader now implements buffering, which enables proper
readline support for the UTF-16 decoders. codecs.StreamReader.read()
has a new argument chars which specifies the number of characters to
return. codecs.StreamReader.readline() and codecs.StreamReader.readlines()
have a new argument keepends. Trailing "\n"s will be stripped from the lines
if keepends is false. Added C APIs PyUnicode_DecodeUTF8Stateful and
PyUnicode_DecodeUTF16Stateful.
Trent Mick [Tue, 7 Sep 2004 17:48:26 +0000 (17:48 +0000)]
Apply patch from http://python.org/sf/728330 to fix socket module compilation on Solaris 2.6, HP-UX 11, AIX 5.1 and (possibly) some IRIX versions.
Martin v. Löwis [Tue, 7 Sep 2004 15:40:12 +0000 (15:40 +0000)]
Add support for launcher.exe
Martin v. Löwis [Tue, 7 Sep 2004 15:39:29 +0000 (15:39 +0000)]
Implement conditional extensions through launcher.exe.
Martin v. Löwis [Tue, 7 Sep 2004 15:37:26 +0000 (15:37 +0000)]
Support Python 2.2.
Jeremy Hylton [Tue, 7 Sep 2004 15:36:48 +0000 (15:36 +0000)]
Remove debugging print (not triggered by test suite) and add XXX comment about how the code should raise a SyntaxError.
Martin v. Löwis [Tue, 7 Sep 2004 15:36:46 +0000 (15:36 +0000)]
Add launcher program
Jeremy Hylton [Tue, 7 Sep 2004 15:28:01 +0000 (15:28 +0000)]
compiler.transformer: correct lineno attribute when possible
SF patch #
1015989
The basic idea of this patch is to compute lineno attributes for all AST nodes. The actual
implementation lead to a lot of restructing and code cleanup.
The generated AST nodes now have an optional lineno argument to constructor. Remove the
top-level asList(), since it didn't seem to serve any purpose. Add an __iter__ to ast nodes.
Use isinstance() instead of explicit type tests.
Change transformer to use the new lineno attribute, which replaces three lines of code with one.
Use universal newlines so that we can get rid of special-case code for line endings. Use
lookup_node() in a few more frequently called, but simple com_xxx methods(). Change string
exception to class exception.
Brett Cannon [Mon, 6 Sep 2004 23:30:27 +0000 (23:30 +0000)]
Ported test__locale to unittest.
Raymond Hettinger [Mon, 6 Sep 2004 23:02:37 +0000 (23:02 +0000)]
Remove redunandant assertions from last checkin.
Raymond Hettinger [Mon, 6 Sep 2004 22:58:37 +0000 (22:58 +0000)]
SF #
1022953: binascii.a2b_hqx("") raises SystemError
Several functions adopted the strategy of altering a full lengthed
string copy and resizing afterwards. That would fail if the initial
string was short enough (0 or 1) to be interned. Interning precluded
the subsequent resizing operation.
The solution was to make sure the initial string was at least two
characters long.
Added tests to verify that all binascii functions do not crater when
given an empty string argument.
Raymond Hettinger [Mon, 6 Sep 2004 07:04:09 +0000 (07:04 +0000)]
Fix erroneous docstring comment.
Martin v. Löwis [Mon, 6 Sep 2004 06:31:12 +0000 (06:31 +0000)]
Add test_difflib_expect.html.
Fix open Verbs.
Properly add "Edit with IDLE" to TclTk feature.
Raymond Hettinger [Mon, 6 Sep 2004 01:01:08 +0000 (01:01 +0000)]
Markup nits.
Raymond Hettinger [Mon, 6 Sep 2004 00:42:14 +0000 (00:42 +0000)]
Add missing close parenthesis.
Raymond Hettinger [Mon, 6 Sep 2004 00:12:04 +0000 (00:12 +0000)]
SF bug #901654: split method documentation can be improved
* Discuss the algorithmic distinctions between s.split() and s.split(sep).
* Document the split behavior for empty strings.
* Note the behavior when maxsplit is zero.
* Include short examples.
Brett Cannon [Sun, 5 Sep 2004 19:42:15 +0000 (19:42 +0000)]
Rework some wording.
Raymond Hettinger [Sun, 5 Sep 2004 00:00:42 +0000 (00:00 +0000)]
Fulfill Martin's request to use try/except rather than a "look before
you leap" approach. Makes the early call to os.urandom() unnecessary.
Raymond Hettinger [Sat, 4 Sep 2004 23:53:20 +0000 (23:53 +0000)]
Teach a test about the different kinds of functions.
Raymond Hettinger [Sat, 4 Sep 2004 21:14:34 +0000 (21:14 +0000)]
SF bug #
1020540: a wrong link from "frame object" in lib index
Raymond Hettinger [Sat, 4 Sep 2004 20:13:29 +0000 (20:13 +0000)]
SF bug #
1022010: Import random fails
* Complete the previous patch by making sure that the MachineRandom
tests are only run when the underlying resource is available.
Raymond Hettinger [Sat, 4 Sep 2004 20:09:13 +0000 (20:09 +0000)]
Change the strategy for coping with time intensive tests from
"all or none" to "all or some".
This provides much greater test coverage without eating much time.
It also makes it more likely that routine regression testing will
unearth bugs.
Tim Peters [Sat, 4 Sep 2004 17:21:02 +0000 (17:21 +0000)]
Added IGNORE_EXCEPTION_DETAIL comparison option. The need is explained
in the new docs.
DocTestRunner.__run: Separate the determination of the example outcome
from reporting that outcome, to squash brittle code duplication and
excessive nesting.
Tim Peters [Sat, 4 Sep 2004 15:04:06 +0000 (15:04 +0000)]
Added a couple names to __all__.
Gregory P. Smith [Sat, 4 Sep 2004 01:36:59 +0000 (01:36 +0000)]
SF bug
1017405: the keys() values() and items() DB methods were
ignoring their transaction (txn) argument.
Gustavo Niemeyer [Fri, 3 Sep 2004 20:15:56 +0000 (20:15 +0000)]
Minor aesthetic change in sre_parse.py, as suggested by Mike Coleman.
Raymond Hettinger [Fri, 3 Sep 2004 19:09:22 +0000 (19:09 +0000)]
SF bug #
1022010: Import random fails
* trap NotImplementedError raised by os.urandom calls when not available
on a particular system.
Gustavo Niemeyer [Fri, 3 Sep 2004 18:11:59 +0000 (18:11 +0000)]
Fixing bug #817234, which made SRE get into an infinite loop on
empty final matches with finditer(). New test cases included
for this bug and for #581080.
Gustavo Niemeyer [Fri, 3 Sep 2004 17:06:10 +0000 (17:06 +0000)]
Applying modified version of patch #
1018386, which fixes
some escaping bugs in SRE.
Martin v. Löwis [Fri, 3 Sep 2004 13:32:57 +0000 (13:32 +0000)]
Add main program for icon file.
Skip Montanaro [Fri, 3 Sep 2004 00:04:05 +0000 (00:04 +0000)]
Make the api of the _dispatch() method more concrete. I have no idea if
this is the right way to document such things (Fred, help me out here :-),
but I got misled by the existing documentation and assumed the parameter
list was a *args sort of thing.
cvs2svn [Thu, 2 Sep 2004 16:38:20 +0000 (16:38 +0000)]
This commit was manufactured by cvs2svn to create tag 'r24a3'.
Anthony Baxter [Thu, 2 Sep 2004 16:38:20 +0000 (16:38 +0000)]
update version
Anthony Baxter [Thu, 2 Sep 2004 16:37:15 +0000 (16:37 +0000)]
release date
Martin v. Löwis [Wed, 1 Sep 2004 18:29:25 +0000 (18:29 +0000)]
Update buildno for 2.4a3
Martin v. Löwis [Wed, 1 Sep 2004 14:51:06 +0000 (14:51 +0000)]
Conditionalize Tcl feature
Andrew M. Kuchling [Wed, 1 Sep 2004 14:04:51 +0000 (14:04 +0000)]
[Bug #
1011606] Only check file descriptors for exceptional conditions if the fd is readable or writable
Tim Peters [Wed, 1 Sep 2004 13:10:32 +0000 (13:10 +0000)]
Whitespace normalization.
Raymond Hettinger [Wed, 1 Sep 2004 07:02:44 +0000 (07:02 +0000)]
SF patch #
1020188: Use Py_CLEAR where necessary to avoid crashes
(Contributed by Dima Dorfman)
Fred Drake [Wed, 1 Sep 2004 04:05:08 +0000 (04:05 +0000)]
- add missing \end{seealso}
- wrap long line
Raymond Hettinger [Tue, 31 Aug 2004 19:33:47 +0000 (19:33 +0000)]
Remove rotor from the build.
Raymond Hettinger [Tue, 31 Aug 2004 18:54:35 +0000 (18:54 +0000)]
Remove rotor and xreadlines from VC 6 build.
Martin v. Löwis [Tue, 31 Aug 2004 16:22:09 +0000 (16:22 +0000)]
Add instructions for building Tix
Martin v. Löwis [Tue, 31 Aug 2004 16:19:01 +0000 (16:19 +0000)]
Fix installdir for Tix
Tim Peters [Tue, 31 Aug 2004 14:29:12 +0000 (14:29 +0000)]
Remove rotor and xreadlines from VC 7.1 build.
Andrew M. Kuchling [Tue, 31 Aug 2004 13:57:02 +0000 (13:57 +0000)]
Add item
Andrew M. Kuchling [Tue, 31 Aug 2004 13:52:27 +0000 (13:52 +0000)]
Remove rotor, xreadlines modules
Andrew M. Kuchling [Tue, 31 Aug 2004 13:50:43 +0000 (13:50 +0000)]
Add news item.
Andrew M. Kuchling [Tue, 31 Aug 2004 13:50:12 +0000 (13:50 +0000)]
Remove mpz, rotor, xreadlines modules
Andrew M. Kuchling [Tue, 31 Aug 2004 13:49:36 +0000 (13:49 +0000)]
Remove rotor reference
Andrew M. Kuchling [Tue, 31 Aug 2004 13:45:22 +0000 (13:45 +0000)]
Missed some occurrences of test_mpz
Andrew M. Kuchling [Tue, 31 Aug 2004 13:43:19 +0000 (13:43 +0000)]
Remove mpz, rotor
Andrew M. Kuchling [Tue, 31 Aug 2004 13:42:11 +0000 (13:42 +0000)]
Remove mpzpi demo
Andrew M. Kuchling [Tue, 31 Aug 2004 13:41:04 +0000 (13:41 +0000)]
Remove test output for rotor, xreadline
Andrew M. Kuchling [Tue, 31 Aug 2004 13:37:25 +0000 (13:37 +0000)]
Remove mpz, rotor, xreadlines modules
Andrew M. Kuchling [Tue, 31 Aug 2004 13:31:42 +0000 (13:31 +0000)]
Remove rotor, xreadlines modules
Andrew M. Kuchling [Tue, 31 Aug 2004 13:29:28 +0000 (13:29 +0000)]
Remove test for mpz
Andrew M. Kuchling [Tue, 31 Aug 2004 13:29:03 +0000 (13:29 +0000)]
Remove tests for mpz, rotor, xreadlines
Andrew M. Kuchling [Tue, 31 Aug 2004 13:24:08 +0000 (13:24 +0000)]
Remove rotor license
Andrew M. Kuchling [Tue, 31 Aug 2004 13:22:43 +0000 (13:22 +0000)]
Remove docs for xreadlines, mpz, rotor
Andrew M. Kuchling [Tue, 31 Aug 2004 13:21:07 +0000 (13:21 +0000)]
Remove xreadlines reference
Andrew M. Kuchling [Tue, 31 Aug 2004 13:06:16 +0000 (13:06 +0000)]
Remove TERMIOS module
Andrew M. Kuchling [Tue, 31 Aug 2004 13:05:59 +0000 (13:05 +0000)]
Remove TERMIOS docs
Andrew M. Kuchling [Tue, 31 Aug 2004 13:05:36 +0000 (13:05 +0000)]
Use correct constant; remove reference to TERMIOS.py
Andrew M. Kuchling [Tue, 31 Aug 2004 12:21:44 +0000 (12:21 +0000)]
Change from Raymond: use pos/neg instead of +/- 1; minor edits
Andrew M. Kuchling [Tue, 31 Aug 2004 12:07:43 +0000 (12:07 +0000)]
Describe non-recursive re
Andrew M. Kuchling [Tue, 31 Aug 2004 11:54:22 +0000 (11:54 +0000)]
Add bug/patch counts
Andrew M. Kuchling [Tue, 31 Aug 2004 11:38:12 +0000 (11:38 +0000)]
Use multi-line import
Andrew M. Kuchling [Tue, 31 Aug 2004 11:26:23 +0000 (11:26 +0000)]
Update versions and dates; add PEP 328
Vinay Sajip [Tue, 31 Aug 2004 10:21:51 +0000 (10:21 +0000)]
Updated doc for getLogger()
Anthony Baxter [Tue, 31 Aug 2004 10:07:13 +0000 (10:07 +0000)]
SF patch #
1007189, multi-line imports, for instance:
"from blah import (foo, bar
baz, bongo)"
Anthony Baxter [Tue, 31 Aug 2004 09:53:05 +0000 (09:53 +0000)]
onward and upward
Martin v. Löwis [Tue, 31 Aug 2004 06:43:28 +0000 (06:43 +0000)]
Add patch for Tix 8.1.4.
Tim Peters [Tue, 31 Aug 2004 02:19:55 +0000 (02:19 +0000)]
HardwareRandom: Go back to multiplying by 2**-BPF instead of using
ldexp. Both methods are exact, and return the same results. Turns out
multiplication is a few (but just a few) percent faster on my box.
They're both significantly faster than using struct with a Q format
to convert bytes to a 64-bit long (struct.unpack() appears to lose due
to the tuple creation/teardown overhead), and calling _hexlify is
significantly faster than doing bytes.encode('hex'). So we appear to
have hit a local minimum (wrt speed) here.
Raymond Hettinger [Tue, 31 Aug 2004 01:05:15 +0000 (01:05 +0000)]
Take advantage of the math library's ldexp for assembling a float by
components without division and without roundoff error for properly
sized mantissas (i.e. on systems with 53 or more mantissa bits per
float). Eliminates the previous implementation's rounding bias as
aptly demonstrated by Tim Peters.
Tim Peters [Mon, 30 Aug 2004 23:18:23 +0000 (23:18 +0000)]
Changed Karatsuba cutoff to match current reality.
Tim Peters [Mon, 30 Aug 2004 22:13:22 +0000 (22:13 +0000)]
More cmd.exe exploitation.
Tim Peters [Mon, 30 Aug 2004 21:27:55 +0000 (21:27 +0000)]
Since it's impossible to build Python using VC7.1 on a command.com
system, exploit cmd.exe's setlocal function in this directory.
Tim Peters [Mon, 30 Aug 2004 21:14:51 +0000 (21:14 +0000)]
Updated test-runner .bat for new location of Tcl/Tk.
Replaced outcomes from native Tcl/Tk tests. Maybe the diffs are legit,
maybe not. I noticed that the Tcl results I'm replacing here claimed
both that there were no failures, and that one file had tests with
failures, so I wasn't inclined to trust them <wink>.
Tim Peters [Mon, 30 Aug 2004 17:36:46 +0000 (17:36 +0000)]
win32_urandom(): There's no need to copy the generated byte string, so
don't.
Tim Peters [Mon, 30 Aug 2004 17:10:53 +0000 (17:10 +0000)]
win32_urandom(): pass the function name to PyArg_ParseTuple, for better
error msgs.
Tim Peters [Mon, 30 Aug 2004 17:08:02 +0000 (17:08 +0000)]
win32_urandom(): Raise ValueError if the argument is negative.
Tim Peters [Mon, 30 Aug 2004 17:02:04 +0000 (17:02 +0000)]
win32_urandom(): Rewrite to Python C standards (hard tabs, function name
in first column, no parens around return value).
Tim Peters [Mon, 30 Aug 2004 16:19:24 +0000 (16:19 +0000)]
The distinction between comparison flags and reporting flags isn't unique
to unittest, so make it official: new module constants COMPARISON_FLAGS
and REPORTING_FLAGS, which are bitmasks or'ing together the relevant
individual option flags.
set_unittest_reportflags(): Reworked to use REPORTING_FLAGS, and
simplified overly complicated flag logic.
class FakeModule: Removed this; neither documented nor used.
Johannes Gijsbers [Mon, 30 Aug 2004 15:03:23 +0000 (15:03 +0000)]
Fix build error: \filename{/dev/urandom} -> \file{/dev/urandom}.
Johannes Gijsbers [Mon, 30 Aug 2004 14:33:25 +0000 (14:33 +0000)]
Bug #
1014775: update NEWS.help for changes in docutils.
Johannes Gijsbers [Mon, 30 Aug 2004 14:27:11 +0000 (14:27 +0000)]
Bug #
1014770: apply some rest-foo and fix some docutils errors.