Commit Graph

172 Commits

Author SHA1 Message Date
Adam Kelly
dce628dfad Simple metaclass snippet demoing call and new. 2018-11-02 17:16:46 +00:00
Windel Bouwman
bddaf3e77e Implement while-else and for-else. Call __neg__ and __invert__ methods on unary operation. 2018-10-31 21:50:00 +01:00
Windel Bouwman
cb4d66bd48 Added bit length method on int type. 2018-10-30 22:08:10 +01:00
Windel Bouwman
f6cced5d65 Change integer type into bigint 2018-10-30 21:01:31 +01:00
Windel Bouwman
1e3b45ee0d Add complex basic type 2018-10-29 21:55:58 +01:00
Windel Bouwman
5053d6d167 Add bytes literal support. 2018-10-28 21:15:46 +01:00
Windel Bouwman
7e1067168b Add list.extend method 2018-10-28 20:16:24 +01:00
Windel Bouwman
e6fd9fb0a0 Add double star arguments in function calls 2018-10-28 20:05:05 +01:00
Windel Bouwman
3f6c716b37 Implement star expand argument in function call. 2018-10-28 19:16:21 +01:00
Windel Bouwman
851d263878 Merge branch 'master' of https://github.com/RustPython/RustPython 2018-10-28 14:16:15 +01:00
Windel Bouwman
4187a6ee39 Add support for star expanded argument in list and tuple constructions. 2018-10-28 14:16:11 +01:00
Windel Bouwman
abe6abadf3 Merge pull request #181 from BojanKogoj/bojan/objfloat-__ge__
Added __ge__ to float
2018-10-28 13:35:26 +01:00
Windel Bouwman
6190914540 Merge pull request #176 from cauebs/master
Implement `bin` and `hex` builtin functions
2018-10-28 13:33:24 +01:00
Bojan
59417ea451 Added __ge__ to float 2018-10-28 00:36:51 +02:00
Cauê Baasch de Souza
1de31053e9 Fix tests for bin and hex builtin functions 2018-10-27 19:33:04 -03:00
Windel Bouwman
afea338c08 Merge branch 'master' of https://github.com/RustPython/RustPython 2018-10-28 00:26:30 +02:00
Windel Bouwman
1f30693718 Allow unpack in assignment of list as well as trailing comma for 1 sized tuples 2018-10-28 00:26:24 +02:00
Bojan
ec006ae6b9 Added __gt__ to float 2018-10-27 22:45:22 +02:00
Windel Bouwman
57dbfd16af Merge pull request #177 from BojanKogoj/bojan/objfloat-__lt__
Added __lt__ for float
2018-10-27 22:23:06 +02:00
Bojan
a2889f10e9 Added some tests 2018-10-27 22:08:39 +02:00
Windel Bouwman
a3a427c252 Add 'yield from' syntax 2018-10-27 17:05:22 +02:00
Windel Bouwman
29ce0cf2e7 Add support for if-filters in list comprehensions. 2018-10-27 11:35:46 +02:00
Cauê Baasch de Souza
986763579c Add tests for bin and hex 2018-10-26 00:29:44 -03:00
Windel Bouwman
09e2c027cd Extend ast module with more nodes. Test send method on generators. 2018-10-24 16:02:59 +02:00
Windel Bouwman
babb8ed2f0 Deleted comparison based on objectkind 2018-10-24 12:02:16 +02:00
Windel Bouwman
c742909d51 First working implementation of generators. 2018-10-24 10:54:48 +02:00
Windel Bouwman
1222830678 Implement star arg on left hand side of assignment. 2018-10-22 21:52:06 +02:00
Windel Bouwman
525807c319 Add __getitem__ on list, tuple and str 2018-10-21 21:09:38 +02:00
Windel Bouwman
f59f8a9567 Add support for *args and **kwargs in functions. 2018-10-21 20:48:08 +02:00
Windel Bouwman
c54e4434a1 Merge branch 'master' of https://github.com/RustPython/RustPython 2018-10-20 11:47:30 +02:00
Windel Bouwman
ae768c7fe6 Add parsing for star arg parameters. 2018-10-20 11:47:23 +02:00
Windel Bouwman
59aa249783 Merge pull request #172 from rmliddle/sysmodule-additions
Adds args accessible via the sysmodule
2018-10-20 09:59:48 +02:00
rmliddle
064765315d pass of args for clap, pop first arg 2018-10-20 10:36:49 +11:00
Windel Bouwman
7e45d0b8b4 Add del statement 2018-10-19 18:41:44 +02:00
Windel Bouwman
f7fc9a8020 Move min/max test snippets to own directory to pass current tests. 2018-10-18 23:22:45 +02:00
Windel Bouwman
46251d4aa1 Merge pull request #167 from azmeuk/builtins_unimplemented
Snippet showing unimplemented methods in builtin types
2018-10-18 23:03:48 +02:00
Akshay Verma
4da6c94602 Added test for capitalize method to string 2018-10-18 16:46:43 +02:00
Akshay Verma
8c04cb5dc3 Added tests for capitalize method to string 2018-10-18 16:25:27 +02:00
Éloi Rivard
3f8116f434 Snippet showing unimplemented methods in builtin types 2018-10-17 22:09:01 +02:00
Windel Bouwman
5707548436 Add set.add method 2018-10-17 21:08:46 +02:00
Éloi Rivard
b18156ac21 Added set object membership test 2018-10-17 19:39:17 +02:00
Windel Bouwman
77a4369b61 Merge pull request #164 from azmeuk/max
max and min snippets
2018-10-17 16:32:29 +02:00
Éloi Rivard
abf113798f Added builtin max and min snippets 2018-10-17 14:06:25 +02:00
Éloi Rivard
e415ee1fbf Basic membership implementation 2018-10-17 13:57:38 +02:00
Windel Bouwman
c9aa103cce Change target of for loops into single expression. 2018-10-17 13:12:04 +02:00
Windel Bouwman
6105a836ad Initial variant of list comprehensions 2018-10-17 12:05:10 +02:00
Windel Bouwman
adfb750129 Added ternary if operator 2018-10-17 08:45:16 +02:00
Éloi Rivard
3e7f168359 builtin ord basic implementation. Fixes #151 2018-10-16 19:17:49 +02:00
rmliddle
302784df51 sysmod.argv added + snippet 2018-10-16 23:02:09 +11:00
Windel Bouwman
3eafcbec3d Add decorator functionality 2018-10-14 20:04:19 +02:00