Commit Graph

27 Commits

Author SHA1 Message Date
coolreader18
dc63fc8ce7 Switch to span-based errors for pyclass and pyimpl 2019-04-15 22:15:20 -05:00
coolreader18
08babef619 Remove the __inside_vm hack for procedural macros 2019-04-15 20:24:16 -05:00
Joey
16644daffa Fix sub-crate compilation 2019-04-13 12:04:37 -07:00
coolreader18
c5f4eab142 Change objint to impl style with properties 2019-04-10 17:55:24 -05:00
coolreader18
2bdaa02700 Improve error messages 2019-04-10 17:45:07 -05:00
coolreader18
d099165e3b Rename item_name -> item_ident 2019-04-10 17:41:45 -05:00
coolreader18
47bd9680f9 Change ClassItem to enum 2019-04-10 17:41:25 -05:00
coolreader18
cbdab226d9 Change #[pymethod(property)] to #[pyproperty] 2019-04-09 22:07:21 -05:00
coolreader18
157204c61a Clean up the wasm crate 2019-04-05 23:24:26 -05:00
Adam Kelly
c8eda3733d Eliminate ctx.set_attr. 2019-04-05 09:50:31 +01:00
coolreader18
b3ea8155a5 Don't clone 2019-03-31 22:40:57 -05:00
coolreader18
51b766089f Allow an enum with #[pyclass] 2019-03-31 19:53:52 -05:00
coolreader18
53b46a7b32 Split some of #[pyclass] off into #[pyimpl] 2019-03-31 17:23:33 -05:00
coolreader18
15cffc4d2b Clean up a bit 2019-03-30 22:30:14 -05:00
coolreader18
f11f04da70 Split rustpython_derive into multiple files 2019-03-30 18:43:31 -05:00
coolreader18
d9efe4ea37 Require a #[pymethod] for a method to be recognized 2019-03-29 16:16:31 -05:00
coolreader18
8376ec2d98 Use doc comments for python __doc__ 2019-03-29 15:17:58 -05:00
coolreader18
ab6031871c impl PyStringRef using py_class 2019-03-29 14:51:42 -05:00
coolreader18
4222d87e31 Merge branch 'master' into coolreader18/py_class-proc-macro 2019-03-29 13:55:08 -05:00
ben
ce9a909b9d Change kind identifier to fully use python terminology 2019-03-29 19:03:13 +13:00
coolreader18
ff85838556 Add #[py_class] attribute proc macro 2019-03-29 00:16:34 -05: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
ben
3ca387b509 Enhance FromArgs derive proc macro to allow positional, and positional
or keyword arguments.
2019-03-28 05:55:15 +13:00
coolreader18
a9051ab462 Convert all &mut VirtualMachine to &VirtualMachine 2019-03-22 01:48:14 -05:00
Joey
18b57188ba Add a custom derive for FromArgs 2019-03-16 17:13:23 -07:00