Rachel Powers
|
b2a1f6580b
|
fix error when start or stop of slice is -1 and step != 1
|
2019-04-08 15:56:06 -06:00 |
|
Rachel Powers
|
4d53ddedb0
|
test for if iter raises error
|
2019-04-08 14:45:34 -06:00 |
|
Rachel Powers
|
4c50defa37
|
extend PyIterable::try_from_object to work with sequences
|
2019-04-08 13:46:23 -06:00 |
|
Rachel Powers
|
d0e6d2fa32
|
add tests for custom iters
|
2019-04-08 13:18:37 -06:00 |
|
Rachel Powers
|
4e277cfcc2
|
move to useing PyIterable
|
2019-04-08 12:41:28 -06:00 |
|
Rachel Powers
|
a23b5bc470
|
cleanup and cargo fmt
|
2019-04-07 19:32:11 -06:00 |
|
Rachel Powers
|
118c98ccc7
|
exhaustive (hopefully) test snippets
I attempted to cover every case with the snippets
but I easily could of missed some.
|
2019-04-07 19:12:03 -06:00 |
|
Rachel Powers
|
4d8a56aea1
|
list.__setitem__ with slice and int indexing
optimisation is uncertain
correctness is uncertain
but it does appear to work
|
2019-04-07 19:09:44 -06:00 |
|
Windel Bouwman
|
d64554dab2
|
Merge pull request #797 from palaviv/os-dirs
Add os.{mkdir, mkdirs, rmdir, listdir}
|
2019-04-06 20:25:00 +02:00 |
|
Windel Bouwman
|
ea95fb2b4e
|
Merge pull request #794 from RustPython/generic_dict
Parameterise dictdatatype::Dict by value type.
|
2019-04-06 20:18:22 +02:00 |
|
Aviv Palivoda
|
401ca08b65
|
Use map_err
|
2019-04-06 21:11:58 +03:00 |
|
Aviv Palivoda
|
a21aa6eac9
|
Add os.listdir
|
2019-04-06 19:14:23 +03:00 |
|
Aviv Palivoda
|
bf6b12266a
|
Add os.rmdir
|
2019-04-06 18:30:40 +03:00 |
|
Aviv Palivoda
|
2ec6afeb11
|
Add os.mkdirs
|
2019-04-06 18:24:06 +03:00 |
|
Aviv Palivoda
|
eb9378fe90
|
Add os.mkdir
|
2019-04-06 18:20:18 +03:00 |
|
Adam Kelly
|
e67d5f3c62
|
Parameterise dictdatatype::Dict by value type.
|
2019-04-06 16:06:42 +01:00 |
|
Windel Bouwman
|
d577bb7ac9
|
Merge pull request #787 from palaviv/os-fd
Add os.{read,write,remove,unlink}
|
2019-04-06 17:02:31 +02:00 |
|
Windel Bouwman
|
1faa7fa202
|
Merge pull request #783 from Ryex/ryex-impl-list.__delitem__
Implement list.__delitem__
|
2019-04-06 16:56:21 +02:00 |
|
Windel Bouwman
|
0f6a25c38e
|
Merge pull request #791 from RustPython/dict_protocols
Dict protocols
|
2019-04-06 16:48:30 +02:00 |
|
Windel Bouwman
|
a6858befbc
|
Merge pull request #792 from RustPython/docstring-fix
Fix moment when docstring is set.
|
2019-04-06 16:39:33 +02:00 |
|
Aviv Palivoda
|
04acfe2665
|
Remove failing line in windows
|
2019-04-06 17:29:52 +03:00 |
|
Aviv Palivoda
|
1f0fd39722
|
Change os new funcs to new arg style
|
2019-04-06 17:29:40 +03:00 |
|
Windel Bouwman
|
bcf94ed8bf
|
Merge pull request #788 from RustPython/syntax-enhancements
Fix syntax for float literals, statements seperated by semicolons and…
|
2019-04-06 12:31:53 +02:00 |
|
Windel Bouwman
|
afb28bfccb
|
Fix moment when docstring is set.
|
2019-04-06 11:53:59 +02:00 |
|
Adam Kelly
|
584b707356
|
Add dict.__missing__ support.
|
2019-04-06 10:15:34 +01:00 |
|
Adam Kelly
|
b1dd5836af
|
Simpler implementation of ItemProtocol for PyDictRef.
|
2019-04-06 10:15:34 +01:00 |
|
Adam Kelly
|
e2a4f22be8
|
Avoid name similarity between ItemProtocol and inner methods.
|
2019-04-06 10:15:33 +01:00 |
|
Adam Kelly
|
0fe3f7748c
|
Simplify PyDictRef.__repr__.
|
2019-04-06 10:15:31 +01:00 |
|
Adam Kelly
|
7b2d92f495
|
Delete DictProtocol. impl ItemProtocol for PyDictRef.
|
2019-04-06 10:15:29 +01:00 |
|
Adam Kelly
|
ee9066a713
|
dict.get shouldn't call into __getitem__
|
2019-04-06 10:12:16 +01:00 |
|
Adam Kelly
|
3e42edd261
|
dict.__new__ - support for dict subtypes.
|
2019-04-06 10:12:16 +01:00 |
|
Windel Bouwman
|
42bb3465c3
|
Merge pull request #790 from skinny121/decorator_and_defaults
Fix decorator on functions with defaults
|
2019-04-06 11:08:01 +02:00 |
|
Windel Bouwman
|
b90a1cf6ef
|
Merge pull request #789 from skinny121/dict_literal_order
Fix order of dict literal
|
2019-04-06 11:07:22 +02:00 |
|
Rachel Powers
|
909d94ec23
|
impl and use SequenceIndex for list.__delitem__
- removal of del_item
- all del function impl on PyListRef
- stepped deletion now loops only over the range
insted of the whole list
|
2019-04-05 20:25:53 -06:00 |
|
ben
|
7fffc57255
|
Fix decorator on functions with defaults
|
2019-04-06 12:46:48 +13:00 |
|
Rachel Powers
|
c3ecf0ef9e
|
Merge branch 'master' into ryex-impl-list.__delitem__
|
2019-04-05 17:15:32 -06:00 |
|
ben
|
dda0d561ac
|
Fix order of dict literal
|
2019-04-06 10:43:39 +13:00 |
|
Windel Bouwman
|
ab3d004c42
|
Fix syntax for float literals, statements seperated by semicolons and starargs after keyword arguments.
|
2019-04-05 21:59:20 +02:00 |
|
Windel Bouwman
|
8535ba9a56
|
Merge pull request #786 from RustPython/dict_cleanup
Dict cleanup
|
2019-04-05 20:56:58 +02:00 |
|
Aviv Palivoda
|
cdd39bc50e
|
Add tests for os.{read, write}
|
2019-04-05 19:51:38 +03:00 |
|
Aviv Palivoda
|
1f19951ece
|
Add os.{remove,unlink}
|
2019-04-05 19:51:38 +03:00 |
|
Aviv Palivoda
|
28c3ef1ae3
|
Add os.write
|
2019-04-05 19:50:24 +03:00 |
|
Aviv Palivoda
|
37e7972dcd
|
Add os.read
|
2019-04-05 19:49:13 +03:00 |
|
Adam Kelly
|
f354f4ce02
|
Move contains_key to PyDictRef.
|
2019-04-05 16:18:10 +01:00 |
|
Adam Kelly
|
0dce9bb96a
|
Use item protocol when executing instructions.
|
2019-04-05 16:16:55 +01:00 |
|
Adam Kelly
|
4212594c5b
|
Prefer key to needle.
|
2019-04-05 16:16:55 +01:00 |
|
Adam Kelly
|
ec94168a15
|
Remove objdict::get_key_value_pairs.
|
2019-04-05 16:16:55 +01:00 |
|
Windel Bouwman
|
59d8612cfa
|
Merge pull request #782 from skinny121/abc_module
Add abc module from CPython
|
2019-04-05 17:05:45 +02:00 |
|
Windel Bouwman
|
e2293ead70
|
Merge pull request #780 from RustPython/dict_non_str_keys
Support non-string keys in dictionaries.
|
2019-04-05 16:56:58 +02:00 |
|
coolreader18
|
916066924e
|
Merge pull request #784 from RustPython/joey/range-index
Add and use a RangeIndex type instead of Either
|
2019-04-05 09:05:14 -05:00 |
|