| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Corrected assert to check for correct type in py3k. | Eric Smith | 2008-02-24 | 1 | -1/+1 |
| | | |||||
| * | Now that PyOS_ascii_formatd supports the 'n' format, simplify the float ↵ | Eric Smith | 2008-02-20 | 1 | -40/+15 |
| | | | | | formatting code to just call it. | ||||
| * | Added code to correct combining str and unicode in ''.format(). Added test ↵ | Eric Smith | 2008-02-18 | 1 | -0/+16 |
| | | | | | case. | ||||
| * | Backport of PEP 3101, Advanced String Formatting, from py3k. | Eric Smith | 2008-02-17 | 4 | -0/+2273 |
| | | | | | | | | | | | | | | | | Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k). | ||||
| * | Made _ParseTupleFinds only defined to unicodeobject.c | Facundo Batista | 2007-11-16 | 1 | -0/+3 |
| | | |||||
| * | Fix for stupid error (I need to remember to do a full 'make clean + make' | Facundo Batista | 2007-11-16 | 1 | -1/+1 |
| | | | | | cycle before the tests...). Sorry. | ||||
| * | Now in find, rfind, index, and rindex, you can use None as defaults, | Facundo Batista | 2007-11-16 | 1 | -0/+47 |
| | | | | | | | | | | | | | as usual with slicing (both with str and unicode strings). This fixes issue 1259. For str only the stringobject.c file was modified. But for unicode, I needed to repeat in the four functions a lot of code, so created a new function that does part of the job for them (and placed it in find.h, following a suggestion of Barry). Also added tests for this behaviour. | ||||
| * | Fix endcase for str.rpartition() | Raymond Hettinger | 2006-09-04 | 1 | -4/+4 |
| | | |||||
| * | changed count to return 0 for slices outside the source string | Fredrik Lundh | 2006-05-30 | 1 | -1/+1 |
| | | |||||
| * | changed find/rfind to return -1 for matches outside the source string | Fredrik Lundh | 2006-05-30 | 1 | -10/+11 |
| | | |||||
| * | fixed "abc".count("", 100) == -96 error (hopefully, nobody's relying on | Fredrik Lundh | 2006-05-29 | 1 | -1/+4 |
| | | | | | the current behaviour ;-) | ||||
| * | needforspeed: stringlib refactoring: changed find_obj to find_slice, | Fredrik Lundh | 2006-05-27 | 1 | -18/+39 |
| | | | | | to enable use from stringobject | ||||
| * | needforspeed: replace improvements, changed to Py_LOCAL_INLINE | Fredrik Lundh | 2006-05-27 | 4 | -9/+9 |
| | | | | | where appropriate | ||||
| * | needforspeed: more stringlib refactoring | Fredrik Lundh | 2006-05-27 | 2 | -0/+62 |
| | | |||||
| * | Fix Coverity warnings. | Neal Norwitz | 2006-05-27 | 1 | -6/+1 |
| | | | | | | - Check the correct variable (str_obj, not str) for NULL - sep_len was already verified it wasn't 0 | ||||
| * | needforspeed: stringlib refactoring: use stringlib/find for string find | Fredrik Lundh | 2006-05-26 | 1 | -6/+15 |
| | | |||||
| * | needforspeed: stringlib refactoring, continued. added count and | Fredrik Lundh | 2006-05-26 | 3 | -4/+95 |
| | | | | | find helpers; updated unicodeobject to use stringlib_count | ||||
| * | needforspeed: added rpartition implementation | Fredrik Lundh | 2006-05-26 | 2 | -1/+68 |
| | | |||||
| * | removed unnecessary include | Fredrik Lundh | 2006-05-26 | 1 | -2/+0 |
| | | |||||
| * | needforspeed: stringlib refactoring (in progress) | Fredrik Lundh | 2006-05-26 | 1 | -0/+50 |
| | | |||||
| * | needforspeed: stringlib refactoring (in progress) | Fredrik Lundh | 2006-05-26 | 2 | -0/+102 |
