Commit Graph
34 Commits
Author SHA1 Message Date
Jeong YunWon f8a5cc4b23 Remove type clone functions from vm.ctx
which misleads to clone types when we don't need.
2020-08-23 20:26:37 +09:00
Jeong YunWon 9d025b0e4e #[pyclass] now requires module field 2020-08-23 18:24:46 +09:00
Noah 5099255cd0 Revert "Trying revert for regression" 2020-08-20 11:41:21 -05:00
Jeong YunWon 8be0a27b27 Give names for pyclass 2020-08-20 04:58:35 +09:00
Jeong YunWon 8bfc218b2d Revert "Merge pull request #2106 from RustPython/coolreader18/unittest-tests"
This reverts commit 96926daf6f, reversing
changes made to 230f91582f.
2020-08-20 04:18:21 +09:00
Jeong YunWon 74253e2c56 Remove redundant clone 2020-08-19 10:00:48 +09:00
Noah cc4ae0831c Make HAVE_DICT a type flag 2020-08-12 16:04:13 -05:00
Jeong YunWon 3f6ebd3385 Use From::from for PyValues instead of new 2020-08-06 20:18:56 +09:00
Aviv Palivoda fb5862da91 Remove ThreadSafe trait 2020-05-16 13:58:10 +03:00
Aviv Palivoda 804d9c5fab Mark PyClassMethod as ThreadSafe 2020-04-25 10:03:39 +03:00
Jeong YunWon 6ddb690e09 Remove _vm parameter when it is not required 2020-02-06 11:07:51 +09:00
Jeong YunWon 23381b9937 compatiibility for CPytthon descr_check 2020-02-06 03:42:01 +09:00
Jeong YunWon 7fd92fcc71 Py_TPFLAGS_BASETYPE 2020-01-30 16:32:09 +09:00
Jeong YunWon 80f3da92ee vm/src/slots.rs 2020-01-26 14:05:05 +09:00
coolreader18 538e492dda Add #[pyimpl(with(...))] 2020-01-14 23:56:21 -06:00
Jeong YunWon 1fe526bb66 hide member of classmethod 2020-01-15 11:51:29 +09:00
Jeong YunWon d31d0c6510 Merge pull request #1685 from youknowone/slot-name
pyslot guess slot name from function name
2020-01-15 11:51:16 +09:00
Jeong YunWon 8c7e01b4f6 pyslot guess slot name from function name 2020-01-15 10:28:39 +09:00
Jeong YunWon 4c2e34a523 Use slot descriptor get if it exists 2020-01-14 15:37:26 +09:00
Jeong YunWon cdc39701d8 Add PyBuiltinDescriptor for descriptors 2020-01-14 15:37:15 +09:00
Jeong YunWon 6c0f852b62 Refactor pymethod return types to be smaller as possible 2019-10-11 03:27:23 +09:00
Noah d22cac2dd8 Rename new slots to tp_new 2019-09-29 23:14:37 -05:00
coolreader18 c46b5b50bd Fix weirdness with type.__new__()/type()/metaclass.__new__() 2019-09-29 23:14:31 -05:00
Windel Bouwman d06dec77ea Attempt to reduce the size of the pyobject.rs files by splitting out builtin types. 2019-08-14 19:08:47 +02:00
Jeong YunWon 7564833b6e Add classmethod.__func__ 2019-05-11 05:30:27 +09:00
Jeong YunWon b720681c7b PyClassImpl for PyClassMethod 2019-05-11 05:30:27 +09:00
ben d24dd170e9 Changes to RustPython to support importing and running unittest 2019-04-14 12:09:54 +12:00
ben c1d5ce715f Change isinstance/issubclass to accept PyClassRef instead of PyCObject.
Also changed PyValue::class to return a PyClassRef.
2019-03-23 19:32:31 +13:00
coolreader18 79666c255a Fix some issues wrt mutability 2019-03-22 07:24:06 -05:00
coolreader18 b0d8935731 Merge branch 'master' into coolreader18/immutable-vm-ref 2019-03-22 07:21:45 -05:00
coolreader18 a9051ab462 Convert all &mut VirtualMachine to &VirtualMachine 2019-03-22 01:48:14 -05:00
Adam Kelly 19fc202e1a Classmethod/staticmethod - rewrite using structs and new style methods. 2019-03-21 13:03:51 +00:00
Joey 7bfd2e6e84 Move function items out of pyobject module 2019-03-15 21:27:11 -07:00
Windel Bouwman c00d368448 Move classmethod and staticmethod to own files. Also use extend_class more. 2019-03-11 19:38:26 +01:00