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
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
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
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
Rachel Powers
a41e8973bd
Merge branch 'master' into ryex-impl-list.__delitem__
2019-04-05 03:59:44 -06:00
Adam Kelly
43347e2d8b
Dictionary: KeyError -> ValueError.
2019-04-05 09:50:31 +01:00
Adam Kelly
b943f4a4bb
Historic real proper dictionary support.
2019-04-05 09:50:31 +01:00
Adam Kelly
9ed051e3b7
Module Initialisation takes VirtualMachine rather than PyContext.
2019-04-05 09:50:31 +01:00
Adam Kelly
7438b0685c
Changes suggested by code review.
2019-04-05 09:50:31 +01:00
Adam Kelly
c8eda3733d
Eliminate ctx.set_attr.
2019-04-05 09:50:31 +01:00
Adam Kelly
25c17b4829
Change all the ctx.set_attr in ast.
2019-04-05 09:50:31 +01:00
Adam Kelly
f840bdcd7f
Generalise set_attr.
2019-04-05 09:39:59 +01:00
Adam Kelly
bce4f1e483
Simplify/shrink the dict interface.
2019-04-05 09:39:59 +01:00
Windel Bouwman
95cbb530d8
Merge pull request #779 from RustPython/syntax-enhancements
...
Improve trailing comma situation
2019-04-04 19:45:28 +02:00
Joey
05ede30c51
range index
2019-04-04 07:52:53 -07:00
Joey
1c958c93b1
Merge pull request #774 from RustPython/joey/match-class
...
Add match_class! macro
2019-04-04 07:13:31 -07:00
Rachel Powers
d0e6c3bd92
convert to PySliceRef as it is the only option
2019-04-04 04:52:33 -06:00
Rachel Powers
c97f342ef7
cleanup and rustfmt
2019-04-04 03:18:58 -06:00
Rachel Powers
aba059b81a
impl PySliceableSequenceMut & objseqence::del_item
...
used to impl list.__delitem__
2019-04-04 02:52:51 -06:00
ben
c01dc5310a
Add callback parameter to weakref, at the moment this callback isn't yet
...
implement though.
2019-04-04 20:11:53 +13:00
ben
ea872521d6
Make object by default hashable
2019-04-04 20:11:53 +13:00
Rachel Powers
fa53d5cd65
impl list.__delitem__ using list.__setitem__ as a guide
...
while it works as well as __setitem__ currently does this impliments no
support for slice indexing or negative indexing, adtionaly a bad index
panics insted of giving a vm type error!
2019-04-03 21:11:03 -06:00
Joey Hain
88bf2a32c4
address feedback
2019-04-03 17:30:04 -07:00
Windel Bouwman
23f57f757c
Improve trailing comma situation
2019-04-03 14:08:12 +02:00
Windel Bouwman
a59db050ac
Merge pull request #776 from adrian17/comparisons
...
Support chained comparisons
2019-04-03 09:17:11 +02:00
Adrian Wielgosik
2fb3fc92ec
Support chained comparisons
2019-04-02 23:22:54 +02:00
Joey
6863c19fb7
complex: convert to new args style
2019-04-02 09:51:06 -07:00
Joey
75d02a1725
complex: move to impl block
2019-04-02 09:30:18 -07:00
coolreader18
a77b3489b7
Merge pull request #764 from RustPython/coolreader18/py_class-proc-macro
...
Add #[py_class] attribute proc macro
2019-04-01 23:17:38 -05:00