]>
granicus.if.org Git - python/log
Raymond Hettinger [Fri, 11 Mar 2005 22:17:30 +0000 (22:17 +0000)]
Revised the itertools quantifier recipes to match the performance of the
new builtins.
Raymond Hettinger [Fri, 11 Mar 2005 06:49:40 +0000 (06:49 +0000)]
Add two new functions, any() and all().
Raymond Hettinger [Fri, 11 Mar 2005 06:48:49 +0000 (06:48 +0000)]
Test partial() with bound/unbound methods.
Raymond Hettinger [Fri, 11 Mar 2005 06:46:45 +0000 (06:46 +0000)]
Apply itemgetter() instead of lambda.
Brett Cannon [Fri, 11 Mar 2005 00:04:17 +0000 (00:04 +0000)]
Fix test for socket.getfqdn() to also include the name returned by
socket.gethostname() in the check for a valid return.
Also clarified docs (official and docstring) that the value from gethostname()
is returned if gethostbyaddr() doesn't do the job.
Anthony Baxter [Thu, 10 Mar 2005 13:47:17 +0000 (13:47 +0000)]
merge from branches
Fred Drake [Thu, 10 Mar 2005 05:02:18 +0000 (05:02 +0000)]
- fix generated Texinfo markup for \deprecated
- add support for additional markup: \leq, \textbar, \textit
- add a comment about the non-support for the Euro character
(ported from release24-maint branch release 1.10.4.2)
Fred Drake [Thu, 10 Mar 2005 04:01:14 +0000 (04:01 +0000)]
fix broken usage comment
Fred Drake [Thu, 10 Mar 2005 03:59:35 +0000 (03:59 +0000)]
add missing entries from GNU info conversion table
(ported from release24-maint branch revision 1.10.4.1)
Fred Drake [Thu, 10 Mar 2005 03:48:14 +0000 (03:48 +0000)]
correct several markup errors caught by the GNU info conversion
(ported from release24-maint branch revision 1.86.2.3)
Raymond Hettinger [Wed, 9 Mar 2005 23:46:11 +0000 (23:46 +0000)]
SF bug #
1160187 : Setup file needs entries for collections, itertools, strop
Andrew MacIntyre [Wed, 9 Mar 2005 22:21:08 +0000 (22:21 +0000)]
add support for another DB library naming convention (FreeBSD ports)
Raymond Hettinger [Wed, 9 Mar 2005 16:38:48 +0000 (16:38 +0000)]
operator.itemgetter() and operator.attrgetter() now support extraction
of multiple fields. This provides direct support for sorting by
multiple keys.
Anthony Baxter [Wed, 9 Mar 2005 11:51:40 +0000 (11:51 +0000)]
ported buildnos to trunk
Skip Montanaro [Wed, 9 Mar 2005 03:01:31 +0000 (03:01 +0000)]
hmmm... moving def'n of version makes the __init__ unnecessary for the
example
Skip Montanaro [Wed, 9 Mar 2005 02:57:26 +0000 (02:57 +0000)]
Correct description/example of how to override User-agent.
Martin v. Löwis [Tue, 8 Mar 2005 15:03:08 +0000 (15:03 +0000)]
Build with --disable-unicode again. Fixes #
1158607 .
Will backport to 2.4.
Martin v. Löwis [Tue, 8 Mar 2005 09:10:29 +0000 (09:10 +0000)]
Convert file names of posix.access according to the file system encoding.
Raymond Hettinger [Tue, 8 Mar 2005 07:15:36 +0000 (07:15 +0000)]
Make functional.partial() more closely match the spec by emulating some useful features of regular functions:
* Made weak referencable.
* Allow attribute access so a user can set __name__, __doc__, etc.
Raymond Hettinger [Tue, 8 Mar 2005 06:14:50 +0000 (06:14 +0000)]
Make functional.partial() more closely match the spec by emulating
some useful features of regular functions:
* Made weak referencable.
* Allow attribute access so a user can set __name__, __doc__, etc.
Greg Ward [Tue, 8 Mar 2005 01:10:20 +0000 (01:10 +0000)]
SF #
1156412 : document the __new__() static method
(merge from release24-maint branch).
Greg Ward [Mon, 7 Mar 2005 01:41:11 +0000 (01:41 +0000)]
SF #818006: merge from release24-maint branch: add useful read-only
attributes to oss_audio_device object: 'closed', 'name', and 'mode'.
Martin v. Löwis [Sat, 5 Mar 2005 12:47:42 +0000 (12:47 +0000)]
Patch #918101: Add tarfile open mode r|* for auto-detection of the
stream compression; add, for symmetry reasons, r:* as a synonym of r.
Brett Cannon [Sat, 5 Mar 2005 06:47:57 +0000 (06:47 +0000)]
Allow classes to be defined with empty parentheses. This means that
``class C(): pass`` is no longer a syntax error.
Brett Cannon [Sat, 5 Mar 2005 06:40:52 +0000 (06:40 +0000)]
Tweak test_communicate_stderr so that it works when run under a pydebug build.
Brett Cannon [Sat, 5 Mar 2005 05:52:21 +0000 (05:52 +0000)]
Add a highlight group for denoting bad whitespace. Also added a match rule for
leading tabs in a line when in Python mode.
Also fixed some grammatical errors in the comments.
Brett Cannon [Sat, 5 Mar 2005 05:32:14 +0000 (05:32 +0000)]
Remove some more tab usage to prevent an error when run as ``python -tt``.
Brett Cannon [Sat, 5 Mar 2005 05:28:45 +0000 (05:28 +0000)]
Remove a tab so that whitespace usage is consistent.
Greg Ward [Sat, 5 Mar 2005 02:53:17 +0000 (02:53 +0000)]
SF #
1149508 : ensure textwrap handles hyphenated numbers correctly,
eg. "2004-03-04" is not broken across lines. (Merged from 2.4 branch.)
Martin v. Löwis [Fri, 4 Mar 2005 19:40:34 +0000 (19:40 +0000)]
Patch #
1043890 : tarfile: add extractall() method.
Martin v. Löwis [Fri, 4 Mar 2005 14:37:01 +0000 (14:37 +0000)]
Patches #925152, #
1118602 : Avoid reading after the end of the buffer
in pyexpat.GetInputContext. Will backport to 2.4.
Michael W. Hudson [Fri, 4 Mar 2005 14:33:32 +0000 (14:33 +0000)]
Updates to the exceptions documentation (this is my patch #
1156102 ).
Martin v. Löwis [Fri, 4 Mar 2005 13:50:17 +0000 (13:50 +0000)]
Patch #
1075887 : Don't require MSVC in distutils if there is nothing
to build. Will backport to 2.4
Martin v. Löwis [Thu, 3 Mar 2005 23:12:42 +0000 (23:12 +0000)]
Patch #
1103407 : Properly deal with tarfile iterators when untarring
symbolic links on Windows. Fixes #
1100429 . Will backport to 2.4.
Martin v. Löwis [Thu, 3 Mar 2005 23:07:21 +0000 (23:07 +0000)]
Patch #
1107221 : Updated "Working on Cygwin" section.
Will backport to 2.4.
Martin v. Löwis [Thu, 3 Mar 2005 23:00:26 +0000 (23:00 +0000)]
Patch #
1115086 : support PY_LONGLONG in structmember.
Peter Astrand [Thu, 3 Mar 2005 21:10:23 +0000 (21:10 +0000)]
Corrected bug in list2cmdline wrt backslashes. Fixes #
1083306 .
Peter Astrand [Thu, 3 Mar 2005 20:47:37 +0000 (20:47 +0000)]
Only run extensive subprocess tests if -usubprocess to regrtest is specified. Fixes #
1124637
Peter Astrand [Thu, 3 Mar 2005 20:28:59 +0000 (20:28 +0000)]
Optimization for communicate(): If only one of stdin/stdout/stderr is
redirected, using select() or threads is unnecessary.
Peter Astrand [Thu, 3 Mar 2005 20:24:28 +0000 (20:24 +0000)]
Added three more testcases: Using communicate with only one of
stdin/stdout/stderr redirected.
Fred Drake [Thu, 3 Mar 2005 17:25:04 +0000 (17:25 +0000)]
minor edits:
- function names marked with \function should include parentheses
- "standard error" instead of "stderr" for text
- a boolean parameter takes true or false values, not just True or False
Raymond Hettinger [Thu, 3 Mar 2005 16:45:19 +0000 (16:45 +0000)]
SF bug #
1155938 : Missing None check for __init__().
Martin v. Löwis [Thu, 3 Mar 2005 12:26:35 +0000 (12:26 +0000)]
Revert previous checkin on getargs 'L' code. Try to convert all
numbers in PyLong_AsLongLong, and update test suite accordingly.
Backported to 2.4.
Martin v. Löwis [Thu, 3 Mar 2005 11:45:45 +0000 (11:45 +0000)]
Patch #802188: better parser error message for non-EOL following line cont.
Martin v. Löwis [Thu, 3 Mar 2005 11:39:45 +0000 (11:39 +0000)]
Patch #645894: Use getrusage for computing the time consumption in
profile.py if available.
Martin v. Löwis [Thu, 3 Mar 2005 11:22:44 +0000 (11:22 +0000)]
Patches #749830, #
1144555 : allow UNIX mmap size to default to current
file size.
Martin v. Löwis [Thu, 3 Mar 2005 11:08:03 +0000 (11:08 +0000)]
Patch #
1046831 : Use get_python_version where appropriate in sysconfig.py.
Martin v. Löwis [Thu, 3 Mar 2005 10:57:37 +0000 (10:57 +0000)]
Patch #
1117454 : Remove code to special-case cookies without values
in LWPCookieJar. Backported to 2.4.
Martin v. Löwis [Thu, 3 Mar 2005 10:48:12 +0000 (10:48 +0000)]
Patch #
1117339 : Add cookielib special name tests.
Backported to 2.4.
Martin v. Löwis [Thu, 3 Mar 2005 10:06:05 +0000 (10:06 +0000)]
Document quiet parameter to decode. Fixes #803413.
Martin v. Löwis [Thu, 3 Mar 2005 09:46:07 +0000 (09:46 +0000)]
Patch #
1112812 : Make bsddb/__init__.py more friendly for modulefinder.
Backported to 2.4.
Martin v. Löwis [Thu, 3 Mar 2005 09:24:38 +0000 (09:24 +0000)]
Clear internal call error in 'L' format. Fixes #723201.
Backported to 2.4.
Martin v. Löwis [Thu, 3 Mar 2005 08:35:22 +0000 (08:35 +0000)]
Patch #
1110248 : SYNC_FLUSH the zlib buffer for GZipFile.flush.
Partially fixes #
1110242 .
Martin v. Löwis [Thu, 3 Mar 2005 08:17:42 +0000 (08:17 +0000)]
Patch #
1107973 : tarfile.ExFileObject iterators.
Martin v. Löwis [Thu, 3 Mar 2005 08:12:27 +0000 (08:12 +0000)]
Patch #
1104111 : Alter setup.py --help and --help-commands.
Brett Cannon [Thu, 3 Mar 2005 07:01:48 +0000 (07:01 +0000)]
Silence a gcc warning about putting in parentheses around && expressions mixed
with || expressions. Also clarifies intend of 'if' conditional.
Raymond Hettinger [Wed, 2 Mar 2005 15:10:38 +0000 (15:10 +0000)]
Noted that the module is new in version 2.5.
Piers Lauder [Wed, 2 Mar 2005 09:13:45 +0000 (09:13 +0000)]
Fix bug in InternalDate regexp that failed to allow leading 0 in day - courtesy of Rimon Barr <rimon.barr@cornell.edu>
Skip Montanaro [Wed, 2 Mar 2005 04:29:23 +0000 (04:29 +0000)]
Improve (?) description of system dependence of access to the pw_passwd
field on systems that support shadow passwords.
Martin v. Löwis [Tue, 1 Mar 2005 08:09:28 +0000 (08:09 +0000)]
Patch #
1121234 : Properly cleanup _exit and tkerror commands.
Will backport to 2.4.
Brett Cannon [Tue, 1 Mar 2005 03:16:34 +0000 (03:16 +0000)]
Fix grammatical typo in a comment.
Brett Cannon [Tue, 1 Mar 2005 03:15:50 +0000 (03:15 +0000)]
Make test__locale more fine-grained. Now test localeconv and nl_langinfo
individually as tests.
Also improved output when the test fails.
Brett Cannon [Tue, 1 Mar 2005 03:12:26 +0000 (03:12 +0000)]
Fix small grammatical error in a docstring.
Andrew M. Kuchling [Tue, 1 Mar 2005 00:53:46 +0000 (00:53 +0000)]
Note various changes that need to be described
Raymond Hettinger [Mon, 28 Feb 2005 19:39:44 +0000 (19:39 +0000)]
SF patch #941881: PEP 309 Implementation (Partial Function Application).
Combined efforts of many including Peter Harris, Hye-Shik Chang,
Martin v. Löwis, Nick Coghlan, Paul Moore, and Raymond Hettinger.
Raymond Hettinger [Mon, 28 Feb 2005 19:27:52 +0000 (19:27 +0000)]
Complete the previous effort to factor out constant expressions
and improve the speed of the if/elif/else blocks.
Martin v. Löwis [Sun, 27 Feb 2005 20:33:25 +0000 (20:33 +0000)]
Patch #
1093585 : raise a ValueError for negative history items in
remove_history and replace_history. Will backport to 2.4.
Martin v. Löwis [Thu, 24 Feb 2005 20:22:10 +0000 (20:22 +0000)]
Patch #
1049151 : adding bool support to xdrlib.py.
Also add xdrlib._test into the test suite.
Raymond Hettinger [Wed, 23 Feb 2005 20:40:42 +0000 (20:40 +0000)]
Update an example to match current output.
Raymond Hettinger [Wed, 23 Feb 2005 13:37:55 +0000 (13:37 +0000)]
Preserve sign of -0.0 when result is run through marshal.
Michael W. Hudson [Tue, 22 Feb 2005 15:33:26 +0000 (15:33 +0000)]
A few random updates to make things less horrifyingly out of date.
Delete some advice that can never, ever have worked.
There are a couple of XXX comments for bits I don't know how to
update. It would be really good not to release Python 2.5 with these
in place :)
This file is way too big. There's basically no chance of it staying
up to date.
Raymond Hettinger [Mon, 21 Feb 2005 20:28:07 +0000 (20:28 +0000)]
Document missing opcodes.
Raymond Hettinger [Mon, 21 Feb 2005 20:03:14 +0000 (20:03 +0000)]
Document how the pattern recognizer keeps all of its references in bounds.
Add a test in case the underlying assumptions ever change (i.e. the
compiler starts generating code blocks that are not punctuated by
RETURN_VALUE).
Raymond Hettinger [Mon, 21 Feb 2005 15:46:52 +0000 (15:46 +0000)]
Fix some wording and grammar nits.
Peter Astrand [Mon, 21 Feb 2005 08:13:02 +0000 (08:13 +0000)]
Made the module compatible with Python 2.2 again.
Raymond Hettinger [Sun, 20 Feb 2005 12:46:54 +0000 (12:46 +0000)]
Teach the peepholer to fold unary operations on constants.
Afterwards, -0.5 loads in a single step and no longer requires a runtime
UNARY_NEGATIVE operation.
Raymond Hettinger [Sun, 20 Feb 2005 12:41:32 +0000 (12:41 +0000)]
Teach the peepholer to fold unary operations on constants.
Afterwards, -0.5 loads in a single step and no longer requires a runtime
UNARY_NEGATIVE operation.
Raymond Hettinger [Sun, 20 Feb 2005 09:54:53 +0000 (09:54 +0000)]
* Beef-up tests for str.count().
* Speed-up str.count() by using memchr() to fly between first char matches.
Raymond Hettinger [Sun, 20 Feb 2005 04:07:08 +0000 (04:07 +0000)]
* Beef-up testing of str.__contains__() and str.find().
* Speed-up "x in y" where x has more than one character.
The existing code made excessive calls to the expensive memcmp() function.
The new code uses memchr() to rapidly find a start point for memcmp().
In addition to knowing that the first character is a match, the new code
also checks that the last character is a match. This significantly reduces
the incidence of false starts (saving memcmp() calls and making quadratic
behavior less likely).
Improves the timings on:
python -m timeit -r7 -s"x='a'*1000" "'ab' in x"
python -m timeit -r7 -s"x='a'*1000" "'bc' in x"
Once this code has proven itself, then string_find_internal() should refer
to it rather than running its own version. Also, something similar may
apply to unicode objects.
Guido van Rossum [Sun, 20 Feb 2005 03:02:16 +0000 (03:02 +0000)]
The error message "can't start new thread" should not end in a
newline.
Ka-Ping Yee [Sat, 19 Feb 2005 22:58:26 +0000 (22:58 +0000)]
Use getdoc(object) instead of object.__doc__ to fix indentation problems.
Thanks to Robert Dick <dickrp@ece.northwestern.edu> for reporting this bug
and submitting a patch.
Adjust doc(object) to display useful documentation for plain values (e.g.
help([]) now shows the methods on the list instead of just printing "[]").
(This change has been tested interactively, by generating docs for the
standard library, and by running the module documentation webserver.)
Martin v. Löwis [Fri, 18 Feb 2005 16:18:09 +0000 (16:18 +0000)]
Avoid using *W functions on Win95. Backported to 2.4.
Walter Dörwald [Fri, 18 Feb 2005 13:22:43 +0000 (13:22 +0000)]
Add support for negative indices in UserString.MutableString.__setitem__
and UserString.MutableString.__delitem__.
Vinay Sajip [Fri, 18 Feb 2005 11:54:46 +0000 (11:54 +0000)]
Handle errors in imports of thread, threading
Vinay Sajip [Fri, 18 Feb 2005 11:53:32 +0000 (11:53 +0000)]
Improved frame handling for 1.5.2, and now return func from findCaller (not actually used yet)
Vinay Sajip [Fri, 18 Feb 2005 11:50:11 +0000 (11:50 +0000)]
Fixed documentation for SMTPHandler
Walter Dörwald [Thu, 17 Feb 2005 22:31:28 +0000 (22:31 +0000)]
Fix copy & paste error.
Walter Dörwald [Thu, 17 Feb 2005 22:03:31 +0000 (22:03 +0000)]
Add tests for the methods added by UserString.MutableString.
Martin v. Löwis [Thu, 17 Feb 2005 21:23:20 +0000 (21:23 +0000)]
Avoid using items() in environ.update(). Fixes #
1124513 .
Will backport to 2.4.
Walter Dörwald [Thu, 17 Feb 2005 18:51:48 +0000 (18:51 +0000)]
Add a basic test for UserString.MutableString.
Michael W. Hudson [Thu, 17 Feb 2005 14:55:21 +0000 (14:55 +0000)]
NEWS blurb for fix of:
[
1124295 ] Function's __name__ no longer accessible in restricted mode
Andrew MacIntyre [Thu, 17 Feb 2005 12:50:27 +0000 (12:50 +0000)]
update version numbers
Andrew MacIntyre [Thu, 17 Feb 2005 12:46:34 +0000 (12:46 +0000)]
add notes about subprocess module & thread stacks, SSL support
Andrew MacIntyre [Thu, 17 Feb 2005 12:44:51 +0000 (12:44 +0000)]
add build machinery for the SSL socket module
Michael W. Hudson [Thu, 17 Feb 2005 10:37:21 +0000 (10:37 +0000)]
Fix
[
1124295 ] Function's __name__ no longer accessible in restricted mode
which I introduced with a bit of mindless copy-paste when making
__name__ writable. You can't assign to __name__ in restricted mode,
which I'm going to pretend was intentional :)
Brett Cannon [Thu, 17 Feb 2005 05:17:17 +0000 (05:17 +0000)]
Fix name for PyDateTime_FromDateAndTime.
Closes bug #
1124278 .
Raymond Hettinger [Wed, 16 Feb 2005 09:27:49 +0000 (09:27 +0000)]
Remove dependency on order of mode flags
Brett Cannon [Wed, 16 Feb 2005 00:07:19 +0000 (00:07 +0000)]
spwdmodule.c should only be built when either HAVE_GETSPNAM or HAVE_GETSPENT is
defined.
Tim Peters [Tue, 15 Feb 2005 21:50:12 +0000 (21:50 +0000)]
Whitespace normalization.
Tim Peters [Tue, 15 Feb 2005 16:22:34 +0000 (16:22 +0000)]
An instance of class PicklingError was used here simply as an example of
_some_ user-defined class instance. That it was also an exception isn't
interesting, but does interfere with Michael Hudson's new-style exception
patch. This just changes the doctest example, to use an instance of a
non-exception class.