Damien George
|
5b5562c1d1
|
py: Fix stack underflow with optimised for loop.
|
2014-05-31 17:59:11 +01:00 |
|
Damien George
|
049a01d148
|
tests: Add another test for break-from-for-loop.
|
2014-05-31 16:56:15 +01:00 |
|
Kim Bauters
|
a3f4b83018
|
add methods isspace(), isalpha(), isdigit(), isupper() and islower() to str
|
2014-05-31 07:30:57 +01:00 |
|
Paul Sokolovsky
|
ccd0e0afcd
|
tests: Add test for break in for.
For #635 / 25c84643b6.
|
2014-05-31 00:43:41 +03:00 |
|
Paul Sokolovsky
|
8827682b35
|
objstr: *strip(): If nothing is stripped, don't create dup string.
|
2014-05-30 03:15:17 +03:00 |
|
Paul Sokolovsky
|
bcdffe53c6
|
objstr: *strip(): Fix handling of one-char subject strings.
|
2014-05-30 03:15:17 +03:00 |
|
Damien George
|
f55cf10101
|
py: Implement bignum '&' with negatives on lhs and rhs.
Needs proper coverage testing. Doesn't implement -ve & -ve.
Addresses issue #611.
|
2014-05-29 15:01:49 +01:00 |
|
Paul Sokolovsky
|
d07bf029b7
|
tests: Add small testcase for 3-arg slices.
|
2014-05-26 02:02:47 +03:00 |
|
Paul Sokolovsky
|
5fd5af98d0
|
objlist: Implement support for arbitrary (3-arg) slices.
|
2014-05-25 22:12:56 +03:00 |
|
Paul Sokolovsky
|
2705f4c782
|
objlist: Implement growing slice assignment.
This means that complete slice operations are supported for lists (but not
for bytearray's and array.array's).
|
2014-05-25 02:36:12 +03:00 |
|
Paul Sokolovsky
|
d098c6bf85
|
objstr: Implement .endswith().
|
2014-05-24 22:46:51 +03:00 |
|
Paul Sokolovsky
|
806ea1f6ca
|
py: Initial attempts to actually allow implementing __new__ in Python.
Caveat is that __new__ should recurse to base class __new__, and ultimately,
object.__new__ is what handles instance allocation.
|
2014-05-22 00:32:00 +03:00 |
|
Paul Sokolovsky
|
a8408a8abe
|
objtype: super: Fall back to "object" lookup as last resort.
Also, define object.__init__() (semantically empty, purely CPython compat
measure). Addresses #520.
|
2014-05-21 22:27:03 +03:00 |
|
Damien George
|
0fd01683c6
|
Merge pull request #607 from Anton-2/osx-clang
Allow compilation of unix port under clang on OS X
|
2014-05-21 19:51:05 +01:00 |
|
Paul Sokolovsky
|
66ab571cca
|
tests: Update subclass-native2.py for __new__/__init__ refactor.
Now case of subclassing tuple works, and list is broken, see comments.
|
2014-05-19 21:56:07 +03:00 |
|
Paul Sokolovsky
|
c18ef2a9dd
|
objstr: startswith(): Accept optional "start" arg.
|
2014-05-15 21:33:18 +03:00 |
|
Paul Sokolovsky
|
70328e419a
|
py: Implement more complete bytes comparison handling.
|
2014-05-15 20:58:40 +03:00 |
|
Paul Sokolovsky
|
ad3baec12f
|
sequence: Fix yet another case of improper sequence comparison.
This time, in mp_seq_cmp_bytes(). How many more cases are still lurking?
|
2014-05-15 19:09:06 +03:00 |
|
Paul Sokolovsky
|
2a27365854
|
objstr.c: Partial implementation of .rsplit().
sep=None is TODO.
|
2014-05-14 02:42:20 +03:00 |
|
Paul Sokolovsky
|
7074f25768
|
tests/int-long.py: Try to expose issue with recent "&" optimization.
|
2014-05-13 08:24:54 +03:00 |
|
Damien George
|
561e425903
|
py: Fix bug in mpz_and function.
Addresses issue #610.
|
2014-05-12 23:27:29 +01:00 |
|
Paul Sokolovsky
|
df94b717b4
|
modstruct: Implement count specifier for strings (e.g. "100s").
Infra for counts of other types is there, need last mile to be implemented.
|
2014-05-12 23:45:50 +03:00 |
|
Antonin ENFRUN
|
1b901c320b
|
tests: create result file for test/basics/memoryerror.py .
On Mac OS "python3 test/basics/memoryerror.py" never runs out of memory, the process is frozen by the os before.
|
2014-05-12 00:13:10 +02:00 |
|
Paul Sokolovsky
|
5ebd5f0f19
|
objstr: Slice indexing: support bytes properly.
|
2014-05-11 21:22:59 +03:00 |
|
Paul Sokolovsky
|
bfb8819c0c
|
objstr: Make .split() support bytes.
|
2014-05-11 21:17:28 +03:00 |
|