Commit Graph

2190 Commits

Author SHA1 Message Date
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
42768b20e5 Small demo improvements 2019-03-31 17:53:53 -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
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
Windel Bouwman
f1a60e1ce5 Merge pull request #769 from RustPython/coolreader18/lalrpop-process-out_dir
Process lalrpop in cargo's target directory
2019-03-31 10:57:31 +02:00
coolreader18
60ad5489f1 Ignore clippy lints in the lalrpop generated file 2019-03-30 22:58:46 -05:00
coolreader18
1b57f07834 Process lalrpop in cargo's target directory 2019-03-30 22:56:37 -05:00
Joey
cb0b6a80c5 Merge pull request #759 from RustPython/joey/convert-bytes
Convert bytes to new args style
2019-03-30 14:48:43 -07:00
Joey Hain
c2d04f97d8 bytes: add tests for NotImplemented 2019-03-30 13:33:50 -07:00
Joey Hain
83c1d4fe10 Merge remote-tracking branch 'origin/master' into joey/convert-bytes 2019-03-30 13:31:43 -07:00
Joey
c5c91818a5 Merge pull request #755 from skinny121/int_new_args
Use new style args for int.__new__
2019-03-29 09:13:25 -07:00
coolreader18
c724fdaabe Merge pull request #761 from adrian17/re
Convert re to new style args
2019-03-29 10:58:11 -04:00
ben
ce9a909b9d Change kind identifier to fully use python terminology 2019-03-29 19:03:13 +13:00
ben
b5dc5a28e7 Merge branch 'master' into int_new_args
# Conflicts:
#	vm/src/function.rs
2019-03-29 18:51:19 +13:00
coolreader18
6618def266 Merge pull request #763 from adrian17/more-args
Convert more functions to new args style
2019-03-28 19:10:03 -04:00
Adrian Wielgosik
8f1ec3dd23 Convert slice::{start, stop, stop} to new args style 2019-03-28 23:08:46 +01:00
Adrian Wielgosik
d5e2b3a8b6 Convert iterators next() to new args style
Except objiter, as it'll need to be reworked anyway
2019-03-28 23:08:46 +01:00
Adrian Wielgosik
792c6a103e Convert re to new style args 2019-03-28 21:32:18 +01:00
Windel Bouwman
73cd680d8d Add support for trailing comma in function defs. Parser code simplications. 2019-03-28 17:50:41 +01:00
Joey
149aefe470 Merge pull request #757 from RustPython/joey/convert-bytearray
bytearray: convert to new args style
2019-03-28 08:16:49 -07:00
Joey
da4df08516 Merge pull request #758 from RustPython/joey/convert-builtins
Convert some builtin fns to new args style
2019-03-28 08:16:35 -07:00
coolreader18
e1865fed82 Merge pull request #743 from RustPython/coolreader18/update-deps
Update cargo dependencies
2019-03-28 11:16:21 -04:00
ben
6fd6cc647b Renamed ArgKind, and member to be consistent with python inspect module 2019-03-28 22:00:55 +13:00
ben
c8f4474e7f Implement handling of optional attribute in proc macro 2019-03-28 21:46:26 +13:00
ben
657d025592 Change syntax of attributes in FromArgs proc macro 2019-03-28 21:34:11 +13:00
coolreader18
b621a13415 Merge branch 'master' into coolreader18/update-deps 2019-03-27 22:32:42 -04:00
Joey Hain
e0aca86473 bytes: convert methods to new args style 2019-03-27 19:23:23 -07:00
Joey Hain
e4272126cf bytes: return NotImplemented where appropriate 2019-03-27 19:15:38 -07:00
Joey Hain
b0d7960cc5 bytes: move methods to impl block 2019-03-27 19:14:37 -07:00
Joey Hain
62842e6d19 convert some builtins 2019-03-27 19:01:13 -07:00
Joey
57fa041d08 bytearray: convert to new args style 2019-03-27 18:55:56 -07:00
Joey
e048037146 Merge pull request #756 from adrian17/objobject
Convert objobject.rs to new args style
2019-03-27 17:51:20 -07:00
Adrian Wielgosik
89f63e4c9a Convert objobject.rs to new args style 2019-03-27 23:25:09 +01:00
Windel Bouwman
c2eb6643f3 Merge pull request #754 from adrian17/master
Upgrade lalrpop
2019-03-27 21:09:01 +01:00
Adrian Wielgosik
40dd75d513 Upgrade lalrpop 2019-03-27 18:55:08 +01:00
ben
3ca387b509 Enhance FromArgs derive proc macro to allow positional, and positional
or keyword arguments.
2019-03-28 05:55:15 +13:00
Windel Bouwman
1cda87a239 Merge pull request #752 from RustPython/more_dict_cleanup
More dict cleanup
2019-03-27 15:53:14 +01:00
Adam Kelly
c644176547 Modules have attributes, not items. 2019-03-27 10:53:08 +00:00
Adam Kelly
4cb7f026de Remove unnecessary cast to pyobject in kwarg construction. 2019-03-27 10:53:08 +00:00
Windel Bouwman
14d3aab528 Merge pull request #753 from adrian17/master
Remove .gcno files before a coverage run
2019-03-26 19:34:05 +01:00
Adrian Wielgosik
c5203a4934 Remove .gcno files before a coverage run 2019-03-26 19:00:06 +01:00
Joey
5ef8220d20 Merge pull request #751 from RustPython/scope_holds_dictionaries
Change types inside Scope to PyDictRef.
2019-03-26 09:33:31 -07:00
Adam Kelly
4a5592d461 Change types inside Scope to PyDictRef. 2019-03-26 15:16:49 +00:00