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
coolreader18
68e9c12b9a
Make time.struct_time a struct_sequence
2019-12-02 18:16:28 -06:00
Windel Bouwman
64ab147f64
Compress bytecode using LZ4
2019-10-07 20:54:22 +02:00
coolreader18
50bfc2b357
Rework the pyclass proc macro a bit
2019-10-02 22:18:29 -05:00
Daniel Alley
a6bf19e549
Change sys.version* attributes to return the Python version
...
Return the version of Python that we attempt to be compatible with, not
the version numbers of the RustPython interpreter itself.
closes #1396
2019-10-01 16:12:45 -04:00
coolreader18
c46b5b50bd
Fix weirdness with type.__new__()/type()/metaclass.__new__()
2019-09-29 23:14:31 -05:00
Noah
d88167bb73
Bump crate versions
2019-09-25 11:57:38 -05:00
coolreader18
a0146c5fa6
Add site module and run it on startup
2019-08-15 15:33:36 -05:00
coolreader18
286051383e
impl std::str::FromStr for compile::Mode
2019-08-13 12:35:07 -05:00
coolreader18
4f9a71ff89
Change compile::compile() to take a Mode instead of an &Mode
2019-08-13 12:34:39 -05:00
coolreader18
a72ef1e365
Add frozen package support
2019-07-27 14:27:29 -05:00