Commit Graph

3383 Commits

Author SHA1 Message Date
Jeong YunWon
ca557788c8 &self support for getter/setter 2020-02-06 01:47:53 +09:00
Jeong YunWon
c3d5f6c145 IntoPyGetterFunc, IntoPySetterFunc 2020-02-06 01:46:00 +09:00
Jeong YunWon
9f5cd17f2b Add getset_descriptor 2020-02-06 01:23:39 +09:00
Jeong YunWon
7d0d313aa5 &str::to_string -> &str::to_owned for variables 2020-02-05 22:55:34 +09:00
Jeong YunWon
1bac582921 &str::to_string -> &str::to_owned for literals 2020-02-05 22:55:33 +09:00
Noah
c435ba05ab Merge pull request #1731 from RustPython/feature/implement-random
Implement _random.Random
2020-02-05 07:39:27 -06:00
Noah
3595f4e1a4 Merge pull request #1730 from youknowone/type-error
Fix type() error message and BaseException.__str__
2020-02-03 19:28:25 -06:00
Noah
e46d38e6ea Merge pull request #1733 from youknowone/py-base-object
PyBaseObject
2020-02-03 19:15:35 -06:00
Noah
9abb258849 Fix clippy warnings 2020-02-03 18:38:19 -06:00
Noah
a762bf89d9 Move gen_res53 to mersenne.rs 2020-02-03 18:27:35 -06:00
Noah
a20b6bfaaa Implement _random using the MT19937 algorithm 2020-02-03 18:21:51 -06:00
malkoG
8a3fb408dc Implement random module 2020-02-03 18:21:37 -06:00
Jeong YunWon
1c2b01f894 parse_number can raise error about length 2020-02-01 21:29:01 +09:00
Jeong YunWon
3e56b3f284 PyBaseObject 2020-02-01 16:56:12 +09:00
Aviv Palivoda
9c12b95cf4 Support timeout in Popen.communicate 2020-02-01 09:54:05 +02:00
Jeong YunWon
c366c2074c Fix type() error message and BaseException.__str__ 2020-02-01 13:23:32 +09:00
Jeong YunWon
7cdaba75ab Merge pull request #1726 from youknowone/calltype-ex
Fix bytecode::CallType::Ex to raise non-str type error
2020-02-01 12:32:51 +09:00
Jeong YunWon
fc0c8fd59a Fix int.from_bytes type 2020-02-01 02:54:57 +09:00
Jeong YunWon
2a47785e6a Fix bytecode::CallType::Ex to raise non-str type error 2020-02-01 01:12:21 +09:00
Noah
ee354baf22 Merge pull request #1687 from RustPython/coolreader18/purge-ub
Purge all UB from init_type_hierarchy
2020-01-30 13:41:01 -08:00
Aviv Palivoda
3fb6fb8706 Merge pull request #1718 from youknowone/macos-whence
cleanup unused import warning for macOS
2020-01-30 15:23:53 +02:00
Aviv Palivoda
acc47ee31c Merge pull request #1717 from palaviv/dict_iterator-repr
Add repr for dict_keys, dict_values and dict_items
2020-01-30 14:45:23 +02:00
Jeong YunWon
24304a9f24 cleanup unused import warning for macOS 2020-01-30 21:14:54 +09:00
Aviv Palivoda
d1b7d658bc Fix clippy warning 2020-01-30 13:35:01 +02:00
Aviv Palivoda
9685b77cf3 Add repr for dict_keys, dict_values and dict_items 2020-01-30 12:28:14 +02:00
Jeong YunWon
7fd92fcc71 Py_TPFLAGS_BASETYPE 2020-01-30 16:32:09 +09:00
Jeong YunWon
869645203d cpython compatible type_new 2020-01-29 21:30:33 +09:00
Jeong YunWon
1ecc8228d9 PySlots::flags 2020-01-29 21:30:33 +09:00
Jeong YunWon
b2ba6b2013 objtype::class_*_attr into PyClassRef methods 2020-01-29 21:30:33 +09:00
Jeong YunWon
ad2d82c66f cleanup objtype 2020-01-29 21:30:33 +09:00
coolreader18
ff97ac5133 Fix subprocess test and byte{s,array}.{,l,r}strip 2020-01-28 11:33:11 -06:00
Noah
e6a431ad22 Merge pull request #1676 from youknowone/fix-cpytest
Fix test_bool::test_sane_len
2020-01-27 18:24:40 -08:00
Noah
ac4af12320 Merge pull request #1700 from palaviv/github-actions
GitHub actions
2020-01-27 16:22:54 -08:00
Daniel Alley
4e2afe7937 Remove wtf8 dependency 2020-01-27 08:35:58 -05:00
Noah
dc98ea671e Merge pull request #1711 from dralley/once-cell
Replace lazy_static! macro with once_cell
2020-01-27 05:33:27 -08:00
Daniel Alley
e5cac96511 Replace lazy_static! macro with once_cell 2020-01-27 01:05:53 -05:00
Jeong YunWon
bebfb67842 Use vm.invoke instead of calling __call__ 2020-01-26 19:30:58 +09:00
Jeong YunWon
eea157c2f0 Refactor PyWeak to use PyBuiltinCallable 2020-01-26 14:39:27 +09:00
Jeong YunWon
80f3da92ee vm/src/slots.rs 2020-01-26 14:05:05 +09:00
Jeong YunWon
e2e5c7ab00 Add PyBuiltinCallable and call slot 2020-01-26 14:04:44 +09:00
Jeong YunWon
d7085db17d Merge pull request #1689 from youknowone/pymethod-magic
#[pymethod(magic)]: pyname as __{sig.ident}__ form
2020-01-26 12:04:39 +09:00
Noah
bc121d791a Merge pull request #1682 from RustPython/coolreader18/compare_digest
Add _operator._compare_digest
2020-01-25 12:20:08 -06:00
Jeong YunWon
106c8111c1 Fix test_bool::test_sane_len 2020-01-26 02:50:06 +09:00
Jeong YunWon
d5367d1761 #[pymethod(magic)]: pyname as __{sig.ident}__ form 2020-01-26 02:48:43 +09:00
Aviv Palivoda
fbb96c5494 Fix os.symlink on windows 2020-01-25 19:25:56 +02:00
Jeong YunWon
c1143743cd Merge pull request #1701 from youknowone/comparison
Fix comparison operator
2020-01-26 01:45:36 +09:00
Jeong YunWon
3698d0e438 Fix comparison operator 2020-01-26 01:18:51 +09:00
Aviv Palivoda
d2a3ff8096 Fix clippy warning 2020-01-25 10:32:46 +02:00
Aviv Palivoda
8bf0d93bb2 Refactor string.splitlines 2020-01-24 22:53:44 +02:00
Aviv Palivoda
4a9e87b80d Support keepends in Str.splitlines 2020-01-24 12:58:51 +02:00