Commit Graph

2241 Commits

Author SHA1 Message Date
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
Adam Kelly
77d5f57df1 Add some additional dictionary tests. 2019-04-05 14:36:19 +01: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
ben
79caaa5a0b Move PSF-LICENSE and add Lib README.md 2019-04-05 19:19:55 +13: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
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
ben
0bd08618af Change _py_abc to workaround current issue, and run test with PYTHONPATH
linking to Lib directory.
2019-04-04 20:11:53 +13:00
ben
39d4d64a4c Copy abc and dependent python files over from CPython 3.7 branch 2019-04-04 20:11:53 +13:00
Joey Hain
88bf2a32c4 address feedback 2019-04-03 17:30:04 -07:00
Windel Bouwman
29a137bf0f Drop testlist2. Also add test cases for trailing comma in for statement and tuple addition example. 2019-04-03 22:24:19 +02: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
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
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
Joey Hain
8549ea22a3 Use match_class! in objint::to_int 2019-04-01 20:22:11 -07:00
Joey Hain
98889d5339 match_class! macro 2019-04-01 20:09:45 -07: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