Commit Graph

571 Commits

Author SHA1 Message Date
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
Adrian Wielgosik
c5203a4934 Remove .gcno files before a coverage run 2019-03-26 19:00:06 +01:00
Windel Bouwman
20c09f025a Merge pull request #747 from adrian17/master
Update grcov
2019-03-25 20:41:39 +01:00
Windel Bouwman
983be0f944 Merge pull request #725 from palaviv/frozen-set-2
frozenset
2019-03-25 19:54:52 +01:00
Adrian Wielgosik
2131a8130c Clean up some tests 2019-03-25 17:59:51 +01:00
Adrian Wielgosik
16e04cf298 Run rustpython tests without cargo middleman 2019-03-25 17:54:04 +01:00
Adrian Wielgosik
4ab59a8e4c Do not run benchmarks in the main test suite 2019-03-25 17:53:13 +01:00
Adrian Wielgosik
e44b02b88f Avoid trace log in tests 2019-03-25 17:52:37 +01:00
Adrian Wielgosik
602f2a83da Update grcov 2019-03-25 17:35:21 +01:00
Adam
9989795141 Merge pull request #742 from RustPython/emoji-support
Doing what is needed for all our non-latin friends.
2019-03-25 10:39:09 +00:00
Joey
9a0113deed range: represent w/ int refs 2019-03-24 09:59:06 -07:00
Windel Bouwman
d0c4fcb2fa Doing what is needed for all our non-latin friends. 2019-03-24 13:14:38 +01:00
Adrian Wielgosik
e39df6daef Basic implementation of T.__subclasses__().
Ideally, the weak list should be updated whenever a type is removed,
and the list shouldn't be a Vec, but this should be good enough for
starters.
2019-03-24 12:49:04 +01:00
Aviv Palivoda
2f9a49d077 Support classmethod super 2019-03-23 19:56:00 +02:00
Aviv Palivoda
2626a800ab Support frozenset 2019-03-23 17:27:33 +02:00
Aviv Palivoda
84e89d37e2 Use __class__ cell in super 2019-03-22 16:37:28 +02:00
Aviv Palivoda
6230a25c4b Use first argument in super 2019-03-22 16:37:28 +02:00
ben
4ad8d5ed9b Make property.__get__ owner parameter optional 2019-03-21 19:57:35 +13:00
ben
a5f6a7b10d Implement calling __set__ and __delete__ 2019-03-21 19:34:47 +13:00
Adam Kelly
1958e47022 Add __class__ cell to method scopes. 2019-03-20 09:20:28 +00:00
ben
a5050ebafe Make property return itself if invoke by class binding 2019-03-20 19:58:54 +13:00
ben
48dd507cad Remove dict from object 2019-03-20 19:58:46 +13:00
ben
c77b1f3cf5 Fix bug with __getattr__ 2019-03-20 19:56:25 +13:00
ben
63d40edbc6 Added bunch af attribute has/get/set/delete tests and fixed getattr and
hasattr handling of exceptions.
2019-03-20 19:56:23 +13:00
Windel Bouwman
415f44da79 Merge pull request #673 from RustPython/string-io
Add write method to io.StringIO
2019-03-19 19:12:08 +01:00
Aviv Palivoda
50cc9fa91f super works in class methods 2019-03-18 22:00:54 +02:00
Windel Bouwman
ac2aecd6fe Disable file argument in test. 2019-03-18 20:00:55 +01:00
Windel Bouwman
18fc8c150b Merge master 2019-03-18 20:00:00 +01:00
Chylli
6923490afc more test 2019-03-16 13:55:29 +08:00
Chylli
144a8ae179 more test 2019-03-16 13:33:14 +08:00
Chylli
cf82a256da test any 2019-03-16 11:16:09 +08:00
Adam Kelly
5b41cc4b0d Fix subclasses of string. (Fixes #130) 2019-03-14 09:06:29 +00:00
ben
3f301bd684 Implement property attributes and functions 2019-03-14 17:19:43 +13:00
Windel Bouwman
c0b7ddfd2c Add write method to io.StringIO 2019-03-13 13:32:57 +01:00
Windel Bouwman
f0e285d124 Merge pull request #665 from RustPython/type_mro
Type mro
2019-03-13 12:05:59 +01:00
Windel Bouwman
3cfee902ab Merge pull request #630 from lili668668/dict_get
Implement dict.get
2019-03-12 19:59:25 +01:00
Adam Kelly
48fba05e20 Change .__mro__ to read-only attribute so type.__mro__ works. 2019-03-12 11:27:42 +00:00
Aviv Palivoda
a3823b4540 Test override __import__ 2019-03-11 22:49:55 +02:00
Aviv Palivoda
87e6d8d13d Add __import__ 2019-03-11 22:29:50 +02:00
Adrian Wielgosik
b123e58c55 Support index in list.pop() 2019-03-11 00:31:26 +01:00