Commit Graph

2422 Commits

Author SHA1 Message Date
Kangzhi Shi
ea95777ec7 Simplify AsNumber trait 2022-05-30 07:38:29 +09:00
Kangzhi Shi
3e6e348a67 impl number protocol float 2022-05-30 07:36:08 +09:00
Kangzhi Shi
59cedd2213 deprecated warnings for int 2022-05-30 07:36:07 +09:00
Jeong Yunwon
38a36d7593 Simplify AsSequence 2022-05-29 08:19:49 +09:00
Jeong Yunwon
d05645ea58 update syn-ext 2022-05-28 01:41:55 +09:00
Jeong YunWon
8ab4e77035 Merge pull request #3717 from youknowone/exception-ref
ExceptionZoo holds static ref
2022-05-27 15:19:49 +09:00
Jeong Yunwon
9b2a9d2377 TypeZoo uses &'static Py<PyType> 2022-05-27 10:35:01 +09:00
Jeong Yunwon
9db69d628f {Type,Exception}Zoo holds static ref 2022-05-27 10:23:33 +09:00
Jeong Yunwon
beff32a2a3 Add compile::Mode::BlockExpr 2022-05-27 10:14:13 +09:00
Jeong YunWon
c44843fa1e Merge pull request #3700 from youknowone/attr-intern
PyStrInterned for PyAttributes/Constants
2022-05-27 08:56:28 +09:00
Alexander Scharinger
4f87f875fc Add filterfalse.__reduce__ 2022-05-26 00:07:17 +02:00
Jeong Yunwon
fb52694e41 PyAttributes key is PyStrInterned 2022-05-23 09:03:13 +09:00
Jeong Yunwon
f8b1c65ede PyStrInterned 2022-05-23 09:03:09 +09:00
gnsxun
a019cbf02c Add count.reduce() (#3737) 2022-05-23 04:38:11 +09:00
Jeong Yunwon
bbc31364bb PyInterned 2022-05-22 14:19:11 +09:00
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