Commit Graph

2407 Commits

Author SHA1 Message Date
Jeong YunWon
8548bbd1dd Merge pull request #3723 from deantvv/io-buffered-args
io: enhance error message in Buffered* class
2022-05-20 06:35:43 +09:00
Dean Li
121b35d27c io: enhance error message in Buffered* class 2022-05-19 23:15:42 +08:00
Noa
f04bc70e72 Remove unused msvcrt::get_errno 2022-05-19 00:51:11 -05:00
Jeong Yunwon
f15c51bb8d clean up socket based on ToPyException 2022-05-18 06:03:03 +09:00
Jeong Yunwon
239f92f9af Remove PyFunctionRef 2022-05-17 08:24:15 +09:00
Jeong Yunwon
6e571946a0 introduce PyStrInterned 2022-05-17 06:16:35 +09:00
Jeong Yunwon
c6b33aab02 Refactor DictKey - remove PyStrRef 2022-05-16 18:14:19 +09:00
Jeong Yunwon
8a2cd2ba08 Refactor DictKey - Remove &PyObject / PyObjectRef 2022-05-16 18:14:19 +09:00
Jeong Yunwon
a2a18f25b8 Fix make_frozen to return PyRef<PyCode> 2022-05-16 05:36:42 +09:00
Jeong Yunwon
f6218bb9e5 No generic FrozenModule. Map names lazy 2022-05-16 04:45:14 +09:00
Jeong Yunwon
93d1438345 PyObjBag refers Context instead of vm 2022-05-16 04:45:13 +09:00
Dennis Zhuang
7cb391e140 Repalce all PyStr::from().into_ref(vm) with vm.ctx.empty_str 2022-05-14 21:45:55 +08:00
Jeong YunWon
543360da57 Merge pull request #3698 from youknowone/cmp
Improve comparison ops performance
2022-05-12 18:36:02 +09:00
Jeong Yunwon
7df0acd6b6 share comparisonop between bytecode and vm 2022-05-12 04:02:14 +09:00
Jeong Yunwon
1fa1a7c5c5 drain with open range 2022-05-12 03:02:58 +09:00
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