]> granicus.if.org Git - python/log
python
21 years agoRename class attribute containing the class to be tested, so the name is the
Walter Dörwald [Wed, 2 Jun 2004 18:42:25 +0000 (18:42 +0000)]
Rename class attribute containing the class to be tested, so the name is the
same as for the string and sequence tests.

21 years agoRemove reference to pcre module
Andrew M. Kuchling [Wed, 2 Jun 2004 17:53:57 +0000 (17:53 +0000)]
Remove reference to pcre module

21 years agoRemove pcre module
Andrew M. Kuchling [Wed, 2 Jun 2004 17:44:36 +0000 (17:44 +0000)]
Remove pcre module

21 years agoDon't build the pcre module any more
Andrew M. Kuchling [Wed, 2 Jun 2004 17:42:56 +0000 (17:42 +0000)]
Don't build the pcre module any more

21 years agoRemove reference to pcre module
Andrew M. Kuchling [Wed, 2 Jun 2004 17:40:43 +0000 (17:40 +0000)]
Remove reference to pcre module

21 years agoRemove pre module
Andrew M. Kuchling [Wed, 2 Jun 2004 17:40:14 +0000 (17:40 +0000)]
Remove pre module

21 years agoFix grammar hopefully. :)
Hye-Shik Chang [Wed, 2 Jun 2004 16:52:49 +0000 (16:52 +0000)]
Fix grammar hopefully. :)

21 years ago- SF #962502: Add two more methods for unicode type; width() and
Hye-Shik Chang [Wed, 2 Jun 2004 16:49:17 +0000 (16:49 +0000)]
- SF #962502: Add two more methods for unicode type; width() and
iswide() for east asian width manipulation. (Inspired by David
Goodger, Reviewed by Martin v. Loewis)
- Move _PyUnicode_TypeRecord.flags to the end of the struct so that
no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)

21 years agoAdd a name (old change sitting in my tree)
Andrew M. Kuchling [Wed, 2 Jun 2004 15:37:04 +0000 (15:37 +0000)]
Add a name (old change sitting in my tree)

21 years agoRemove old reminder
Andrew M. Kuchling [Wed, 2 Jun 2004 15:33:59 +0000 (15:33 +0000)]
Remove old reminder

21 years agoCGMainDisplayID() doesn't exist on 10.1, so don't try to call it when
Jack Jansen [Wed, 2 Jun 2004 13:44:05 +0000 (13:44 +0000)]
CGMainDisplayID() doesn't exist on 10.1, so don't try to call it when
building for that platform.

21 years agoRecord Python 2.3.4 (final) build number.
Thomas Heller [Wed, 2 Jun 2004 13:21:41 +0000 (13:21 +0000)]
Record Python 2.3.4 (final) build number.

21 years agoThe expression list in inheritance is not optional. Fixes #960448.
Martin v. Löwis [Wed, 2 Jun 2004 12:59:59 +0000 (12:59 +0000)]
The expression list in inheritance is not optional. Fixes #960448.
Will backport to 2.3.

21 years agoMove grammar rule for lambda_form into section on lambdas. Fixes #964525.
Martin v. Löwis [Wed, 2 Jun 2004 12:54:33 +0000 (12:54 +0000)]
Move grammar rule for lambda_form into section on lambdas. Fixes #964525.

21 years agoFix typo reported in #964592. Will backport to 2.3.
Martin v. Löwis [Wed, 2 Jun 2004 12:48:20 +0000 (12:48 +0000)]
Fix typo reported in #964592. Will backport to 2.3.

21 years agoDocument PyModule_AddIntConstant to take a long. Fixes #962471.
Martin v. Löwis [Wed, 2 Jun 2004 12:45:27 +0000 (12:45 +0000)]
Document PyModule_AddIntConstant to take a long. Fixes #962471.
Will backport to 2.3.

21 years agoPatch #924294: Do not check for AF_INET6 if it is not defined.
Martin v. Löwis [Wed, 2 Jun 2004 12:35:29 +0000 (12:35 +0000)]
Patch #924294: Do not check for AF_INET6 if it is not defined.
Will backport to 2.3.

21 years agoCopyright year changed
Vinay Sajip [Wed, 2 Jun 2004 10:51:05 +0000 (10:51 +0000)]
Copyright year changed

21 years agoPatch #954115: Fix os.stat handling of UNC roots.
Martin v. Löwis [Wed, 2 Jun 2004 09:57:56 +0000 (09:57 +0000)]
Patch #954115: Fix os.stat handling of UNC roots.
Will backport to 2.3.

21 years agoAdded IMAP4_stream to __all__
Piers Lauder [Wed, 2 Jun 2004 00:42:36 +0000 (00:42 +0000)]
Added IMAP4_stream to __all__

21 years agotest_hash(): The test here is different enough from the one in the bug
Tim Peters [Tue, 1 Jun 2004 18:58:04 +0000 (18:58 +0000)]
test_hash():  The test here is different enough from the one in the bug
report that the stats for expected # of collisions are a little higher.
Updated comments accordingly.

21 years agoAdd genobject.c
Martin v. Löwis [Tue, 1 Jun 2004 17:21:13 +0000 (17:21 +0000)]
Add genobject.c

21 years agoAdd genobject.c to the MSVC++ 6.0 build.
Raymond Hettinger [Tue, 1 Jun 2004 16:29:57 +0000 (16:29 +0000)]
Add genobject.c to the MSVC++ 6.0 build.

21 years agoPatch #957398: Add public API for Generator Object/Type.
Martin v. Löwis [Tue, 1 Jun 2004 15:22:42 +0000 (15:22 +0000)]
Patch #957398: Add public API for Generator Object/Type.

21 years ago[Bug #962631] Fix typo reported by Bryan Blackburn
Andrew M. Kuchling [Tue, 1 Jun 2004 12:48:19 +0000 (12:48 +0000)]
[Bug #962631] Fix typo reported by Bryan Blackburn

21 years agoSF bug #942952: Weakness in tuple hash
Raymond Hettinger [Tue, 1 Jun 2004 06:36:24 +0000 (06:36 +0000)]
SF bug #942952:  Weakness in tuple hash
(Basic approach and test concept by Tim Peters.)

* Improved the hash to reduce collisions.
* Added the torture test to the test suite.

21 years agoSilence noise in regrtest.
Martin v. Löwis [Tue, 1 Jun 2004 04:36:51 +0000 (04:36 +0000)]
Silence noise in regrtest.

21 years agoFixup spacing in an example.
Raymond Hettinger [Mon, 31 May 2004 22:53:25 +0000 (22:53 +0000)]
Fixup spacing in an example.

21 years agoCopy from python-2.3.spec. Incorporate patch #961465:
Martin v. Löwis [Mon, 31 May 2004 19:40:57 +0000 (19:40 +0000)]
Copy from python-2.3.spec. Incorporate patch #961465:
Including changes from Ian Holsman to build under Red Hat 7.3.
Fixing some problems with the /usr/local path change.

21 years agoSF patch 959726: sdist versus SVN
Tim Peters [Mon, 31 May 2004 19:27:59 +0000 (19:27 +0000)]
SF patch 959726:  sdist versus SVN
The disutils sdist command now ignores .svn directories.

21 years agoPatch #932930: suggest the use of rawstrings for backslashes.
Martin v. Löwis [Mon, 31 May 2004 19:01:00 +0000 (19:01 +0000)]
Patch #932930: suggest the use of rawstrings for backslashes.

21 years agoPatch #963318: Add support for client-side cookie management.
Martin v. Löwis [Mon, 31 May 2004 18:22:40 +0000 (18:22 +0000)]
Patch #963318: Add support for client-side cookie management.

21 years agoPort the dictionary tests from test_types.py to unittest. Collect as much
Walter Dörwald [Mon, 31 May 2004 16:29:04 +0000 (16:29 +0000)]
Port the dictionary tests from test_types.py to unittest. Collect as much
mapping tests as possible in mapping_test.py and reuse the tests in
test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py.
From SF patch #736962.

21 years agoFix typo (from SF bug #962602)
Walter Dörwald [Mon, 31 May 2004 15:12:27 +0000 (15:12 +0000)]
Fix typo (from SF bug #962602)

21 years agoAdd weakref support to sockets and re pattern objects.
Raymond Hettinger [Mon, 31 May 2004 03:15:02 +0000 (03:15 +0000)]
Add weakref support to sockets and re pattern objects.

21 years agoAdd weakref support to sockets and re pattern objects.
Raymond Hettinger [Mon, 31 May 2004 03:09:25 +0000 (03:09 +0000)]
Add weakref support to sockets and re pattern objects.

21 years agoAdd weakref support to array.array and file objects.
Raymond Hettinger [Mon, 31 May 2004 00:35:52 +0000 (00:35 +0000)]
Add weakref support to array.array and file objects.

21 years agoMake sets and deques weak referencable.
Raymond Hettinger [Sun, 30 May 2004 07:26:47 +0000 (07:26 +0000)]
Make sets and deques weak referencable.

21 years agoUpdate docstring for dict.update() to match the new realities.
Walter Dörwald [Fri, 28 May 2004 20:59:21 +0000 (20:59 +0000)]
Update docstring for dict.update() to match the new realities.

21 years agostarting to add comments to explain what's here
Fred Drake [Fri, 28 May 2004 20:21:36 +0000 (20:21 +0000)]
starting to add comments to explain what's here

21 years agoThe default argument in dict.setdefault() defaults to None.
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.

21 years agoThe default argument in dict.setdefault() defaults to None.
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.

21 years agoRemove float_compare as per
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.

21 years agoBand-aid type fix for
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...

21 years agoFill-in the introductory paragraph for the library tour.
Raymond Hettinger [Wed, 26 May 2004 13:57:54 +0000 (13:57 +0000)]
Fill-in the introductory paragraph for the library tour.

21 years agoAdd a further tour of the standard library.
Raymond Hettinger [Wed, 26 May 2004 13:52:59 +0000 (13:52 +0000)]
Add a further tour of the standard library.

21 years agoFollow official recommendation for domain names in examples.
Raymond Hettinger [Tue, 25 May 2004 16:08:28 +0000 (16:08 +0000)]
Follow official recommendation for domain names in examples.

21 years agostupid, stupid, stupid... raw_input() already supports readline() if the
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.

21 years agoAdd example that uses readline.readline().
Skip Montanaro [Sun, 23 May 2004 19:06:41 +0000 (19:06 +0000)]
Add example that uses readline.readline().

21 years agoExposed readline() function from the readline module.
Skip Montanaro [Sun, 23 May 2004 17:46:50 +0000 (17:46 +0000)]
Exposed readline() function from the readline module.

21 years agoMake sure sets are printed in sorted order
Raymond Hettinger [Sat, 22 May 2004 19:37:21 +0000 (19:37 +0000)]
Make sure sets are printed in sorted order

21 years agoUpdated to reflect new types.
Raymond Hettinger [Sat, 22 May 2004 16:38:11 +0000 (16:38 +0000)]
Updated to reflect new types.

21 years ago* teach repr.repr() about collections.deque()
Raymond Hettinger [Fri, 21 May 2004 23:01:18 +0000 (23:01 +0000)]
* teach repr.repr() about collections.deque()
* rename a variable for clarity

21 years ago* Updated repr.py to handle set() and frozenset().
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

21 years agoAdd a test to verify an early call to iter() on the outermost for
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.

21 years agoClarify when iter() is first called in generator expressions.
Raymond Hettinger [Thu, 20 May 2004 22:59:26 +0000 (22:59 +0000)]
Clarify when iter() is first called in generator expressions.

21 years agoAdded description for authenticate and namespace
Piers Lauder [Thu, 20 May 2004 12:12:58 +0000 (12:12 +0000)]
Added description for authenticate and namespace

21 years agoFixed IMAP4_SSL read bug introduced by patch 956394
Piers Lauder [Thu, 20 May 2004 11:32:35 +0000 (11:32 +0000)]
Fixed IMAP4_SSL read bug introduced by patch 956394

21 years agoFixed IMAP4_SSL read and readlines code per 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

21 years agoImproved wording for generator expressions.
Raymond Hettinger [Wed, 19 May 2004 22:30:25 +0000 (22:30 +0000)]
Improved wording for generator expressions.

21 years agoSF bug #949329: sets.Set() --> set()
Raymond Hettinger [Wed, 19 May 2004 19:56:44 +0000 (19:56 +0000)]
SF bug #949329:  sets.Set() --> set()

21 years agoAdd more docs for generator expressions.
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.

21 years agoApplying SF patch #949329 on behalf of Raymond Hettinger.
Armin Rigo [Wed, 19 May 2004 19:10:18 +0000 (19:10 +0000)]
Applying SF patch #949329 on behalf of Raymond Hettinger.

21 years agoSet data pointer to NULL after an error; this keeps the mmap_dealloc() function from...
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

21 years agoSF patch #872326: Generator expression implementation
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.

21 years agoMake type check work with subclasses
Raymond Hettinger [Tue, 18 May 2004 18:15:03 +0000 (18:15 +0000)]
Make type check work with subclasses

21 years agoadd some notes about the changes to ConfigParser
Fred Drake [Tue, 18 May 2004 04:30:00 +0000 (04:30 +0000)]
add some notes about the changes to ConfigParser

21 years agoConfigParser:
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)

21 years agoConfigParser:
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)

21 years agoConfigParser:
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)

21 years agoConfigParser:
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)

21 years agodate typo in %changelog
Skip Montanaro [Mon, 17 May 2004 13:17:38 +0000 (13:17 +0000)]
date typo in %changelog

21 years agotest_alias_nofallback(): Someone broke this test, after 2.3, by
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.

21 years ago_parsegen(): Add a missing check for NeedMoreData.
Barry Warsaw [Sat, 15 May 2004 16:26:28 +0000 (16:26 +0000)]
_parsegen(): Add a missing check for NeedMoreData.

21 years agoUpdate the DLL example to work with Py2.4.
Raymond Hettinger [Sat, 15 May 2004 07:39:00 +0000 (07:39 +0000)]
Update the DLL example to work with Py2.4.

21 years agotypo - fixes 954030.
Skip Montanaro [Fri, 14 May 2004 16:31:56 +0000 (16:31 +0000)]
typo - fixes 954030.

21 years agoforward porting from release23-maint
Barry Warsaw [Thu, 13 May 2004 23:18:54 +0000 (23:18 +0000)]
forward porting from release23-maint

21 years agotest_boundary_in_non_multipart(): Added a test for SF bug # 846938.
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.

21 years agoencode_7or8bit(): Clearing out some old patches; iso-2202 is non-ASCII but
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.

21 years agoreadline(): RFC 2046, section 5.1.2 (and partially 5.1) both state that the
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).

21 years agotest_nested_inner_contains_outer_boundary(), test_nested_with_same_boundary():
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.

21 years ago_structure(): Make sure all output goes the to fp object.
Barry Warsaw [Thu, 13 May 2004 20:14:20 +0000 (20:14 +0000)]
_structure(): Make sure all output goes the to fp object.

21 years agoAnother evil test from Anthony's suite. This one has an inner part with the
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.

21 years agoA boiled down example from Anthony's MIME torture tests. This one has a
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.

21 years agoforward-port 1.17.12.1
Anthony Baxter [Thu, 13 May 2004 11:54:19 +0000 (11:54 +0000)]
forward-port 1.17.12.1

21 years agoSF #847346: merge from release23-maint branch: remove misguided
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.

21 years agoSF bug #952866: "can't multiply sequence *by* non-int"
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.

21 years agoMake sure "del d[n]" is properly supported. Was necessary because the
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).

21 years agoWindows build number for 2.3.4c1 is 52.
Thomas Heller [Wed, 12 May 2004 20:12:10 +0000 (20:12 +0000)]
Windows build number for 2.3.4c1 is 52.

21 years agofix various descriptions of "ctime"
Fred Drake [Wed, 12 May 2004 03:51:40 +0000 (03:51 +0000)]
fix various descriptions of "ctime"
(closes SF patch #870287)

21 years agominor wording cleanup
Fred Drake [Wed, 12 May 2004 03:20:37 +0000 (03:20 +0000)]
minor wording cleanup

21 years agofix error message; closes SF patch #932796
Fred Drake [Wed, 12 May 2004 03:15:07 +0000 (03:15 +0000)]
fix error message; closes SF patch #932796

21 years agofix various typos; thanks, George Yoshida!
Fred Drake [Wed, 12 May 2004 03:07:27 +0000 (03:07 +0000)]
fix various typos; thanks, George Yoshida!
(closes SF patch #952047)

21 years agoadd note about the __name__ read-only attribute
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)

21 years agoTests for message/external-body and for duplicate boundary lines.
Barry Warsaw [Tue, 11 May 2004 22:23:59 +0000 (22:23 +0000)]
Tests for message/external-body and for duplicate boundary lines.

21 years agoMore boiled down tests from Anthony's big torture suite.
Barry Warsaw [Tue, 11 May 2004 22:21:56 +0000 (22:21 +0000)]
More boiled down tests from Anthony's big torture suite.

21 years agoA boiled down message/external-body example from Anthony's torture test.
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.

21 years agoAn example with multiple boundary lines.
Barry Warsaw [Tue, 11 May 2004 22:20:05 +0000 (22:20 +0000)]
An example with multiple boundary lines.

21 years ago_parsegen(): Move the message/rfc822 clause to after the
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).

21 years agoReverting local change checked in by mistake.
Tim Peters [Tue, 11 May 2004 18:18:35 +0000 (18:18 +0000)]
Reverting local change checked in by mistake.