Commit Graph

  • 1f0fd39722 Change os new funcs to new arg style Aviv Palivoda 2019-04-06 17:29:40 +03:00
  • bcf94ed8bf Merge pull request #788 from RustPython/syntax-enhancements Windel Bouwman 2019-04-06 12:31:53 +02:00
  • afb28bfccb Fix moment when docstring is set. Windel Bouwman 2019-04-06 11:53:59 +02:00
  • 584b707356 Add dict.__missing__ support. Adam Kelly 2019-04-06 10:04:18 +01:00
  • b1dd5836af Simpler implementation of ItemProtocol for PyDictRef. Adam Kelly 2019-04-06 09:52:18 +01:00
  • e2a4f22be8 Avoid name similarity between ItemProtocol and inner methods. Adam Kelly 2019-04-06 09:49:32 +01:00
  • 0fe3f7748c Simplify PyDictRef.__repr__. Adam Kelly 2019-04-06 09:46:17 +01:00
  • 7b2d92f495 Delete DictProtocol. impl ItemProtocol for PyDictRef. Adam Kelly 2019-04-06 09:41:46 +01:00
  • ee9066a713 dict.get shouldn't call into __getitem__ Adam Kelly 2019-04-06 09:02:49 +01:00
  • 3e42edd261 dict.__new__ - support for dict subtypes. Adam Kelly 2019-04-06 08:51:44 +01:00
  • 42bb3465c3 Merge pull request #790 from skinny121/decorator_and_defaults Windel Bouwman 2019-04-06 11:08:01 +02:00
  • b90a1cf6ef Merge pull request #789 from skinny121/dict_literal_order Windel Bouwman 2019-04-06 11:07:22 +02:00
  • 157204c61a Clean up the wasm crate coolreader18 2019-04-05 23:24:26 -05:00
  • 909d94ec23 impl and use SequenceIndex for list.__delitem__ Rachel Powers 2019-04-05 20:25:53 -06:00
  • 7fffc57255 Fix decorator on functions with defaults ben 2019-04-06 12:46:48 +13:00
  • a7d5b0e9ac start jgirardet 2019-04-06 01:44:00 +02:00
  • c3ecf0ef9e Merge branch 'master' into ryex-impl-list.__delitem__ Rachel Powers 2019-04-05 17:15:32 -06:00
  • dda0d561ac Fix order of dict literal ben 2019-04-06 10:43:39 +13:00
  • ab3d004c42 Fix syntax for float literals, statements seperated by semicolons and starargs after keyword arguments. Windel Bouwman 2019-04-05 21:59:20 +02:00
  • 8535ba9a56 Merge pull request #786 from RustPython/dict_cleanup Windel Bouwman 2019-04-05 20:56:58 +02:00
  • 2a3a88c2f2 Use match_class macro to avoid unwanted clones Aviv Palivoda 2019-04-04 21:23:00 +03:00
  • a685216f29 Use new arg style for set and frozenset new Aviv Palivoda 2019-04-04 20:47:29 +03:00
  • ed8c1e1a95 Implement set and frozenset with PySetInner Aviv Palivoda 2019-03-29 16:39:52 +03:00
  • cdd39bc50e Add tests for os.{read, write} Aviv Palivoda 2019-04-05 19:44:09 +03:00
  • 1f19951ece Add os.{remove,unlink} Aviv Palivoda 2019-04-05 19:43:46 +03:00
  • 28c3ef1ae3 Add os.write Aviv Palivoda 2019-04-05 19:17:36 +03:00
  • 37e7972dcd Add os.read Aviv Palivoda 2019-04-05 17:51:03 +03:00
  • f354f4ce02 Move contains_key to PyDictRef. Adam Kelly 2019-04-05 16:14:02 +01:00
  • 0dce9bb96a Use item protocol when executing instructions. Adam Kelly 2019-04-05 15:10:52 +01:00
  • 4212594c5b Prefer key to needle. Adam Kelly 2019-04-05 15:01:44 +01:00
  • ec94168a15 Remove objdict::get_key_value_pairs. Adam Kelly 2019-04-05 15:00:10 +01:00
  • 59d8612cfa Merge pull request #782 from skinny121/abc_module Windel Bouwman 2019-04-05 17:05:45 +02:00
  • e2293ead70 Merge pull request #780 from RustPython/dict_non_str_keys Windel Bouwman 2019-04-05 16:56:58 +02:00
  • 916066924e Merge pull request #784 from RustPython/joey/range-index coolreader18 2019-04-05 09:05:14 -05:00
  • 77d5f57df1 Add some additional dictionary tests. Adam Kelly 2019-04-05 14:36:19 +01:00
  • a41e8973bd Merge branch 'master' into ryex-impl-list.__delitem__ Rachel Powers 2019-04-05 03:59:44 -06:00
  • 43347e2d8b Dictionary: KeyError -> ValueError. Adam Kelly 2019-04-04 18:00:14 +01:00
  • b943f4a4bb Historic real proper dictionary support. Adam Kelly 2019-04-04 17:58:14 +01:00
  • 9ed051e3b7 Module Initialisation takes VirtualMachine rather than PyContext. Adam Kelly 2019-04-04 17:56:39 +01:00
  • 7438b0685c Changes suggested by code review. Adam Kelly 2019-04-04 15:03:56 +01:00
  • c8eda3733d Eliminate ctx.set_attr. Adam Kelly 2019-04-04 14:49:10 +01:00
  • 25c17b4829 Change all the ctx.set_attr in ast. Adam Kelly 2019-04-04 14:48:23 +01:00
  • f840bdcd7f Generalise set_attr. Adam Kelly 2019-04-04 14:47:44 +01:00
  • bce4f1e483 Simplify/shrink the dict interface. Adam Kelly 2019-04-03 17:23:27 +01:00
  • 79caaa5a0b Move PSF-LICENSE and add Lib README.md ben 2019-04-05 19:19:55 +13:00
  • d96a5b11f7 add resources to snippets jgirardet 2019-04-04 21:32:04 +02:00
  • 95cbb530d8 Merge pull request #779 from RustPython/syntax-enhancements Windel Bouwman 2019-04-04 19:45:28 +02:00
  • 05ede30c51 range index Joey 2019-04-04 07:52:53 -07:00
  • 1c958c93b1 Merge pull request #774 from RustPython/joey/match-class Joey 2019-04-04 07:13:31 -07:00
  • d0e6c3bd92 convert to PySliceRef as it is the only option Rachel Powers 2019-04-04 04:52:33 -06:00
  • e3994010f3 add list.__delitem__ test snippits Rachel Powers 2019-04-04 04:04:26 -06:00
  • c97f342ef7 cleanup and rustfmt Rachel Powers 2019-04-04 03:18:58 -06:00
  • aba059b81a impl PySliceableSequenceMut & objseqence::del_item used to impl list.__delitem__ Rachel Powers 2019-04-04 02:52:51 -06:00
  • c01dc5310a Add callback parameter to weakref, at the moment this callback isn't yet implement though. ben 2019-04-04 20:10:47 +13:00
  • ea872521d6 Make object by default hashable ben 2019-04-04 19:45:20 +13:00
  • 0bd08618af Change _py_abc to workaround current issue, and run test with PYTHONPATH linking to Lib directory. ben 2019-04-03 20:36:53 +13:00
  • 39d4d64a4c Copy abc and dependent python files over from CPython 3.7 branch ben 2019-04-03 17:11:26 +13:00
  • fa53d5cd65 impl list.__delitem__ using list.__setitem__ as a guide Rachel Powers 2019-04-03 21:11:03 -06:00
  • 88bf2a32c4 address feedback Joey Hain 2019-04-03 17:30:04 -07:00
  • 29a137bf0f Drop testlist2. Also add test cases for trailing comma in for statement and tuple addition example. Windel Bouwman 2019-04-03 22:24:19 +02:00
  • c6e875f209 Merge pull request #773 from RustPython/coolreader18/whats_left-overhaul coolreader18 2019-04-03 10:29:33 -05:00
  • e078614e05 Change to classes and remove unnecesary if coolreader18 2019-04-03 08:50:55 -05:00
  • 23f57f757c Improve trailing comma situation Windel Bouwman 2019-04-03 14:08:12 +02:00
  • a59db050ac Merge pull request #776 from adrian17/comparisons Windel Bouwman 2019-04-03 09:17:11 +02:00
  • 1e7ca4cac3 Merge pull request #777 from RustPython/joey/convert-complex Joey 2019-04-02 22:35:34 -07:00
  • 2fb3fc92ec Support chained comparisons Adrian Wielgosik 2019-04-02 20:50:14 +02:00
  • 6863c19fb7 complex: convert to new args style Joey 2019-04-02 09:51:01 -07:00
  • 75d02a1725 complex: move to impl block Joey 2019-04-02 09:30:18 -07:00
  • ea2622ee7b Make slice.stop not an option ben 2019-04-01 19:38:20 +13:00
  • d81533befa Merge branch 'master' into coolreader18/whats_left-overhaul coolreader18 2019-04-01 23:20:47 -05:00
  • a77b3489b7 Merge pull request #764 from RustPython/coolreader18/py_class-proc-macro coolreader18 2019-04-01 23:17:38 -05:00
  • 8549ea22a3 Use match_class! in objint::to_int Joey Hain 2019-04-01 20:22:11 -07:00
  • 98889d5339 match_class! macro Joey Hain 2019-04-01 13:38:06 -07:00
  • 9ff1e41422 Give values instead of types, list comprehension, remove methods not in CPython coolreader18 2019-04-01 18:28:15 -05:00
  • 6276241d59 Redo much of whats_left_to_implement.py coolreader18 2019-04-01 18:11:37 -05:00
  • 0ce15e1ff5 Merge pull request #772 from adrian17/iterables Windel Bouwman 2019-04-01 21:45:15 +02:00
  • 2f2a8438b5 Add iterable tests Adrian Wielgosik 2019-04-01 19:42:30 +02:00
  • de5b1c4055 Support iter() for types with only __getitem__ Adrian Wielgosik 2019-04-01 19:42:30 +02:00
  • c918e9d5d3 Split iterators into separate types Adrian Wielgosik 2019-04-01 19:42:30 +02:00
  • bbfca26b27 Move PyIteratorValue to objiter.rs Adrian Wielgosik 2019-04-01 19:42:30 +02:00
  • cba8aa9be5 Drop iter_type_init, explicitly define __iter__ for iterators Adrian Wielgosik 2019-04-01 19:42:30 +02:00
  • 016ecf204d Move iterator __contains__ to 'in' implementation Adrian Wielgosik 2019-04-01 19:42:30 +02:00
  • b3ea8155a5 Don't clone coolreader18 2019-03-31 22:40:57 -05:00
  • 43b0760173 Merge branch 'master' into coolreader18/py_class-proc-macro coolreader18 2019-03-31 21:16:25 -05:00
  • 51b766089f Allow an enum with #[pyclass] coolreader18 2019-03-31 19:53:52 -05:00
  • 42768b20e5 Small demo improvements coolreader18 2019-03-31 17:53:53 -05:00
  • 53b46a7b32 Split some of #[pyclass] off into #[pyimpl] coolreader18 2019-03-31 17:23:33 -05:00
  • aede03c1b2 Merge pull request #762 from palaviv/doc Windel Bouwman 2019-03-31 20:01:05 +02:00
  • 4e99350e5c Use StoreAttr for __doc__ Aviv Palivoda 2019-03-31 18:49:04 +03:00
  • 6d53fe6924 Add more tests for class doc Aviv Palivoda 2019-03-28 23:49:40 +02:00
  • ab3cde77b4 Support class __doc__ Aviv Palivoda 2019-03-28 23:45:45 +02:00
  • c76b31866d Add more tests for function doc Aviv Palivoda 2019-03-28 23:15:39 +02:00
  • f994f8660e Function support __doc__ Aviv Palivoda 2019-03-28 23:10:24 +02:00
  • 69c81730d3 Merge pull request #760 from RustPython/parser-fixes Windel Bouwman 2019-03-31 10:57:51 +02:00
  • f1a60e1ce5 Merge pull request #769 from RustPython/coolreader18/lalrpop-process-out_dir Windel Bouwman 2019-03-31 10:57:31 +02:00
  • 60ad5489f1 Ignore clippy lints in the lalrpop generated file coolreader18 2019-03-30 22:58:46 -05:00
  • 1b57f07834 Process lalrpop in cargo's target directory coolreader18 2019-03-30 22:56:37 -05:00
  • 15cffc4d2b Clean up a bit coolreader18 2019-03-30 22:30:14 -05:00
  • f11f04da70 Split rustpython_derive into multiple files coolreader18 2019-03-30 18:43:31 -05:00
  • e0f7fbb191 Don't derive FromArgs on payload type. ben 2019-03-31 10:53:45 +13:00