Barry Warsaw [Sat, 9 Oct 2004 22:57:33 +0000 (22:57 +0000)]
test_missing_start_boundary(): A test for SF bug #
1030941.
Tim Peters [Sat, 9 Oct 2004 22:47:13 +0000 (22:47 +0000)]
_PyGILState_Init(), PyGILState_Ensure(): Since PyThread_set_key_value()
can fail, check its return value, and die if it does fail.
_PyGILState_Init(): Assert that the thread doesn't already have an
association for autoTLSkey. If it does, PyThread_set_key_value() will
ignore the attempt to (re)set the association, which the code clearly
doesn't want.
Tim Peters [Sat, 9 Oct 2004 22:33:09 +0000 (22:33 +0000)]
Document the results of painful reverse-engineering of the "portable TLS"
code.
PyThread_set_key_value(): It's clear that this code assumes the passed-in
value isn't NULL, so document that it must not be, and assert that it
isn't. It remains unclear whether existing callers want the odd semantics
actually implemented by this function.
Barry Warsaw [Sat, 9 Oct 2004 21:44:13 +0000 (21:44 +0000)]
Fix for SF bug #
1010102. The default is PureProxy not SMTPProxy.
Barry Warsaw [Sat, 9 Oct 2004 21:08:30 +0000 (21:08 +0000)]
__init__(): Coerce the input_charset to unicode (with ascii encoding) before
calling .lower() on it. This fixes the problem described in SF patch # 866982
where in the tr_TR.ISO-8859-9 locale, 'I'.lower() isn't 'i'. unicodes are
locale insensitive.
Tim Peters [Sat, 9 Oct 2004 17:38:29 +0000 (17:38 +0000)]
Style guide & consistency changes. No semantic changes.
Tim Peters [Sat, 9 Oct 2004 17:25:05 +0000 (17:25 +0000)]
Trim trailing whitespace.
Raymond Hettinger [Sat, 9 Oct 2004 16:02:18 +0000 (16:02 +0000)]
Simplify delitem() code by calling rotate() directly instead of using
arguments passed through tuples.
Johannes Gijsbers [Sat, 9 Oct 2004 15:52:04 +0000 (15:52 +0000)]
Patch #
1042969: add closing brace for \token {generator_expression}. Thanks
George Yoshida!
Raymond Hettinger [Sat, 9 Oct 2004 07:10:44 +0000 (07:10 +0000)]
SF patch #
1043218
Simplify internal calls and logic for _fix() and _fixexponents().
(Contributed by Facundo Batista.)
Andrew M. Kuchling [Fri, 8 Oct 2004 18:48:43 +0000 (18:48 +0000)]
[Bug #
1022311] curses module uses y,x ordering of arguments, not x,y
Andrew M. Kuchling [Fri, 8 Oct 2004 18:34:47 +0000 (18:34 +0000)]
[Bug #
1041501] Fix example code
Andrew M. Kuchling [Fri, 8 Oct 2004 18:29:29 +0000 (18:29 +0000)]
[Bug #
1031897] Fix order of decorator application
Piers Lauder [Fri, 8 Oct 2004 04:05:39 +0000 (04:05 +0000)]
Fix bug in _checkquote that raised an exception on empty "arg".
Raymond Hettinger [Fri, 8 Oct 2004 01:52:15 +0000 (01:52 +0000)]
SF patch #
1041364: True/False instead of 1/0 in libstdtypes.tex
(Contributed by Gerrit Holl. Reviewed by Jeff Epler.)
Johannes Gijsbers [Thu, 7 Oct 2004 21:10:08 +0000 (21:10 +0000)]
Rewrite rmtree using os.walk to fix bug #
1025127:
The shutils.rmtree() implementation uses an excessive amount of memory when
deleting large directory hierarchies. Before actually deleting any files, it
builds up a list of (function, filename) tuples for all the files that it is
going to remove.
Michael W. Hudson [Thu, 7 Oct 2004 13:46:33 +0000 (13:46 +0000)]
This is Michiel de Hoon's patch, as attached to the bug report:
[
1030629 ] PyOS_InputHook broken
with a couple of utterly inconsequential changes by me.
Andrew M. Kuchling [Thu, 7 Oct 2004 12:30:54 +0000 (12:30 +0000)]
Add helpful comment
Andrew M. Kuchling [Thu, 7 Oct 2004 12:27:31 +0000 (12:27 +0000)]
Take out Guido's name and put in the PSF
Andrew M. Kuchling [Thu, 7 Oct 2004 12:23:12 +0000 (12:23 +0000)]
Update two URLs
Andrew M. Kuchling [Thu, 7 Oct 2004 12:04:50 +0000 (12:04 +0000)]
Add -m to man page
Andrew M. Kuchling [Thu, 7 Oct 2004 12:00:33 +0000 (12:00 +0000)]
Add item
Raymond Hettinger [Thu, 7 Oct 2004 06:46:25 +0000 (06:46 +0000)]
SF patch #
1035498: -m option to run a module as a script
(Contributed by Nick Coghlan.)
Raymond Hettinger [Thu, 7 Oct 2004 03:58:07 +0000 (03:58 +0000)]
Finalize the freelist of list objects.
Brett Cannon [Wed, 6 Oct 2004 22:48:58 +0000 (22:48 +0000)]
Fix bug introduced by the previous patch by changing TimeRE.__seqToRe() to
accept any iterable instead of only a sliceable object.
Raymond Hettinger [Wed, 6 Oct 2004 17:51:54 +0000 (17:51 +0000)]
Armin's patch to prevent overflows.
Brett Cannon [Wed, 6 Oct 2004 02:23:14 +0000 (02:23 +0000)]
Convert a listcomp to a gencomp (was already editing code).
Brett Cannon [Wed, 6 Oct 2004 02:11:37 +0000 (02:11 +0000)]
Locale data that contains regex metacharacters are now properly escaped.
Closes bug #
1039270.
Andrew M. Kuchling [Tue, 5 Oct 2004 20:23:34 +0000 (20:23 +0000)]
Add some items
Tim Peters [Mon, 4 Oct 2004 03:34:32 +0000 (03:34 +0000)]
The docs claimed a test would pass that actually wouldn't pass. Repaired
the example so it does pass.
Brett Cannon [Sun, 3 Oct 2004 23:21:44 +0000 (23:21 +0000)]
Fix a small typo in the docstring for system_methodSignature .
Closes bug #
1038935. Thanks Malte Helmert for spotting it.
Vinay Sajip [Sun, 3 Oct 2004 19:12:07 +0000 (19:12 +0000)]
Changes made to maintain 1.5.2 compatibility.
Vinay Sajip [Sun, 3 Oct 2004 19:10:53 +0000 (19:10 +0000)]
Version number updated to 0.4.9.5
Vinay Sajip [Sun, 3 Oct 2004 19:10:05 +0000 (19:10 +0000)]
Clarified documentation about exc_info keyword parameter
Tim Peters [Sun, 3 Oct 2004 19:03:19 +0000 (19:03 +0000)]
Read the text files to be compared in universal-newline mode.
Tim Peters [Sun, 3 Oct 2004 18:35:19 +0000 (18:35 +0000)]
Whitespace normalization.
Just van Rossum [Sun, 3 Oct 2004 16:27:09 +0000 (16:27 +0000)]
added plistlib news item
David Goodger [Sun, 3 Oct 2004 15:55:09 +0000 (15:55 +0000)]
SF bug #997050: Document, test, & check for non-string values in ConfigParser. Moved the new string-only restriction added in rev. 1.65 to the SafeConfigParser class, leaving existing ConfigParser & RawConfigParser behavior alone, and documented the conditions under which non-string values work.
David Goodger [Sun, 3 Oct 2004 15:40:25 +0000 (15:40 +0000)]
SF bug #
1017864: ConfigParser now correctly handles default keys, processing them with ``ConfigParser.optionxform`` when supplied, consistent with the handling of config file entries and runtime-set options.
Michael W. Hudson [Sun, 3 Oct 2004 09:41:26 +0000 (09:41 +0000)]
typo
Martin v. Löwis [Sun, 3 Oct 2004 08:51:35 +0000 (08:51 +0000)]
Print verbose messages to stderr. Fixes #
1036752.
Andrew MacIntyre [Sun, 3 Oct 2004 08:29:55 +0000 (08:29 +0000)]
remove rotor module
Andrew MacIntyre [Sun, 3 Oct 2004 08:26:36 +0000 (08:26 +0000)]
note module removals, update on BitTorrent issue
Andrew MacIntyre [Sun, 3 Oct 2004 08:11:30 +0000 (08:11 +0000)]
bring modules up to date, correct .DEF file version
Barry Warsaw [Sun, 3 Oct 2004 04:02:43 +0000 (04:02 +0000)]
Fix test for FeedParser results.
Barry Warsaw [Sun, 3 Oct 2004 03:58:01 +0000 (03:58 +0000)]
Blarg, fix the versions.
Barry Warsaw [Sun, 3 Oct 2004 03:57:37 +0000 (03:57 +0000)]
Updates for distutils package.
Barry Warsaw [Sun, 3 Oct 2004 03:39:47 +0000 (03:39 +0000)]
Add documentation about as_string() mangling From_ lines.
Barry Warsaw [Sun, 3 Oct 2004 03:38:07 +0000 (03:38 +0000)]
as_string(): Indicate that this mangles From_ lines.
Barry Warsaw [Sun, 3 Oct 2004 03:16:19 +0000 (03:16 +0000)]
Big email 3.0 API changes, with updated unit tests and documentation.
Briefly (from the NEWS file):
- Updates for the email package:
+ All deprecated APIs that in email 2.x issued warnings have been removed:
_encoder argument to the MIMEText constructor, Message.add_payload(),
Utils.dump_address_pair(), Utils.decode(), Utils.encode()
+ New deprecations: Generator.__call__(), Message.get_type(),
Message.get_main_type(), Message.get_subtype(), the 'strict' argument to
the Parser constructor. These will be removed in email 3.1.
+ Support for Python earlier than 2.3 has been removed (see PEP 291).
+ All defect classes have been renamed to end in 'Defect'.
+ Some FeedParser fixes; also a MultipartInvariantViolationDefect will be
added to messages that claim to be multipart but really aren't.
+ Updates to documentation.
Just van Rossum [Sat, 2 Oct 2004 14:06:56 +0000 (14:06 +0000)]
removed 2.2 support
Just van Rossum [Sat, 2 Oct 2004 14:06:18 +0000 (14:06 +0000)]
use new readPlist() and writePlist() functions
Armin Rigo [Sat, 2 Oct 2004 13:59:34 +0000 (13:59 +0000)]
Upon insertion, if memory runs out, the deque was left in a corrupted state.
deque_item(): a performance bug: the linked list of blocks was followed
from the left in most cases, because the test (i < (deque->len >> 1)) was
after "i %= BLOCKLEN".
deque_clear(): replaced a call to deque_len() with deque->len; not sure what
this call was here for, nor if all compilers under the sun would inline it.
deque_traverse(): I belive that it could be called by the GC when the deque
has leftblock==rightblock==NULL, because it is tracked before the first block
is allocated (though closely before). Still, a C extension module subclassing
deque could provide its own tp_alloc that could trigger a GC collection after
the PyObject_GC_Track()...
deque_richcompare(): rewrote to cleanly check for end-of-iterations instead of
relying on deque.__iter__().next() to succeed exactly len(deque) times -- an
assumption which can break if deques are subclassed. Added a test.
I wonder if the length should be explicitely bounded to INT_MAX, with
OverflowErrors, as in listobject.c. On 64-bit machines, adding more than
INT_MAX in the deque will result in trouble. (Note to anyone/me fixing
this: carefully check for overflows if len is close to INT_MAX in the
following functions: deque_rotate(), deque_item(), deque_ass_item())
Raymond Hettinger [Sat, 2 Oct 2004 11:02:59 +0000 (11:02 +0000)]
SF bug#
1038917 fix typos (Contributed by George Yoshida.)
Raymond Hettinger [Sat, 2 Oct 2004 10:56:43 +0000 (10:56 +0000)]
Replace structure member before decreffing.
Just van Rossum [Sat, 2 Oct 2004 08:40:47 +0000 (08:40 +0000)]
Which reminds me, I've had a much improved plistlib.py lying around for
ages. The main improvements are:
- a much more convenient API: readPlist() and writePlist()
- support non-dict top-level objects
Raymond Hettinger [Sat, 2 Oct 2004 00:43:13 +0000 (00:43 +0000)]
* Bulletproof the method for detecting mutations during iteration.
The previous approach was too easily fooled (a rotate() sufficed).
* Use it->counter to determine when iteration is complete. The
previous approach was too complex.
* Strengthen an assertion and add a comment here or there.
Raymond Hettinger [Fri, 1 Oct 2004 15:25:53 +0000 (15:25 +0000)]
Restore the block length and add a comment.
Raymond Hettinger [Fri, 1 Oct 2004 15:14:39 +0000 (15:14 +0000)]
Clarify the relationship between indices.
Raymond Hettinger [Fri, 1 Oct 2004 06:24:12 +0000 (06:24 +0000)]
* Elaborate on the invariant comments and make them more precise.
* Change the centering by one to make it possible to test the module
with BLOCKLEN's as low as two. Testing small blocks makes end-point
errors surface more readily.
Tim Peters [Fri, 1 Oct 2004 02:13:16 +0000 (02:13 +0000)]
Noted the fix to deque gc.
Tim Peters [Fri, 1 Oct 2004 02:01:04 +0000 (02:01 +0000)]
deque_traverse(): If the deque had one block, and its rightindex was
BLOCKLEN-1, this assert-failed in a debug build, or went wild with a
NULL pointer in a release build. Reported on c.l.py by Stefan Behnel.
Tim Peters [Fri, 1 Oct 2004 01:35:54 +0000 (01:35 +0000)]
Typos in new comments.
Tim Peters [Fri, 1 Oct 2004 01:32:53 +0000 (01:32 +0000)]
Document some reverse-engineered invariants and pragmatic hints.
Greg Ward [Fri, 1 Oct 2004 01:16:39 +0000 (01:16 +0000)]
Get references working (except for references to "Extending optparse",
which isn't being converted from reST yet).
Tim Peters [Fri, 1 Oct 2004 01:04:50 +0000 (01:04 +0000)]
Definition consistency.
Tim Peters [Fri, 1 Oct 2004 01:03:29 +0000 (01:03 +0000)]
Trimmed trailing whitespace.
Raymond Hettinger [Thu, 30 Sep 2004 22:29:03 +0000 (22:29 +0000)]
Add tests for syntax errors.
Edward Loper [Thu, 30 Sep 2004 17:18:18 +0000 (17:18 +0000)]
Added 2 notes about the complexities of testing SyntaxErrors.
Raymond Hettinger [Thu, 30 Sep 2004 15:07:29 +0000 (15:07 +0000)]
Expand scope to include general mapping protocol tests.
Many of these tests are redundant, but this will ensure
that the mapping protocols all stay in sync.
Also, added a test for dictionary subclasses.
Walter Dörwald [Thu, 30 Sep 2004 13:46:00 +0000 (13:46 +0000)]
Add missing test_dict.py from patch #736962.
Raymond Hettinger [Thu, 30 Sep 2004 07:47:20 +0000 (07:47 +0000)]
Improve test coverage.
Raymond Hettinger [Thu, 30 Sep 2004 00:59:08 +0000 (00:59 +0000)]
SF bug #
1035279: hex() and oct() documentation is incorrect
* Updated docs to reflected signed return values.
* Fixed a doubled word typo.
Raymond Hettinger [Wed, 29 Sep 2004 23:54:08 +0000 (23:54 +0000)]
Improve error message for augmented assignments to genexps or listcomps.
Rather than introduce new logic, took the approach of making the message
itself more general.
Raymond Hettinger [Wed, 29 Sep 2004 21:47:10 +0000 (21:47 +0000)]
Fix two erroneous error messages.
Nicholas Bastin [Wed, 29 Sep 2004 21:39:26 +0000 (21:39 +0000)]
Fix typo in PyDict_Items doc
Raymond Hettinger [Wed, 29 Sep 2004 11:40:50 +0000 (11:40 +0000)]
Improve test coverage.
Raymond Hettinger [Wed, 29 Sep 2004 08:03:17 +0000 (08:03 +0000)]
Improve test coverage.
Skip Montanaro [Tue, 28 Sep 2004 18:40:42 +0000 (18:40 +0000)]
minor doc tweaks for writexml
Skip Montanaro [Tue, 28 Sep 2004 18:30:03 +0000 (18:30 +0000)]
typo
Raymond Hettinger [Tue, 28 Sep 2004 17:22:12 +0000 (17:22 +0000)]
Replaced a test with an assertion.
(Suggested by Michael Hudson.)
Tim Peters [Tue, 28 Sep 2004 16:12:50 +0000 (16:12 +0000)]
A number of list examples used 66.6, but I doubt there's any box on which
repr(66.6) == "66.6", so doubt that the claimed output has ever been seen.
Changed it to 66.25 everywhere, and manually verified that the new claimed
output is correct.
Edward Loper [Tue, 28 Sep 2004 05:50:57 +0000 (05:50 +0000)]
Reverted the addition of a NORMALIZE_NUMBERS option, per Tim Peter's
request. Tim says that "correct 'fuzzy' comparison of floats cannot
be automated." (The motivation behind adding the new option
was verifying interactive examples in Python's latex documentation;
several such examples use numbers that don't print consistently on
different platforms.)
Raymond Hettinger [Tue, 28 Sep 2004 04:45:28 +0000 (04:45 +0000)]
* Increase test coverage.
* Have groupby() be careful about decreffing structure members.
Edward Loper [Tue, 28 Sep 2004 04:29:57 +0000 (04:29 +0000)]
Added a new NORMALIZE_NUMBERS option, which causes number literals in
the expected output to match corresponding number literals in the
actual output if their values are equal (to ten digits of precision).
Brett Cannon [Tue, 28 Sep 2004 04:08:11 +0000 (04:08 +0000)]
Add note about inclusion of DarwinPorts directories in setup.py on darwin.
Brett Cannon [Tue, 28 Sep 2004 03:49:52 +0000 (03:49 +0000)]
Add the directories where DarwinPorts installs library and include files to
the proper path directories for compiling extension modules.
Edward Loper [Tue, 28 Sep 2004 03:12:01 +0000 (03:12 +0000)]
Fixed minor typo in interactive example (extra '.'s in '...' prompts)
Edward Loper [Tue, 28 Sep 2004 03:08:57 +0000 (03:08 +0000)]
Fixed minor typo in interactive example (extra blank line)
Raymond Hettinger [Tue, 28 Sep 2004 03:04:23 +0000 (03:04 +0000)]
SF bug #
1033038: Misleading error message in random.choice
Added a clarifying line to the docs.
Edward Loper [Tue, 28 Sep 2004 02:56:45 +0000 (02:56 +0000)]
Fixed minor typo in interactive example
Edward Loper [Tue, 28 Sep 2004 02:54:54 +0000 (02:54 +0000)]
Fixed minor typo in interactive example (backslash shouldn't be doubled)
Edward Loper [Tue, 28 Sep 2004 02:53:50 +0000 (02:53 +0000)]
Updated interactive examples in the "Examples" session to reflect the
fact that compiler.ast.Function now takes a "decorators" argument.
Raymond Hettinger [Tue, 28 Sep 2004 02:19:40 +0000 (02:19 +0000)]
Silence a compiler warning by supplying the correct argument type to
the htons() function.
Raymond Hettinger [Tue, 28 Sep 2004 01:51:35 +0000 (01:51 +0000)]
Use Py_CLEAR(). Add unrelated test.
Greg Ward [Tue, 28 Sep 2004 01:30:23 +0000 (01:30 +0000)]
Major overhaul to reflect Optik 1.5. Section references currently broken.
Raymond Hettinger [Tue, 28 Sep 2004 00:03:54 +0000 (00:03 +0000)]
Plug a leak and beef-up test coverage.
Raymond Hettinger [Mon, 27 Sep 2004 23:11:35 +0000 (23:11 +0000)]
Rename test for comparision errors.
Raymond Hettinger [Mon, 27 Sep 2004 22:48:40 +0000 (22:48 +0000)]
Beef-up tests for greater coverage and refcount checking.
Armin Rigo [Mon, 27 Sep 2004 19:54:33 +0000 (19:54 +0000)]
Patch #
1009075, bug #952953: allow execve with empty 2nd argument