Jeong Yunwon
c9f1f61bae
fix clippy warnings
2022-05-07 20:00:57 +09:00
Jeong YunWon
4c0d49de96
Merge pull request #3658 from coolreader18/move-crt_fd
...
Move crt_fd to common
2022-05-01 14:59:42 +09:00
Noa
77495a2b2d
Move stdlib::os::errno to common
2022-04-30 13:35:43 -05:00
Noa
b382d3c9e3
Move crt_fd to common
2022-04-30 13:35:42 -05:00
Jeong Yunwon
ec9697aabb
Remove direct eprintln! usage from vm
2022-04-30 23:01:26 +09:00
Jeong Yunwon
846e38e110
Fix stderr usage in exit handling
2022-04-30 22:59:16 +09:00
Jeong Yunwon
9f17a50c60
Impl std::ops::Deref for ArgIntoBool
2022-04-29 10:34:26 +09:00
Jeong Yunwon
37daf188ca
Use option-like operator for OptionalArg
2022-04-29 10:07:02 +09:00
Noa
1aa9dd73db
One last getattro
2022-04-28 17:08:00 -05:00
Noa
ec266c43e4
Merge pull request #3641 from coolreader18/mini-fixes
...
Small fixes
2022-04-28 17:06:58 -05:00
Noa
117c3db558
Use hashing hacks to get the value of a ThreadId
2022-04-28 16:24:44 -05:00
Jeong YunWon
ab95b57a62
Merge pull request #3627 from youknowone/getattro
...
GetAttro take reference
2022-04-29 05:48:06 +09:00
Padraic Fanning
1cecd2a2de
Add sys.warn_default_encoding
2022-04-27 18:58:16 -04:00
Jeong Yunwon
32aab6b148
DefaultConstructor
2022-04-27 03:29:47 +09:00
Jeong Yunwon
0325ccaa8f
Constructor/Initializer for io.rs
2022-04-27 03:13:50 +09:00
Jeong Yunwon
dcbc4668a8
Constructor and Initializer for PyDeque
2022-04-27 02:51:42 +09:00
Jeong YunWon
88080505e4
Add PyTypSlot::init
2022-04-27 02:22:05 +09:00
Jeong Yunwon
f8234aee84
GetAttro take reference
2022-04-26 21:56:27 +09:00
snowapril
09f7d92cb9
Relocate generic_getattr/opt from vm to object protocol
...
According to cpython docs, generic_getattr/opt is object protocol.
It is more appropriate to locate in protocol/object.rs than vm
Signed-off-by: snowapril <sinjihng@gmail.com >
2022-04-26 20:51:02 +09:00
Jeong Yunwon
a7135024a5
&PyTuple and &PyTupleRef works like &[PyObjectRef]
2022-04-24 12:26:48 +09:00
Moreal
fcb6c3e28f
Refactor __format__ calling
2022-04-24 05:10:22 +09:00
Jeong Yunwon
c4e0650ac7
VersionInfo to sys.rs
2022-04-23 20:49:31 +09:00
Jeong Yunwon
0535077631
either is a function utility
2022-04-23 20:49:31 +09:00
Jeong Yunwon
f220394ce9
vm::{pyclass => class}
2022-04-23 09:47:53 +09:00
Jeong Yunwon
e52a5f99f3
remove PyPayload::into_pyresult_with_type
2022-04-23 09:47:53 +09:00
Jeong Yunwon
a05a09390e
pyobject to object
2022-04-23 08:57:30 +09:00
Jeong Yunwon
c564a18331
Allow #[pyattr] on #[pyfunction]
2022-04-23 08:06:18 +09:00
Jeong Yunwon
ca84d728c2
sys.unraisablehook
2022-04-23 08:06:17 +09:00
Jeong Yunwon
a63ad27cd4
PyContext is not a python object
2022-04-23 07:56:21 +09:00
Jeong Yunwon
ab7d921772
PySettings is not a python object
2022-04-23 07:56:20 +09:00
Jeong Yunwon
0294473704
ReprGuard to recursion
2022-04-23 07:56:20 +09:00
Noa
56e816caf7
Switch from deprecated widestring function
2022-04-22 17:30:43 -05:00
Jeong Yunwon
bb19b7c43a
Move string intern to PyContext
2022-04-23 06:06:53 +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
sum12
5fdf62a6b9
Check for PyAsyncGen when calling aiter
2022-04-21 09:49:20 +02:00
sum12
8455c741a6
implement aiter
...
the caller is expected to make sure that the passed in object does in
fact supports the protocol
relates #3609
2022-04-21 09:48:01 +02:00
Jeong Yunwon
6ed42f7621
VersionInfo::make_class() with use
2022-04-20 03:25:02 +09:00
Jeong Yunwon
9f2540bb91
Remove manual make_class
2022-04-20 02:07:42 +09:00
Jeong Yunwon
c35b3a653b
hide PyStructSequence from crate root
2022-04-19 15:31:33 +09:00
Jeong Yunwon
bf18e281ed
derive macro for TryFromObject for PyStructSequence
2022-04-19 15:08:42 +09:00
Jeong Yunwon
c4b80b3a24
IntoObject::into_object() and PyValue::into_pyobject(vm)
2022-04-19 00:38:18 +09:00
Jeong Yunwon
f8f4392cf3
Fix wasm32 build
2022-04-18 21:14:38 +09:00
Jeong Yunwon
fee3bf2722
AsPyObject -> AsObject because fn as_object
2022-04-18 07:19:35 +09:00
Jeong Yunwon
6121195548
Replace IntoPyRef with VirtualMachine::new_pyref
2022-04-18 07:17:24 +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
d97a398609
flexible new_downcast_error
2022-04-17 21:53:03 +09:00
Jeong Yunwon
15cb57526e
flexible vm.invoke
2022-04-17 21:09:52 +09:00