Commit Graph
127 Commits
Author SHA1 Message Date
Jeong YunWon 97122cf2c6 py* macro checks type before generation 2020-08-11 01:06:38 +09:00
Jeong YunWon 6b5b99b404 new module attribute pyattr for evaluated attributes 2020-08-11 01:06:38 +09:00
Jeong YunWon 6b6d70534b Fix duplicated attribute checker for pymodule 2020-08-11 01:06:38 +09:00
Jeong YunWon d9b2a25d8a Fix duplicated attribute checker for pyclass 2020-08-11 01:06:38 +09:00
Jeong YunWon a846338395 BorrowValue for PyTuple 2020-08-09 14:55:09 +09:00
Jeong YunWon b135d4f4df Merge pull request #2069 from youknowone/into-pyresult
Separate IntoPyObject and IntoPyResult
2020-08-05 15:31:55 +09:00
Jeong YunWon 61455ce261 Separate IntoPyObject and IntoPyResult 2020-08-04 22:59:34 +09:00
Noah d7bc12114d Get rid of proc-macro-hacky stuff for py_compile_bytecode 2020-08-03 13:20:04 -05:00
Jeong YunWon 64f4f14e00 Reorganize os module 2020-07-30 06:15:41 +09:00
Jeong YunWon 8ac29096a6 cfg and pystruct_sequence support for pymodule 2020-07-30 04:20:44 +09:00
hatee-hatee-hatee-ho 6735ac5902 implemented __repr__ method in impl_pyclass_sequence
* implemented sys.version_info.__repr__
* support 'module' optional parameter for 'pyclass sequence' attribute.
* Separated module name and class name of 'pystruct_sequence' attribute parameter
2020-07-26 00:24:53 +09:00
Ben Lewis e0eef3d93c Set name and module for functions declared with #[pyfunction]. 2020-07-14 20:20:27 +12:00
Noah 6b6c4da511 Add pyarg(flatten) 2020-07-10 12:09:36 -05:00
Noah ebab829f60 Switch to using parking_lot::Mutex instead of std::sync::Mutex 2020-07-04 22:58:18 -05:00
Noah a9058f0a0c Add a separate crate to package the python stdlib source code with 2020-06-24 20:30:22 -05:00
Noah bc1717b7ac Release 0.1.2
rustpython@0.1.2
rustpython-bytecode@0.1.2
rustpython-compiler@0.1.2
rustpython-derive@0.1.2
rustpython-parser@0.1.2
rustpython-vm@0.1.2
rustpython_freeze@0.1.2
rustpython_wasm@0.1.2

Generated by cargo-workspaces
2020-06-23 18:47:08 -05:00
Noah 1bd7824278 Remove some nesting from impl_pymodule, it doesn't fix the span issues though 2020-05-16 20:22:32 -05:00
Aviv Palivoda 16887d3968 Make PyClass ThreadSafe 2020-04-28 20:38:45 +03:00
Jeong YunWon 84527b06ac MODULE_NAME as const 2020-04-27 00:11:51 +09:00
Jeong YunWon 5ff55f1321 pymodule error for mod without body 2020-04-27 00:11:51 +09:00
Jeong YunWon 06f8d0bb98 pyclass member support for #[pymodule] 2020-04-27 00:11:51 +09:00
Jeong YunWon 7261198ff4 pymodule derive macro 2020-04-27 00:11:51 +09:00
Jeong YunWon 162e49f007 Generic support for FromArgs 2020-04-19 04:08:17 +09:00
Noah 80f11466b3 Add "incognito" compilation 2020-04-03 12:34:00 -05:00
Noah e2d7ab30aa Don't allocate for PyNativeFunc when it's just a fn pointer 2020-04-02 13:57:08 -05:00
Jeong YunWon facabfee1a Remove PropertyBuilder and add new_getset 2020-02-06 03:45:19 +09:00
Jeong YunWon 0aee78de18 pyproperty generates PyGetSet instead of PyProperty 2020-02-06 03:42:05 +09:00
Jeong YunWon 23381b9937 compatiibility for CPytthon descr_check 2020-02-06 03:42:01 +09:00
Jeong YunWon c3d5f6c145 IntoPyGetterFunc, IntoPySetterFunc 2020-02-06 01:46:00 +09:00
Jeong YunWon 7d0d313aa5 &str::to_string -> &str::to_owned for variables 2020-02-05 22:55:34 +09:00
Jeong YunWon 1bac582921 &str::to_string -> &str::to_owned for literals 2020-02-05 22:55:33 +09:00
Jeong YunWon 7fd92fcc71 Py_TPFLAGS_BASETYPE 2020-01-30 16:32:09 +09:00
Jeong YunWon 1ecc8228d9 PySlots::flags 2020-01-29 21:30:33 +09:00
Jeong YunWon 421d78ee1b strip_prefix for tp_ and set_ 2020-01-29 21:30:33 +09:00
Noah dc98ea671e Merge pull request #1711 from dralley/once-cell
Replace lazy_static! macro with once_cell
2020-01-27 05:33:27 -08:00
Daniel Alley e5cac96511 Replace lazy_static! macro with once_cell 2020-01-27 01:05:53 -05:00
Jeong YunWon 88d4f6242d Utility ClassItemMeta for class item meta parsing 2020-01-27 13:55:19 +09:00
Jeong YunWon d5367d1761 #[pymethod(magic)]: pyname as __{sig.ident}__ form 2020-01-26 02:48:43 +09:00
Jeong YunWon 7f9a8c1921 Fix clippy error 2020-01-16 00:29:32 +09:00
coolreader18 538e492dda Add #[pyimpl(with(...))] 2020-01-14 23:56:21 -06:00
coolreader18 8a71c7e45d Allow applying pyimpl to a trait 2020-01-14 23:22:50 -06:00
coolreader18 44ed27e8e7 Update to newest syn 2020-01-14 23:22:49 -06:00
Jeong YunWon 8c7e01b4f6 pyslot guess slot name from function name 2020-01-15 10:28:39 +09:00
coolreader18 b29707cda4 Say what file failed to compile in py_compile_bytecode 2020-01-13 19:56:18 -06:00
Noah 80f4f911db Point to the specific function that's not IntoPyFunc for pyimpl 2020-01-13 11:42:31 -06:00
Noah c9a78bc025 Put diagnostics inside generated macro for result_to_tokens_expr 2020-01-13 11:41:59 -06:00
Noah 468f7ba42a Clarify that the compile error is for python code in py_compile_bytecode 2020-01-13 11:41:20 -06:00
Jeong YunWon 70b63eb758 new_rustfunc -> new_function & new_method to distinguish bindable functions 2020-01-12 18:39:16 +09:00
coolreader18 098532b283 Remove proc-macro-hack and use our own slightly-less-hacky hack 2020-01-10 11:29:27 -06:00
Jeong YunWon c1306726c4 Fix clippy warnings 2019-12-21 18:49:48 +09:00