Rachel Powers
e3994010f3
add list.__delitem__ test snippits
2019-04-04 04:04:26 -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
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
coolreader18
c6e875f209
Merge pull request #773 from RustPython/coolreader18/whats_left-overhaul
...
Redo much of whats_left_to_implement.py
2019-04-03 10:29:33 -05:00
coolreader18
e078614e05
Change to classes and remove unnecesary if
2019-04-03 08:50:55 -05:00
Windel Bouwman
a59db050ac
Merge pull request #776 from adrian17/comparisons
...
Support chained comparisons
2019-04-03 09:17:11 +02:00
Joey
1e7ca4cac3
Merge pull request #777 from RustPython/joey/convert-complex
...
Convert complex to new args style
2019-04-02 22:35:34 -07: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
d81533befa
Merge branch 'master' into coolreader18/whats_left-overhaul
2019-04-01 23:20:47 -05: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
coolreader18
9ff1e41422
Give values instead of types, list comprehension, remove methods not in CPython
2019-04-01 18:28:15 -05:00
coolreader18
6276241d59
Redo much of whats_left_to_implement.py
2019-04-01 18:12:28 -05:00
Windel Bouwman
0ce15e1ff5
Merge pull request #772 from adrian17/iterables
...
Refactor iterables, separate types, make behavior more compatible with CPython
2019-04-01 21:45:15 +02:00
Adrian Wielgosik
2f2a8438b5
Add iterable tests
2019-04-01 19:45:20 +02:00
Adrian Wielgosik
de5b1c4055
Support iter() for types with only __getitem__
2019-04-01 19:45:16 +02:00
Adrian Wielgosik
c918e9d5d3
Split iterators into separate types
2019-04-01 19:45:14 +02:00
Adrian Wielgosik
bbfca26b27
Move PyIteratorValue to objiter.rs
2019-04-01 19:45:10 +02:00
Adrian Wielgosik
cba8aa9be5
Drop iter_type_init, explicitly define __iter__ for iterators
2019-04-01 19:45:07 +02:00
Adrian Wielgosik
016ecf204d
Move iterator __contains__ to 'in' implementation
2019-04-01 19:45:00 +02:00
coolreader18
b3ea8155a5
Don't clone
2019-03-31 22:40:57 -05:00
coolreader18
43b0760173
Merge branch 'master' into coolreader18/py_class-proc-macro
2019-03-31 21:16:25 -05:00
coolreader18
51b766089f
Allow an enum with #[pyclass]
2019-03-31 19:53:52 -05:00
coolreader18
42768b20e5
Small demo improvements
2019-03-31 17:53:53 -05:00
coolreader18
53b46a7b32
Split some of #[pyclass] off into #[pyimpl]
2019-03-31 17:23:33 -05:00
Windel Bouwman
aede03c1b2
Merge pull request #762 from palaviv/doc
...
Support class and function __doc__
2019-03-31 20:01:05 +02:00
Aviv Palivoda
4e99350e5c
Use StoreAttr for __doc__
2019-03-31 18:52:27 +03:00
Aviv Palivoda
6d53fe6924
Add more tests for class doc
2019-03-31 18:52:27 +03:00
Aviv Palivoda
ab3cde77b4
Support class __doc__
2019-03-31 18:52:27 +03:00
Aviv Palivoda
c76b31866d
Add more tests for function doc
2019-03-31 18:52:27 +03:00
Aviv Palivoda
f994f8660e
Function support __doc__
2019-03-31 18:51:57 +03:00
Windel Bouwman
69c81730d3
Merge pull request #760 from RustPython/parser-fixes
...
Add support for trailing comma in function defs. Parser code simplica…
2019-03-31 10:57:51 +02:00
Windel Bouwman
f1a60e1ce5
Merge pull request #769 from RustPython/coolreader18/lalrpop-process-out_dir
...
Process lalrpop in cargo's target directory
2019-03-31 10:57:31 +02:00
coolreader18
60ad5489f1
Ignore clippy lints in the lalrpop generated file
2019-03-30 22:58:46 -05:00
coolreader18
1b57f07834
Process lalrpop in cargo's target directory
2019-03-30 22:56:37 -05:00
coolreader18
15cffc4d2b
Clean up a bit
2019-03-30 22:30:14 -05:00
coolreader18
f11f04da70
Split rustpython_derive into multiple files
2019-03-30 18:43:31 -05:00
Joey
cb0b6a80c5
Merge pull request #759 from RustPython/joey/convert-bytes
...
Convert bytes to new args style
2019-03-30 14:48:43 -07:00
Joey Hain
c2d04f97d8
bytes: add tests for NotImplemented
2019-03-30 13:33:50 -07:00
Joey Hain
83c1d4fe10
Merge remote-tracking branch 'origin/master' into joey/convert-bytes
2019-03-30 13:31:43 -07:00
coolreader18
d9efe4ea37
Require a #[pymethod] for a method to be recognized
2019-03-29 16:16:31 -05:00
coolreader18
8376ec2d98
Use doc comments for python __doc__
2019-03-29 15:17:58 -05:00
coolreader18
ab6031871c
impl PyStringRef using py_class
2019-03-29 14:51:42 -05:00
coolreader18
4222d87e31
Merge branch 'master' into coolreader18/py_class-proc-macro
2019-03-29 13:55:08 -05:00
Joey
c5c91818a5
Merge pull request #755 from skinny121/int_new_args
...
Use new style args for int.__new__
2019-03-29 09:13:25 -07:00
coolreader18
c724fdaabe
Merge pull request #761 from adrian17/re
...
Convert re to new style args
2019-03-29 10:58:11 -04:00
ben
ce9a909b9d
Change kind identifier to fully use python terminology
2019-03-29 19:03:13 +13:00
ben
b5dc5a28e7
Merge branch 'master' into int_new_args
...
# Conflicts:
# vm/src/function.rs
2019-03-29 18:51:19 +13:00