Bob Ippolito
90bd0a554e
Remove the range checking and int usage #defines from _struct and strip out the now-dead code
2006-05-27 11:47:12 +00:00
Andrew M. Kuchling
b98d65c0b7
Add Py_LOCAL macros
2006-05-27 11:26:33 +00:00
Martin v. Löwis
2e3f6b77d5
Revert bogus change committed in 46432 to this file.
2006-05-27 11:07:49 +00:00
Andrew Dalke
e0df762719
fixed typo
2006-05-27 11:04:36 +00:00
Fredrik Lundh
7a83089c06
needforspeed: backed out the Py_LOCAL-isation of ceval; the massive in-
...
lining killed performance on certain Intel boxes, and the "aggressive"
macro itself gives most of the benefits on others.
2006-05-27 10:39:48 +00:00
Fredrik Lundh
2d23d5bf2e
needforspeed: more stringlib refactoring
2006-05-27 10:05:10 +00:00
Martin v. Löwis
d532ba0746
Explain why 'consumed' is initialized.
2006-05-27 08:54:29 +00:00
Martin v. Löwis
d004fc810a
Patch 1494554: Update numeric properties to Unicode 4.1.
2006-05-27 08:36:52 +00:00
Neal Norwitz
d1b6cd7bfb
Fix Coverity warnings.
...
- Check the correct variable (str_obj, not str) for NULL
- sep_len was already verified it wasn't 0
2006-05-27 05:21:30 +00:00
Neal Norwitz
2f3136b8f0
Fix compiler warning (and whitespace) on Mac OS 10.4. (A lot of this code looked duplicated, I wonder if a utility function could help reduce the duplication here.)
2006-05-27 05:18:57 +00:00
Steve Holden
8040359724
Reinstate new-style object tests.
2006-05-27 00:51:52 +00:00
Tim Peters
7df5e7f4b2
Patch 1145039.
...
set_exc_info(), reset_exc_info(): By exploiting the
likely (who knows?) invariant that when an exception's
`type` is NULL, its `value` and `traceback` are also NULL,
save some cycles in heavily-executed code.
This is a "a kronar saved is a kronar earned" patch: the
speedup isn't reliably measurable, but it obviously does
reduce the operation count in the normal (no exception
raised) path through PyEval_EvalFrameEx().
The tim-exc_sanity branch tries to push this harder, but
is still blowing up (at least in part due to pre-existing
subtle bugs that appear to have no other visible
consequences!).
Not a bugfix candidate.
2006-05-26 23:14:37 +00:00
Andrew Dalke
7e0a62ea90
Added description of why splitlines doesn't use the prealloc strategy
2006-05-26 22:49:03 +00:00
Steve Holden
57ad060722
Blasted typos ...
2006-05-26 22:39:27 +00:00
Steve Holden
a4ebed8071
Update help text and documentaition.
2006-05-26 22:33:20 +00:00
Steve Holden
7db3d38d41
Add Richard Tew to developers
2006-05-26 22:17:54 +00:00
Tim Peters
19bfd4209d
Whitespace normalization.
2006-05-26 21:51:13 +00:00
Tim Peters
8d39dc11c2
Record Iceland sprint attendees.
2006-05-26 20:56:56 +00:00
Bob Ippolito
aa70a17e13
enable all of the struct tests, use ssize_t, fix some whitespace
2006-05-26 20:25:23 +00:00
Andrew Dalke
5132407868
Added limits to the replace code so it does not count all of the matching
...
patterns in a string, only the number needed by the max limit.
2006-05-26 20:25:22 +00:00
Georg Brandl
e4e023c4d3
Simplify calling.
2006-05-26 20:22:50 +00:00
Georg Brandl
a89dbec257
Patch #1492218 : document None being a constant.
2006-05-26 20:14:47 +00:00
Georg Brandl
7784f12d74
Replace Py_BuildValue("OO") by PyTuple_Pack.
2006-05-26 20:04:44 +00:00
Andrew M. Kuchling
07bbfc6a51
Comment typo
2006-05-26 19:51:10 +00:00
Fredrik Lundh
e6e43c867d
needforspeed: stringlib refactoring: use stringlib/find for string find
2006-05-26 19:48:07 +00:00
Thomas Heller
cc7570fd90
Write more docs.
2006-05-26 19:43:45 +00:00
Fredrik Lundh
c816281304
needforspeed: use a macro to fix slice indexes
2006-05-26 19:33:03 +00:00
Fredrik Lundh
ce4eccb0c4
needforspeed: stringlib refactoring: use stringlib/find for unicode
...
find
2006-05-26 19:29:05 +00:00
Fredrik Lundh
58b5e84d52
needforspeed: stringlib refactoring, continued. added count and
...
find helpers; updated unicodeobject to use stringlib_count
2006-05-26 19:24:53 +00:00
Fredrik Lundh
a26de2a80f
added rpartition method to UserString class
2006-05-26 19:23:21 +00:00
Georg Brandl
e001816dff
Exception isn't the root of all exception classes anymore.
2006-05-26 19:04:47 +00:00
Brett Cannon
04f031d202
Change C spacing to 4 spaces by default to match PEP 7 for new C files.
2006-05-26 19:04:47 +00:00
Andrew Dalke
c5da53ba78
substring split now uses /F's fast string matching algorithm.
...
(If compiled without FAST search support, changed the pre-memcmp test
to check the last character as well as the first. This gave a 25%
speedup for my test case.)
Rewrote the split algorithms so they stop when maxsplit gets to 0.
Previously they did a string match first then checked if the maxsplit
was reached. The new way prevents a needless string search.
2006-05-26 19:02:09 +00:00
Andrew M. Kuchling
afe6598732
Add rpartition() and path caching
2006-05-26 18:41:18 +00:00
Steve Holden
d05e546850
Revert tests to MAL's original round sizes to retiain comparability
...
from long ago and far away. Stop calling this pybench 1.4 because it
isn't. Remove the empty test, which was a bad idea.
2006-05-26 18:26:21 +00:00
Fredrik Lundh
9c0e9c089c
needspeed: rpartition documentation, tests, and a bug fixes.
...
feel free to add more tests and improve the documentation.
2006-05-26 18:24:15 +00:00
Fredrik Lundh
b3167cbcd7
needforspeed: added rpartition implementation
2006-05-26 18:15:38 +00:00
Fredrik Lundh
be9f219e40
removed unnecessary include
2006-05-26 18:05:34 +00:00
Georg Brandl
f4ef11659c
Need for speed: Patch #921466 : sys.path_importer_cache is now used to cache valid and
...
invalid file paths for the built-in import machinery which leads to
fewer open calls on startup.
Also fix issue with PEP 302 style import hooks which lead to more open()
calls than necessary.
2006-05-26 18:03:31 +00:00
Thomas Heller
2d6c5a868a
Reordered, and wrote more docs.
2006-05-26 17:47:40 +00:00
Steve Holden
f845877767
Use minimum calibration time rather than avergae to avoid
...
the illusion of negative run times. Halt with an error if
run times go below 10 ms, indicating that results will be
unreliable.
2006-05-26 17:41:32 +00:00
Fredrik Lundh
3a65d87e8c
needforspeed: remove remaining USE_FAST macros; if fastsearch was
...
broken, someone would have noticed by now ;-)
2006-05-26 17:31:41 +00:00
Fredrik Lundh
c2032fb86a
needforspeed: cleanup
2006-05-26 17:26:39 +00:00
Fredrik Lundh
b947948c61
needforspeed: stringlib refactoring (in progress)
2006-05-26 17:22:38 +00:00
Thomas Heller
69bfaab304
Write some docs.
2006-05-26 17:18:33 +00:00
Fredrik Lundh
a50d201bd9
needforspeed: stringlib refactoring (in progress)
2006-05-26 17:04:58 +00:00
Tim Peters
877ab9bc23
Add missing svn:eol-style property to text files.
2006-05-26 16:53:04 +00:00
Tim Peters
584c8d4588
Whitespace normalization.
2006-05-26 16:52:04 +00:00
Tim Peters
735ae484f0
Repair Windows compiler warnings about mixing
...
signed and unsigned integral types in comparisons.
2006-05-26 16:49:28 +00:00
Thomas Heller
ada638bf91
For now, I gave up with automatic conversion of reST to Python-latex,
...
so I'm writing this in latex now.
Skeleton for the ctypes reference.
2006-05-26 16:42:44 +00:00