Jeong YunWon
2458307dc3
rewrite pyclass
2020-08-23 18:30:14 +09:00
Jeong YunWon
e4fa05ae70
attrs replacement technique
2020-08-23 18:24:46 +09:00
Jeong YunWon
8d46a96068
use meta item rather than parent name
2020-08-23 18:24:46 +09:00
Jeong YunWon
9d025b0e4e
#[pyclass] now requires module field
2020-08-23 18:24:46 +09:00
Jeong YunWon
5e9df32b18
#[pyclass] must contains name
2020-08-23 18:24:46 +09:00
Jeong YunWon
d422de6f00
Rework derive and rewrite pymodule.rs
2020-08-23 18:24:46 +09:00
Noah
4e80bfd158
Merge pull request #2141 from RustPython/coolreader18/pynativefunc-rework
...
Just use normal Box for PyNativeFunc
2020-08-22 22:17:37 -05:00
Noah
4d8ffc70ad
Just use normal Box for PyNativeFunc
2020-08-22 16:18:26 -05:00
Jeong YunWon
7f658b57a4
PyClassDef MODULE_NAME
2020-08-23 06:10:47 +09:00
Jeong YunWon
2c1eff49d6
PyClass::extend_class cannot be called with bare py_clas!
2020-08-21 09:49:03 +09:00
Jeong YunWon
f35cae0d3e
object init path checker
2020-08-21 09:47:02 +09:00
Jeong YunWon
23c2c58140
Move out read-only flags of slots.
2020-08-21 09:47:02 +09:00
Jeong YunWon
1ed00a4866
Allow use for #[pyattr]
2020-08-15 18:56:06 +09:00
Jeong YunWon
82b2a4d63d
tp_name for pyclass/pystruct_sequence
2020-08-11 06:16:59 +09:00
Jeong YunWon
3b1bdc5c68
force pystruct_sequence to have only single module while pymodule overwrite module only when it doesn't exist
2020-08-11 06:16:37 +09:00
Jeong YunWon
f164b757d4
inject module name into class
2020-08-11 05:54:24 +09:00
Jeong YunWon
dbafdb18b9
dynamic repr for pystruct_seqeunce
2020-08-11 05:54:23 +09:00
Jeong YunWon
ad1da1d0d8
Remove derive::util::strip_prefix
2020-08-11 02:28:46 +09:00
Jeong YunWon
8baf999403
pyattr has priority to pyclass
2020-08-11 01:06:38 +09:00
Jeong YunWon
5eaa42b215
pyattr for const
2020-08-11 01:06:38 +09:00
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