Commit Graph

610 Commits

Author SHA1 Message Date
Rachel Powers
4d53ddedb0 test for if iter raises error 2019-04-08 14:45:34 -06:00
Rachel Powers
d0e6d2fa32 add tests for custom iters 2019-04-08 13:18:37 -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
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
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
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
Aviv Palivoda
cdd39bc50e Add tests for os.{read, write} 2019-04-05 19:51:38 +03:00
Aviv Palivoda
37e7972dcd Add os.read 2019-04-05 19:49:13 +03: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
Adam Kelly
77d5f57df1 Add some additional dictionary tests. 2019-04-05 14:36:19 +01:00
Rachel Powers
a41e8973bd Merge branch 'master' into ryex-impl-list.__delitem__ 2019-04-05 03:59:44 -06:00
Adam Kelly
b943f4a4bb Historic real proper dictionary support. 2019-04-05 09:50:31 +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
Rachel Powers
e3994010f3 add list.__delitem__ test snippits 2019-04-04 04:04:26 -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
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
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
Adrian Wielgosik
2fb3fc92ec Support chained comparisons 2019-04-02 23:22:54 +02: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
Adrian Wielgosik
2f2a8438b5 Add iterable tests 2019-04-01 19:45:20 +02: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
Joey Hain
c2d04f97d8 bytes: add tests for NotImplemented 2019-03-30 13:33:50 -07:00
ben
b5dc5a28e7 Merge branch 'master' into int_new_args
# Conflicts:
#	vm/src/function.rs
2019-03-29 18:51:19 +13:00
Windel Bouwman
73cd680d8d Add support for trailing comma in function defs. Parser code simplications. 2019-03-28 17:50:41 +01:00
Joey Hain
62842e6d19 convert some builtins 2019-03-27 19:01:13 -07:00
ben
3ca387b509 Enhance FromArgs derive proc macro to allow positional, and positional
or keyword arguments.
2019-03-28 05:55:15 +13:00