Martin v. Löwis
96d743ec8b
Patch #1115086 : support PY_LONGLONG in structmember.
2005-03-03 23:00:26 +00:00
Peter Astrand
7e78ade6f9
Corrected bug in list2cmdline wrt backslashes. Fixes #1083306 .
2005-03-03 21:10:23 +00:00
Peter Astrand
f7f1bb7ff5
Only run extensive subprocess tests if -usubprocess to regrtest is specified. Fixes #1124637
2005-03-03 20:47:37 +00:00
Peter Astrand
23109f0009
Optimization for communicate(): If only one of stdin/stdout/stderr is
...
redirected, using select() or threads is unnecessary.
2005-03-03 20:28:59 +00:00
Peter Astrand
cbac93c229
Added three more testcases: Using communicate with only one of
...
stdin/stdout/stderr redirected.
2005-03-03 20:24:28 +00:00
Fred Drake
b098fd7f89
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
2005-03-03 17:25:04 +00:00
Raymond Hettinger
b67cc80bb9
SF bug #1155938 : Missing None check for __init__().
2005-03-03 16:45:19 +00:00
Martin v. Löwis
6ce7ed23d0
Revert previous checkin on getargs 'L' code. Try to convert all
...
numbers in PyLong_AsLongLong, and update test suite accordingly.
Backported to 2.4.
2005-03-03 12:26:35 +00:00
Martin v. Löwis
4bf108d74f
Patch #802188 : better parser error message for non-EOL following line cont.
2005-03-03 11:45:45 +00:00
Martin v. Löwis
a4dac4094a
Patch #645894 : Use getrusage for computing the time consumption in
...
profile.py if available.
2005-03-03 11:39:45 +00:00
Martin v. Löwis
7fe60c0a0a
Patches #749830 , #1144555 : allow UNIX mmap size to default to current
...
file size.
2005-03-03 11:22:44 +00:00
Martin v. Löwis
df37c8c1ad
Patch #1046831 : Use get_python_version where appropriate in sysconfig.py.
2005-03-03 11:08:03 +00:00
Martin v. Löwis
c5574e809b
Patch #1117454 : Remove code to special-case cookies without values
...
in LWPCookieJar. Backported to 2.4.
2005-03-03 10:57:37 +00:00
Martin v. Löwis
4ea3eade51
Patch #1117339 : Add cookielib special name tests.
...
Backported to 2.4.
2005-03-03 10:48:12 +00:00
Martin v. Löwis
9b62b39070
Document quiet parameter to decode. Fixes #803413 .
2005-03-03 10:06:05 +00:00
Martin v. Löwis
e869eb1953
Patch #1112812 : Make bsddb/__init__.py more friendly for modulefinder.
...
Backported to 2.4.
2005-03-03 09:46:07 +00:00
Martin v. Löwis
ff232d7230
Clear internal call error in 'L' format. Fixes #723201 .
...
Backported to 2.4.
2005-03-03 09:24:38 +00:00
Martin v. Löwis
f2a8d63e4f
Patch #1110248 : SYNC_FLUSH the zlib buffer for GZipFile.flush.
...
Partially fixes #1110242 .
2005-03-03 08:35:22 +00:00
Martin v. Löwis
df24153f65
Patch #1107973 : tarfile.ExFileObject iterators.
2005-03-03 08:17:42 +00:00
Martin v. Löwis
8ed338ab44
Patch #1104111 : Alter setup.py --help and --help-commands.
2005-03-03 08:12:27 +00:00
Brett Cannon
5dc8ced4a8
Silence a gcc warning about putting in parentheses around && expressions mixed
...
with || expressions. Also clarifies intend of 'if' conditional.
2005-03-03 07:01:48 +00:00
Raymond Hettinger
6a458e9bc9
Noted that the module is new in version 2.5.
2005-03-02 15:10:38 +00:00
Piers Lauder
8659d909d3
Fix bug in InternalDate regexp that failed to allow leading 0 in day - courtesy of Rimon Barr <rimon.barr@cornell.edu>
2005-03-02 09:13:45 +00:00
Skip Montanaro
c8c45c25ac
Improve (?) description of system dependence of access to the pw_passwd
...
field on systems that support shadow passwords.
2005-03-02 04:29:23 +00:00
Martin v. Löwis
4afe154369
Patch #1121234 : Properly cleanup _exit and tkerror commands.
...
Will backport to 2.4.
2005-03-01 08:09:28 +00:00
Brett Cannon
5ce2587b1b
Fix grammatical typo in a comment.
2005-03-01 03:16:34 +00:00
Brett Cannon
e94e74a8e1
Make test__locale more fine-grained. Now test localeconv and nl_langinfo
...
individually as tests.
Also improved output when the test fails.
2005-03-01 03:15:50 +00:00
Brett Cannon
46b0802ccd
Fix small grammatical error in a docstring.
2005-03-01 03:12:26 +00:00
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