Andrew M. Kuchling
3e41b0597b
Note various changes that need to be described
2005-03-01 00:53:46 +00:00
Raymond Hettinger
9c323f8de4
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.
2005-02-28 19:39:44 +00:00
Raymond Hettinger
049ade2997
Complete the previous effort to factor out constant expressions
...
and improve the speed of the if/elif/else blocks.
2005-02-28 19:27:52 +00:00
Martin v. Löwis
9533e34024
Patch #1093585 : raise a ValueError for negative history items in
...
remove_history and replace_history. Will backport to 2.4.
2005-02-27 20:33:25 +00:00
Martin v. Löwis
c2a0ac20b7
Patch #1049151 : adding bool support to xdrlib.py.
...
Also add xdrlib._test into the test suite.
2005-02-24 20:22:10 +00:00
Raymond Hettinger
bc2c21ea52
Update an example to match current output.
2005-02-23 20:40:42 +00:00
Raymond Hettinger
e63a078635
Preserve sign of -0.0 when result is run through marshal.
2005-02-23 13:37:55 +00:00
Michael W. Hudson
71dcc3e9b4
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.
2005-02-22 15:33:26 +00:00
Raymond Hettinger
2b0d058cd5
Document missing opcodes.
2005-02-21 20:28:07 +00:00
Raymond Hettinger
07359a7fed
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).
2005-02-21 20:03:14 +00:00
Raymond Hettinger
467024ccfc
Fix some wording and grammar nits.
2005-02-21 15:46:52 +00:00
Peter Astrand
c26516b29d
Made the module compatible with Python 2.2 again.
2005-02-21 08:13:02 +00:00
Raymond Hettinger
afd842f5b2
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.
2005-02-20 12:46:54 +00:00
Raymond Hettinger
80121491e0
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.
2005-02-20 12:41:32 +00:00
Raymond Hettinger
57e7447c44
* Beef-up tests for str.count().
...
* Speed-up str.count() by using memchr() to fly between first char matches.
2005-02-20 09:54:53 +00:00
Raymond Hettinger
7cbf1bcb3e
* 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.
2005-02-20 04:07:08 +00:00
Guido van Rossum
54c273c703
The error message "can't start new thread" should not end in a
...
newline.
2005-02-20 03:02:16 +00:00
Ka-Ping Yee
bba6acc714
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.)
2005-02-19 22:58:26 +00:00
Martin v. Löwis
3c24d96bc5
Avoid using *W functions on Win95. Backported to 2.4.
2005-02-18 16:18:09 +00:00
Walter Dörwald
af3b39a182
Add support for negative indices in UserString.MutableString.__setitem__
...
and UserString.MutableString.__delitem__.
2005-02-18 13:22:43 +00:00
Vinay Sajip
612df8e21d
Handle errors in imports of thread, threading
2005-02-18 11:54:46 +00:00
Vinay Sajip
829dc51a05
Improved frame handling for 1.5.2, and now return func from findCaller (not actually used yet)
2005-02-18 11:53:32 +00:00
Vinay Sajip
84df97fdd6
Fixed documentation for SMTPHandler
2005-02-18 11:50:11 +00:00
Walter Dörwald
1fd4db9c6c
Fix copy & paste error.
2005-02-17 22:31:28 +00:00
Walter Dörwald
7f79152929
Add tests for the methods added by UserString.MutableString.
2005-02-17 22:03:31 +00:00
Martin v. Löwis
5510f65f5a
Avoid using items() in environ.update(). Fixes #1124513 .
...
Will backport to 2.4.
2005-02-17 21:23:20 +00:00
Walter Dörwald
3040b19976
Add a basic test for UserString.MutableString.
2005-02-17 18:51:48 +00:00
Michael W. Hudson
8e1afab111
NEWS blurb for fix of:
...
[ 1124295 ] Function's __name__ no longer accessible in restricted mode
2005-02-17 14:55:21 +00:00
Andrew MacIntyre
6ed710a15b
update version numbers
2005-02-17 12:50:27 +00:00
Andrew MacIntyre
578371f080
add notes about subprocess module & thread stacks, SSL support
2005-02-17 12:46:34 +00:00
Andrew MacIntyre
744b313d85
add build machinery for the SSL socket module
2005-02-17 12:44:51 +00:00
Michael W. Hudson
ee319f66ab
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 :)
2005-02-17 10:37:21 +00:00
Brett Cannon
5bbe6ad2b5
Fix name for PyDateTime_FromDateAndTime.
...
Closes bug #1124278 .
2005-02-17 05:17:17 +00:00
Raymond Hettinger
2ca7c190b6
Remove dependency on order of mode flags
2005-02-16 09:27:49 +00:00
Brett Cannon
46d9623875
spwdmodule.c should only be built when either HAVE_GETSPNAM or HAVE_GETSPENT is
...
defined.
2005-02-16 00:07:19 +00:00
Tim Peters
f0db38dbf8
Whitespace normalization.
2005-02-15 21:50:12 +00:00
Tim Peters
90718a4eb5
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.
2005-02-15 16:22:34 +00:00
Michael W. Hudson
f058858347
Test that SystemExits are handled properly by the exit machinery. I
...
broke the "raise SystemExit(46)" case when doing new-style exceptions,
but I'd much rather have found out here than in test_tempfile (growl).
2005-02-15 15:26:11 +00:00
Michael W. Hudson
a1fb4c891f
Exceedingly minor tweak.
2005-02-15 15:22:37 +00:00
Peter Astrand
69bf13f1e8
Added copyright notice:
...
Licensed to PSF under a Contributor Agreement.
2005-02-14 08:56:32 +00:00
Brett Cannon
ced04e0936
Add mention of patch #1095802 (fixing "Macintosh" references to represent OS
...
X).
2005-02-13 22:53:22 +00:00
Brett Cannon
7706c2da14
Update references specifying "Macintosh" to mean OS X semantics and not Mac OS
...
9.
Applies patch #1095802 . Thanks Jack Jansen.
2005-02-13 22:50:04 +00:00
Fred Drake
22c0706a58
fix decoding in _stringify to not depend on the default encoding
...
(closes SF bug #1115989 )
2005-02-11 17:59:08 +00:00
Brett Cannon
4380242580
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
...
sanity checks on tzname if HAVE_TZNAME defined.
Closes bug #1096244 . Thanks Gregory Bond.
2005-02-10 20:48:03 +00:00
Brett Cannon
64d904b715
Remove set conversion optimization test (backed out of Python/compile.c in rev.
...
2.344).
2005-02-10 20:40:29 +00:00
Fred Drake
ba613c3410
accept datetime.datetime instances when marshalling;
...
dateTime.iso8601 elements still unmarshal into xmlrpclib.DateTime objects
2005-02-10 18:33:30 +00:00
Andrew M. Kuchling
bfd7d6a0ea
Fix typo
2005-02-10 13:24:50 +00:00
Peter Astrand
d38ddf4ca2
Patch from Leandro Lucarella: replaced:
...
var == None and var != None
with
var is None and var is not None
and type(var) == int
with
instanceof(var, int)
...as recomended in PEP 8 [1].
2005-02-10 08:32:50 +00:00
Raymond Hettinger
b615bf0681
Remove the set conversion which didn't work with: [] in (0,)
2005-02-10 01:42:32 +00:00
Raymond Hettinger
4e9907c914
SF bug #1119700 : list extend() accepts args besides lists
2005-02-09 23:19:25 +00:00