Jeong Yunwon
6fd5094c05
Remove Interpreter::default() not to trap users init without stdlib
2022-04-30 05:09:33 +09:00
Jeong Yunwon
f8234aee84
GetAttro take reference
2022-04-26 21:56:27 +09:00
Jeong Yunwon
f220394ce9
vm::{pyclass => class}
2022-04-23 09:47:53 +09:00
Jeong Yunwon
ab7d921772
PySettings is not a python object
2022-04-23 07:56:20 +09:00
Jeong Yunwon
5a606647c0
PyObjectView -> Py
2022-04-23 05:21:57 +09:00
Jeong Yunwon
66b6a06997
PyValue -> PyPayload
2022-04-23 05:20:31 +09:00
Jeong Yunwon
d958d91501
PyObjectWeak is PyRef<PyWeak>
2022-04-23 05:17:34 +09:00
Jeong Yunwon
c4b80b3a24
IntoObject::into_object() and PyValue::into_pyobject(vm)
2022-04-19 00:38:18 +09:00
Jeong Yunwon
fee3bf2722
AsPyObject -> AsObject because fn as_object
2022-04-18 07:19:35 +09:00
Jeong Yunwon
e356d51af1
move ToPy* to convert
2022-04-18 07:17:24 +09:00
Jeong Yunwon
f6d70c8176
Into{PyObject,PyException,Pyresult} -> To{..}
...
The naming convention was wrong
2022-04-18 06:04:47 +09:00
Jeong Yunwon
75e589cbc1
isinstance -> fast_isinstance
2022-04-17 20:32:34 +09:00
Jeong Yunwon
aa76a34963
merge TypeProtocol in AsPyObject
2022-04-17 19:26:10 +09:00
Jeong Yunwon
a5b36e1937
split pyobject.rs
2022-04-16 00:45:19 +09:00
Jeong Yunwon
6357a1acbe
clean up imports and useless allow attributes
2022-04-15 23:58:20 +09:00
Dean Li
c5544c2580
test: remove unused import and wrong doc
2022-03-23 21:51:51 +08:00
Padraic Fanning
c990fe5ce4
Add Pipfile.lock to wasm/tests/.gitignore
2022-02-05 21:22:09 -05:00
Padraic Fanning
f283827787
Remove Pipfile.lock
2022-02-05 21:21:30 -05:00
Kangzhi Shi
e06afd2cc0
fix windows fail, hope so
2021-11-28 11:22:14 +02:00
Kangzhi Shi
9a2eef6fab
fix compile
2021-11-27 13:49:05 +02:00
Kangzhi Shi
ca4e8f50e8
refactor ItemProtocol -> Object Protocol
2021-11-27 13:00:37 +02:00
Noa
229a9c8578
Make PyRef<T> wrap a NonNull<PyObjectView<T>>
...
This makes debuggers (or rust-gdb, at least) more pleasant to use, since
you don't have to manually cast `PyRef<T>.obj.ptr as `*const PyObjectView<T>`
Also get rid of PyGenericObject, since it's vestigial
2021-11-15 16:08:47 -06:00
Noa
e42a3ca48e
Big overhaul part 1 - replace PyRc with manual RefCount + WeakRefList
2021-11-15 16:08:45 -06:00
Noa
358ce09b5c
Run cargo upgrade
2021-10-30 19:42:35 -05:00
Jeong YunWon
6138cb4476
Merge pull request #3357 from coolreader18/edition2021
...
Migrate to 2021 edition
2021-10-22 08:21:45 +09:00
Jeong YunWon
815e1b6648
Merge pull request #3355 from moreal/use-pymodule-attribute-wasm-window
...
Remove usage of `py_module!` from `_window`
2021-10-22 05:35:10 +09:00
Jeong YunWon
b394c0a8db
Merge pull request #3354 from moreal/use-pymodule-attribute-wasm-js
...
Remove usage of `py_module!` from _js
2021-10-22 05:34:33 +09:00
Noa
ee8b11f5d2
Migrate to 2021 edition
2021-10-21 11:46:24 -05:00
Moreal
5a16ab8d20
Remove usage of py_module! from _window
2021-10-21 22:05:39 +09:00
Moreal
1474c9e8b3
Remove usage of py_module! from _browser
2021-10-21 21:53:18 +09:00
Moreal
3f9c7901ee
Remove usage of py_module! from _js
2021-10-21 21:48:26 +09:00
Jeong YunWon
f76877347a
Py -> PyObjectView
2021-10-21 18:04:13 +09:00
Jeong YunWon
4e5f897f74
PyObject -> PyGenericObject
2021-10-21 17:42:56 +09:00
Noa
8dd18d97be
PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T>
2021-10-21 16:49:01 +09:00
Aratrik
fdd1baec65
Relocate vm.to_str to obj.str
2021-10-20 10:28:24 +05:30
Aratrik
d6fc20f64e
Relocate vm.set_attr to obj.set_attr
2021-10-19 14:50:53 +05:30
Jeong YunWon
7377664bea
Remove PyFloatRef
2021-10-18 05:14:54 +09:00
jfh
7bc10da154
Relocate vm.get_attribute to obj.get_attr.
2021-10-17 10:30:21 +03:00
Jeong YunWon
8cdde9150e
Rename slot traits to drop Slot prefix
2021-10-14 13:44:22 +09:00
Jeong YunWon
7cae6d24fe
Refactor PyType creation
2021-10-14 13:37:45 +09:00
Jeong YunWon
256de1eb46
Move free functions in vm::exceptions to vm methods
2021-10-13 05:53:43 +09:00
Jeong YunWon
05dca7a7c8
ctx.new_list returns PyLsitRef
2021-10-12 01:22:36 +09:00
Jeong YunWon
a42d547a3f
new_{utf8_str, ascii_literal} -> new_str again
2021-10-11 21:28:14 +09:00
Jeong YunWon
379cf2db6f
new_bytes return PyRef
2021-10-11 16:10:01 +09:00
Jeong YunWon
5cd375aaa9
clean up functions and methods
2021-10-11 16:10:01 +09:00
Jeong YunWon
40379a9bc1
new_float returns PyFloat
2021-10-11 01:05:38 +09:00
Jeong YunWon
741cfea565
vm.ctx.new_int returns PyInt
2021-10-11 01:05:38 +09:00
Jeong YunWon
4fb1cdb316
PyObjectWrap
2021-10-08 01:56:00 +09:00
Jeong YunWon
92de3619fa
move IntoPy{Object, Exception, Result} to vm::function
...
which are used to define function arguments - those functions are mostly placed in the crate
2021-10-06 19:10:16 +09:00
Jeong YunWon
32770249eb
remove iterator::stop_iter_with_value
2021-10-04 04:53:46 +09:00