]>
granicus.if.org Git - python/log
Raymond Hettinger [Sun, 30 May 2004 07:26:47 +0000 (07:26 +0000)]
Make sets and deques weak referencable.
Walter Dörwald [Fri, 28 May 2004 20:59:21 +0000 (20:59 +0000)]
Update docstring for dict.update() to match the new realities.
Fred Drake [Fri, 28 May 2004 20:21:36 +0000 (20:21 +0000)]
starting to add comments to explain what's here
Walter Dörwald [Thu, 27 May 2004 18:16:25 +0000 (18:16 +0000)]
The default argument in dict.setdefault() defaults to None.
Add this default to weakref.WeakValueDictionary.setdefault()
and weakref.WeakKeyDictionary.setdefault() too.
Walter Dörwald [Thu, 27 May 2004 09:41:04 +0000 (09:41 +0000)]
The default argument in dict.setdefault() defaults to None.
Add this default to UserDict.DictMixin.setdefault() too.
Michael W. Hudson [Wed, 26 May 2004 17:36:12 +0000 (17:36 +0000)]
Remove float_compare as per
[ 899109 ] 1==float('nan')
which can now finally be closed, I think.
Michael W. Hudson [Wed, 26 May 2004 17:06:31 +0000 (17:06 +0000)]
Band-aid type fix for
[ 728330 ] Don't define _SGAPI on IRIX
The Right Thing would be nice, for now this'll do. At least it isn't
going to break anything *other* than IRIX...
Raymond Hettinger [Wed, 26 May 2004 13:57:54 +0000 (13:57 +0000)]
Fill-in the introductory paragraph for the library tour.
Raymond Hettinger [Wed, 26 May 2004 13:52:59 +0000 (13:52 +0000)]
Add a further tour of the standard library.
Raymond Hettinger [Tue, 25 May 2004 16:08:28 +0000 (16:08 +0000)]
Follow official recommendation for domain names in examples.
Skip Montanaro [Mon, 24 May 2004 14:20:16 +0000 (14:20 +0000)]
stupid, stupid, stupid... raw_input() already supports readline() if the
readline module is loaded.
Skip Montanaro [Sun, 23 May 2004 19:06:41 +0000 (19:06 +0000)]
Add example that uses readline.readline().
Skip Montanaro [Sun, 23 May 2004 17:46:50 +0000 (17:46 +0000)]
Exposed readline() function from the readline module.
Raymond Hettinger [Sat, 22 May 2004 19:37:21 +0000 (19:37 +0000)]
Make sure sets are printed in sorted order
Raymond Hettinger [Sat, 22 May 2004 16:38:11 +0000 (16:38 +0000)]
Updated to reflect new types.
Raymond Hettinger [Fri, 21 May 2004 23:01:18 +0000 (23:01 +0000)]
* teach repr.repr() about collections.deque()
* rename a variable for clarity
Raymond Hettinger [Fri, 21 May 2004 10:00:15 +0000 (10:00 +0000)]
* Updated repr.py to handle set() and frozenset().
* Factored out common code to a single private function.
* Use str.join() instead of + concatenation
* Loop over elements directly instead of using indexing
* Use % operator for formatting
Raymond Hettinger [Thu, 20 May 2004 23:04:13 +0000 (23:04 +0000)]
Add a test to verify an early call to iter() on the outermost for
expression.
Raymond Hettinger [Thu, 20 May 2004 22:59:26 +0000 (22:59 +0000)]
Clarify when iter() is first called in generator expressions.
Piers Lauder [Thu, 20 May 2004 12:12:58 +0000 (12:12 +0000)]
Added description for authenticate and namespace
Piers Lauder [Thu, 20 May 2004 11:32:35 +0000 (11:32 +0000)]
Fixed IMAP4_SSL read bug introduced by patch 956394
Piers Lauder [Thu, 20 May 2004 01:16:14 +0000 (01:16 +0000)]
Fixed IMAP4_SSL read and readlines code per patch 956394
Raymond Hettinger [Wed, 19 May 2004 22:30:25 +0000 (22:30 +0000)]
Improved wording for generator expressions.
Raymond Hettinger [Wed, 19 May 2004 19:56:44 +0000 (19:56 +0000)]
SF bug #949329: sets.Set() --> set()
Raymond Hettinger [Wed, 19 May 2004 19:45:19 +0000 (19:45 +0000)]
Add more docs for generator expressions.
* Put in a brief, example driven tutorial entry.
* Use better examples in whatsnew24.tex.
Armin Rigo [Wed, 19 May 2004 19:10:18 +0000 (19:10 +0000)]
Applying SF patch #949329 on behalf of Raymond Hettinger.
Andrew M. Kuchling [Wed, 19 May 2004 14:39:08 +0000 (14:39 +0000)]
Set data pointer to NULL after an error; this keeps the mmap_dealloc() function from trying to do msync(-1);munmap(-1).
2.3 bugfix candidate, but this bug isn't critical enough that the fix has to go into 2.3.4
Raymond Hettinger [Wed, 19 May 2004 08:20:33 +0000 (08:20 +0000)]
SF patch #872326: Generator expression implementation
(Code contributed by Jiwon Seo.)
The documentation portion of the patch is being re-worked and will be
checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's
rationale for the design decisions on binding behavior (as described in
in his patch comments and in discussions on python-dev).
The test file, test_genexps.py, is written in doctest format and is
meant to exercise all aspects of the the patch. Further additions are
welcome from everyone. Please stress test this new feature as much as
possible before the alpha release.
Raymond Hettinger [Tue, 18 May 2004 18:15:03 +0000 (18:15 +0000)]
Make type check work with subclasses
Fred Drake [Tue, 18 May 2004 04:30:00 +0000 (04:30 +0000)]
add some notes about the changes to ConfigParser
Fred Drake [Tue, 18 May 2004 04:24:02 +0000 (04:24 +0000)]
ConfigParser:
- read() method returns a list of files parsed successfully
- add tests, documentation
(closes SF patch #677651)
Fred Drake [Tue, 18 May 2004 03:56:51 +0000 (03:56 +0000)]
ConfigParser:
- DuplicateSectionError is only raised by add_section()
(closes SF bug #830449)
Fred Drake [Tue, 18 May 2004 03:29:52 +0000 (03:29 +0000)]
ConfigParser:
- don't allow setting options to non-string values; raise TypeError
when the value is set, instead of raising an arbitrary exception
later (such as when string interpolation is performed)
- add tests, documentation
(closes SF bug #810843)
Fred Drake [Tue, 18 May 2004 02:25:51 +0000 (02:25 +0000)]
ConfigParser:
- ensure that option names in interpolations are handled by
self.optionxform in the same way that other references to option
names
- add tests, documentation
(closes SF bug #857881, patch #865455)
Skip Montanaro [Mon, 17 May 2004 13:17:38 +0000 (13:17 +0000)]
date typo in %changelog
Tim Peters [Sun, 16 May 2004 05:36:30 +0000 (05:36 +0000)]
test_alias_nofallback(): Someone broke this test, after 2.3, by
converting it into assertRaises() form. Restored the 2.3 code, and
explained why assertRaises() cannot be used instead.
Barry Warsaw [Sat, 15 May 2004 16:26:28 +0000 (16:26 +0000)]
_parsegen(): Add a missing check for NeedMoreData.
Raymond Hettinger [Sat, 15 May 2004 07:39:00 +0000 (07:39 +0000)]
Update the DLL example to work with Py2.4.
Skip Montanaro [Fri, 14 May 2004 16:31:56 +0000 (16:31 +0000)]
typo - fixes 954030.
Barry Warsaw [Thu, 13 May 2004 23:18:54 +0000 (23:18 +0000)]
forward porting from release23-maint
Barry Warsaw [Thu, 13 May 2004 23:17:04 +0000 (23:17 +0000)]
test_boundary_in_non_multipart(): Added a test for SF bug # 846938.
Barry Warsaw [Thu, 13 May 2004 22:50:12 +0000 (22:50 +0000)]
encode_7or8bit(): Clearing out some old patches; iso-2202 is non-ASCII but
still 7-bit.
Barry Warsaw [Thu, 13 May 2004 20:17:51 +0000 (20:17 +0000)]
readline(): RFC 2046, section 5.1.2 (and partially 5.1) both state that the
parser must recognize outer boundaries in inner parts. So cruise through the
EOF stack backwards testing each predicate against the current line.
There's still some discussion about whether this is (always) the best thing to
do. Anthony would rather parse these messages as if the outer boundaries were
ignored. I think that's counter to the RFC, but might be practically more
useful. Can you say behavior flag? (ug).
Barry Warsaw [Thu, 13 May 2004 20:15:20 +0000 (20:15 +0000)]
test_nested_inner_contains_outer_boundary(), test_nested_with_same_boundary():
Two evil samples from Anthony's MIME torture tests.
Barry Warsaw [Thu, 13 May 2004 20:14:20 +0000 (20:14 +0000)]
_structure(): Make sure all output goes the to fp object.
Barry Warsaw [Thu, 13 May 2004 20:13:48 +0000 (20:13 +0000)]
Another evil test from Anthony's suite. This one has an inner part with the
same boundary as the outer part.
Barry Warsaw [Thu, 13 May 2004 20:12:32 +0000 (20:12 +0000)]
A boiled down example from Anthony's MIME torture tests. This one has a
separating boundary for an outer part inside an inner part.
Anthony Baxter [Thu, 13 May 2004 11:54:19 +0000 (11:54 +0000)]
forward-port 1.17.12.1
Greg Ward [Thu, 13 May 2004 01:53:10 +0000 (01:53 +0000)]
SF #847346: merge from release23-maint branch: remove misguided
optimization for short input; beef up tests for fix_sentence_endings
feature.
Raymond Hettinger [Wed, 12 May 2004 21:35:06 +0000 (21:35 +0000)]
SF bug #952866: "can't multiply sequence *by* non-int"
Minor wording fix.
Raymond Hettinger [Wed, 12 May 2004 20:55:56 +0000 (20:55 +0000)]
Make sure "del d[n]" is properly supported. Was necessary because the
same method that implements __setitem__ also implements __delitem__.
Also, there were several good use cases (removing items from a queue
and implementing Forth style stack ops).
Thomas Heller [Wed, 12 May 2004 20:12:10 +0000 (20:12 +0000)]
Windows build number for 2.3.4c1 is 52.
Fred Drake [Wed, 12 May 2004 03:51:40 +0000 (03:51 +0000)]
fix various descriptions of "ctime"
(closes SF patch #870287)
Fred Drake [Wed, 12 May 2004 03:20:37 +0000 (03:20 +0000)]
minor wording cleanup
Fred Drake [Wed, 12 May 2004 03:15:07 +0000 (03:15 +0000)]
fix error message; closes SF patch #932796
Fred Drake [Wed, 12 May 2004 03:07:27 +0000 (03:07 +0000)]
fix various typos; thanks, George Yoshida!
(closes SF patch #952047)
Fred Drake [Wed, 12 May 2004 02:48:29 +0000 (02:48 +0000)]
add note about the __name__ read-only attribute
(closes SF bug #952212)
Barry Warsaw [Tue, 11 May 2004 22:23:59 +0000 (22:23 +0000)]
Tests for message/external-body and for duplicate boundary lines.
Barry Warsaw [Tue, 11 May 2004 22:21:56 +0000 (22:21 +0000)]
More boiled down tests from Anthony's big torture suite.
Barry Warsaw [Tue, 11 May 2004 22:20:59 +0000 (22:20 +0000)]
A boiled down message/external-body example from Anthony's torture test.
Barry Warsaw [Tue, 11 May 2004 22:20:05 +0000 (22:20 +0000)]
An example with multiple boundary lines.
Barry Warsaw [Tue, 11 May 2004 20:19:09 +0000 (20:19 +0000)]
_parsegen(): Move the message/rfc822 clause to after the
message/delivery-status clause, and genericize it to handle all (other)
message/* content types. This lets us correctly parse 2 more of Anthony's
MIME torture tests (specifically, the message/external-body examples).
Tim Peters [Tue, 11 May 2004 18:18:35 +0000 (18:18 +0000)]
Reverting local change checked in by mistake.
Tim Peters [Tue, 11 May 2004 18:14:05 +0000 (18:14 +0000)]
Changed company name to PSF. Added 2004 to copyright years.
Tim Peters [Tue, 11 May 2004 18:13:10 +0000 (18:13 +0000)]
Added 2.3.3 and 2.3.4 to the release table. Added 2004 to the list of
copyright years.
Barry Warsaw [Tue, 11 May 2004 18:10:15 +0000 (18:10 +0000)]
_parsegen(): Watch out for empty epilogues.
Thomas Heller [Tue, 11 May 2004 15:10:59 +0000 (15:10 +0000)]
Fix SF item #876278: Unbounded recursion in modulefinder.
Already backported to release23-maint.
Fred Drake [Tue, 11 May 2004 14:37:55 +0000 (14:37 +0000)]
use tools/getversioninfo to extract the version number from the Python
sources
Fred Drake [Tue, 11 May 2004 14:25:56 +0000 (14:25 +0000)]
remove assignment to unused variable
Fred Drake [Tue, 11 May 2004 14:14:24 +0000 (14:14 +0000)]
update to reflect the current location of the SF bugs search box
Fred Drake [Tue, 11 May 2004 05:29:34 +0000 (05:29 +0000)]
markup adjustment
Barry Warsaw [Tue, 11 May 2004 02:05:11 +0000 (02:05 +0000)]
In order to fix SF bug # 824977, we replace calloc()/free() calls in
binascii_a2b_qp() and binascii_b2a_qp() with calls to PyMem_Malloc() and
PyMem_Free(). These won't return NULL unless the allocations actually fail,
so it won't trigger a bogus memory error on some platforms <cough>AIX</cough>
when passed a length of zero.
Greg Ward [Tue, 11 May 2004 01:34:55 +0000 (01:34 +0000)]
SF #832236: merge from release23-maint branch: wrap a bunch of
_EXPORT_INT calls in #ifdef's, to avoid breaking the build on MkLinux
(Linux 2.0).
Barry Warsaw [Mon, 10 May 2004 23:12:52 +0000 (23:12 +0000)]
Added a note describing how fp should be opened in binary mode, especially on
Windows. Closes SF # 586899.
Skip Montanaro [Mon, 10 May 2004 18:53:00 +0000 (18:53 +0000)]
Point out that %p has no effect on the output hour in strptime unless %I is
used to parse the hour.
Fred Drake [Mon, 10 May 2004 18:39:32 +0000 (18:39 +0000)]
don't make assumptions about $PATH in Cygwin instructions
Barry Warsaw [Mon, 10 May 2004 14:48:30 +0000 (14:48 +0000)]
_parse_headers(): Strip a trailing newline from the envelope header. Closes
SF #951088.
Barry Warsaw [Mon, 10 May 2004 14:44:04 +0000 (14:44 +0000)]
_split_ascii(): Small optimization by RH.
Raymond Hettinger [Mon, 10 May 2004 14:08:42 +0000 (14:08 +0000)]
Temporarily disable doctest until genexps are in CVS
Mark Hammond [Mon, 10 May 2004 07:35:33 +0000 (07:35 +0000)]
Fix [ 738973 ] urllib2 CacheFTPHandler doesn't work on multiple dirs, as
implemented in patch [ 851736 ].
Barry Warsaw [Sun, 9 May 2004 18:04:24 +0000 (18:04 +0000)]
SF patch # 884030 by Amit Aronovitch; fixes the _subpart argument to match
documented semantics.
Barry Warsaw [Sun, 9 May 2004 18:03:36 +0000 (18:03 +0000)]
test_mime_attachments_in_constructor(): New test to check for SF bug # 884030.
Barry Warsaw [Sun, 9 May 2004 17:11:59 +0000 (17:11 +0000)]
Add this year to the copyright notices.
Barry Warsaw [Sun, 9 May 2004 03:57:09 +0000 (03:57 +0000)]
we dont support any Python's before 2.3 now.
Barry Warsaw [Sun, 9 May 2004 03:55:11 +0000 (03:55 +0000)]
Update to Python 2.3, getting rid of backward compatiblity crud.
Barry Warsaw [Sun, 9 May 2004 03:46:42 +0000 (03:46 +0000)]
Update to Python 2.3, getting rid of backward compatiblity crud.
This Parser is now just a backward compatible front-end to the FeedParser.
Barry Warsaw [Sun, 9 May 2004 03:44:55 +0000 (03:44 +0000)]
Update to Python 2.3, getting rid of backward compatiblity crud.
Barry Warsaw [Sun, 9 May 2004 03:42:37 +0000 (03:42 +0000)]
Update to Python 2.3, getting rid of backward compatiblity crud. We don't
need the _compat21 or _compat22 modules either.
Barry Warsaw [Sun, 9 May 2004 03:40:17 +0000 (03:40 +0000)]
Update to Python 2.3, getting rid of backward compatiblity crud. Get rid of a
bunch of module globals that aren't used.
Barry Warsaw [Sun, 9 May 2004 03:35:17 +0000 (03:35 +0000)]
Update to Python 2.3, getting rid of backward compatiblity crud. Get rid of a
bunch of module globals that aren't used.
__maxheaderlen -> _maxheaderlen
_handle_multipart(): This should be more RFC compliant now, and does match the
updated/fixed semantics for preamble and epilogue.
Barry Warsaw [Sun, 9 May 2004 03:29:23 +0000 (03:29 +0000)]
An updated FeedParser that should be RFC complaint, passes all existing
(standard) tests, and doesn't throw parse errors. I still need throw
Anthony's torture test at it, but I wanted to get this checked in and off my
disk.
Barry Warsaw [Sun, 9 May 2004 03:26:07 +0000 (03:26 +0000)]
Add MessageDefect and subclasses.
Barry Warsaw [Sun, 9 May 2004 03:24:43 +0000 (03:24 +0000)]
Update to Python 2.3, getting rid of backward compatiblity crud.
Barry Warsaw [Sun, 9 May 2004 03:17:29 +0000 (03:17 +0000)]
Like msg_12.txt but with some extra vertical whitespace around the inner
message's end boundary.
Barry Warsaw [Sun, 9 May 2004 03:16:03 +0000 (03:16 +0000)]
A bunch of new tests, and updated tests for the email 3.0 FeedParser.
Raymond Hettinger [Sun, 9 May 2004 01:15:01 +0000 (01:15 +0000)]
Add more examples.
Raymond Hettinger [Sat, 8 May 2004 19:49:42 +0000 (19:49 +0000)]
SF #950057: itertools.chain doesn't "process" exceptions as they occur
Both cycle() and chain() were handling exceptions only when switching
input sources. The patch makes the handle more immediate.
Will backport.
Gustavo Niemeyer [Sat, 8 May 2004 17:59:43 +0000 (17:59 +0000)]
Small fixes in freeze.py.
Martin v. Löwis [Fri, 7 May 2004 19:14:14 +0000 (19:14 +0000)]
Record UnixWare 7.1.4 as broken. Fixes #929689.
Backported to 2.3.
Martin v. Löwis [Fri, 7 May 2004 07:18:13 +0000 (07:18 +0000)]
Fix _sre.CODESIZE on 64-bit machines in UCS-4 mode. Fixes #931848.
Backported to 2.3.