Commit Graph

1992 Commits

Author SHA1 Message Date
coolreader18
3731148237 Merge branch 'master' into coolreader18/fix-clippy1 2019-03-20 09:03:07 -05:00
coolreader18
e35cc813a8 Rename to Unnamed and Named 2019-03-20 08:59:37 -05:00
Windel Bouwman
4c485202d1 Merge pull request #703 from RustPython/add_class_cell
Add __class__ cell to method scopes.
2019-03-20 13:56:03 +01:00
Adam Kelly
1958e47022 Add __class__ cell to method scopes. 2019-03-20 09:20:28 +00:00
Adam
32cb59909e Merge pull request #694 from skinny121/setattr
Various fixes for getattr/setattr/hasattr
2019-03-20 08:35:00 +00:00
ben
08e66b5002 Create workaround for properties on None 2019-03-20 19:58:56 +13:00
ben
a5050ebafe Make property return itself if invoke by class binding 2019-03-20 19:58:54 +13:00
ben
6c3a402eca Fix setting attributes on modules 2019-03-20 19:58:48 +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
ben
4e42bd077c Implement __setattr__ based on @nhynes(#540) PR 2019-03-20 19:53:50 +13:00
coolreader18
b7916cdb53 Fix varargs errors 2019-03-19 22:15:09 -05:00
coolreader18
ef3b9105ef Rename object_is back to payload_is 2019-03-19 20:59:48 -05:00
coolreader18
33b99b203f Some minor things 2019-03-19 20:34:35 -05:00
coolreader18
ff5c203b0e impl From<&ast::Varargs> for bytecode::Varargs 2019-03-19 20:13:03 -05:00
coolreader18
b30d56df29 Fix some more clippy warnings 2019-03-19 20:02:06 -05:00
coolreader18
ab53883f67 Change varargs from Option<Option<_>> to its own enum 2019-03-19 19:53:22 -05:00
coolreader18
4c9527be47 Merge branch 'master' into coolreader18/fix-clippy1 2019-03-19 19:19:36 -05:00
Windel Bouwman
5b6b33b644 Merge pull request #697 from RustPython/more_pyobject
More pyobject
2019-03-19 19:21:44 +01: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
Windel Bouwman
1969c90d98 Merge pull request #696 from palaviv/super
super in class methods
2019-03-19 19:08:53 +01:00
Adam Kelly
5384e07bf3 Remove PyObject::new from tuple and list. 2019-03-19 17:15:14 +00:00
Adam Kelly
c6e7d8901f Remove use of PyObject::new from objset. 2019-03-19 17:14:51 +00:00
Adam Kelly
638196bce4 Eliminate PyObject::new from objenumerate. 2019-03-19 16:42:40 +00:00
Adam Kelly
d38e89a811 Remove PyObject::new from objgenerator. 2019-03-19 16:28:53 +00:00
Adam Kelly
aeaa94966f Remove PyObject::new from objmap. 2019-03-19 16:24:19 +00:00
Aviv Palivoda
c3d0fddfcf Add PySuper 2019-03-19 18:08:43 +02:00
coolreader18
f78f558404 Fix clippy lints 2019-03-19 10:52:39 -05:00
Adam
4b5e75ea5b Merge pull request #683 from RustPython/objdict_refactor
Objdict refactor
2019-03-19 11:24:21 +00:00
Adam Kelly
6b3f61f3ca Merge branch 'master' into objdict_refactor 2019-03-19 10:19:03 +00:00
Aviv Palivoda
50cc9fa91f super works in class methods 2019-03-18 22:00:54 +02:00
Windel Bouwman
76dbd8c6e8 Apply cargo formatting. 2019-03-18 20:21:35 +01: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
Windel Bouwman
3191725022 Refactor into new-style PyObject 2019-03-18 17:48:46 +01:00
Joey
c57be01711 Merge pull request #691 from RustPython/joey/builtin-print-newargs
Convert print() builtin to new args style
2019-03-18 09:35:46 -07:00
Windel Bouwman
39ee9172ff Merge pull request #693 from RustPython/joey/just-use-pyfuncargs
FromArgs: use PyFuncArgs instead of iterator
2019-03-17 07:34:59 +01:00
Joey
18b57188ba Add a custom derive for FromArgs 2019-03-16 17:13:23 -07:00
Joey
7cb889d42c Rebase against #693 and simplify 2019-03-16 16:38:28 -07:00
Joey
6550c52fa9 None doesn't mean no sep/end 2019-03-16 16:29:09 -07:00
Joey
55e7982835 Don't need while let 2019-03-16 16:29:09 -07:00
Joey
e83686cf3c Add clarifying note to KwArgs docs 2019-03-16 16:29:09 -07:00
Joey
d3b9714754 Convert print() builtin to new args style 2019-03-16 16:29:09 -07:00
Joey
7be5b8dafe FromArgs: use PyFuncArgs instead of iterator 2019-03-16 16:07:59 -07:00
Joey
3242ff3003 Merge pull request #690 from RustPython/joey/kwargs-surprise-positional
Handle unexpected positional argument in KwArgs
2019-03-16 12:58:35 -07:00
Joey
60ed1bd0a7 Handle unexpected positional argument in KwArgs 2019-03-16 10:18:46 -07:00
Joey
a32ebd530e Merge pull request #688 from RustPython/joey/pyobject-function-split
Move function items out of pyobject module
2019-03-16 09:15:51 -07:00
Joey
9de7285d23 Merge remote-tracking branch 'origin/master' into joey/pyobject-function-split
Conflicts:
      vm/src/frame.rs
      vm/src/obj/objbytearray.rs
      vm/src/obj/objbytes.rs
      vm/src/obj/objcomplex.rs
2019-03-16 08:37:18 -07:00
Adam
94e3cb8363 Merge pull request #682 from RustPython/prefer_pyvalue_into_ref
Prefer pyvalue into ref
2019-03-16 10:14:21 +00:00