Seo Sanghyeon
433434a1bb
Fix rsplit
2019-05-21 23:01:04 +09:00
Windel Bouwman
c01a867da5
Merge pull request #974 from stwen77/add_int_to_bytes
...
Add to_bytes for int
2019-05-21 14:47:31 +02:00
Yonatan Goldschmidt
84684e5f7d
Don't use RefCell in tuple object
2019-05-19 23:57:32 +03:00
Yonatan Goldschmidt
802f07980e
Remove tuple handling from get_elements_cell
...
Like my HEAD, this shouldn't be allowed for a tuple (and the
only call-site of this function doesn't run on tuples anyway).
2019-05-19 23:01:10 +03:00
Yonatan Goldschmidt
9ad527c800
Remove tuple handling from get_mut_elements
...
This function is unused anyway; But even was it used, it makes no sense
to return mutable references to tuple items, when the tuple holding them
is immutable.
2019-05-19 23:01:05 +03:00
Ben Lewis
964256439b
Update vm/src/obj/objnamespace.rs
...
Co-Authored-By: coolreader18 <33094578+coolreader18@users.noreply.github.com >
2019-05-19 15:25:52 +12:00
ben
60c9d5004a
Add SimpleNamespace and sys.implementation
2019-05-19 15:01:22 +12:00
coolreader18
8359c6e031
Merge pull request #983 from ypyf/type_new
...
improve error message for type_new
2019-05-18 17:12:43 -05:00
coolreader18
9888d27e61
Merge pull request #981 from youknowone/frexp
...
Add math.frexp
2019-05-16 21:37:34 -05:00
coolreader18
23344ddf8a
Merge pull request #982 from youknowone/float-fromhex
...
Add float.fromhex float.hex
2019-05-16 21:33:40 -05:00
Jeong YunWon
ca912a168d
Add float.to_hex
2019-05-17 03:24:31 +09:00
Jeong YunWon
ceca2ed98e
Add float.fromhex
2019-05-17 02:35:39 +09:00
Jeong YunWon
d223af645b
Add math.frexp
2019-05-17 01:12:43 +09:00
ypyf
83c5a3d330
improve error message for type_new
2019-05-16 20:35:40 +08:00
Jeong YunWon
87fc4cc470
Add complex.__hash__
2019-05-16 06:21:33 +09:00
Shitong Wen
68a1a9f648
add to_bytes for int
2019-05-14 16:56:50 +08:00
Adam
2c747168de
Merge pull request #926 from youknowone/number-hashes
...
Fix number hashes for small numbers
2019-05-13 09:02:19 +01:00
Jeong YunWon
64afd5ccf8
Add os.supports_* placeholders
2019-05-13 01:15:19 +09:00
Jeong YunWon
c768b25673
Refine hash types and refactor hash impl
2019-05-13 01:10:52 +09:00
Jeong YunWon
3bebe44896
Fix int.__hash__
2019-05-13 01:09:51 +09:00
Jeong YunWon
2c77dc208f
Add float.__hash__
2019-05-13 01:09:51 +09:00
Windel Bouwman
95a894a443
Merge pull request #954 from youknowone/property-kwargs
...
Fix property to take keyword arguments
2019-05-12 16:15:01 +02:00
Windel Bouwman
e1416f5ecc
Merge pull request #967 from skinny121/str_xwith_tuple_arg
...
Accept tuple for first arg in str.startswith and str.endswith
2019-05-12 16:13:25 +02:00
Windel Bouwman
878cc3b120
Merge pull request #943 from Furyzer0/master
...
[WIP] implement str.translate and str.maketrans
2019-05-12 15:04:31 +02:00
Windel Bouwman
b5140a9924
Merge pull request #953 from youknowone/classmethod-func
...
Add classmethod.__func__
2019-05-12 12:53:26 +02:00
zer0
04c017d268
unit testing for str.maketrans
2019-05-12 12:47:23 +03:00
ben
90711f10a0
Accept tuple for first arg in str.startswith and str.endswith
2019-05-12 13:14:27 +12:00
zer0
764215151d
more idiomatic code
2019-05-12 00:40:43 +03:00
zer0
b94923314d
removed import warning
2019-05-12 00:00:21 +03:00
zer0
268cb8d217
fix str.maketrans 2 and 3 arguments cases
2019-05-11 23:58:42 +03:00
Jeong YunWon
c0f14eace3
Fix str.isidentifier() and add tests snippets
2019-05-11 14:30:47 +09:00
zer0
6e05795521
added str.maketrans
2019-05-11 01:03:22 +03:00
Jeong YunWon
268164e957
Fix property to take keyword arguments
2019-05-11 06:03:53 +09:00
Jeong YunWon
eab5d42ee6
Adapt PyClassImpl for PyProperty
2019-05-11 06:03:45 +09:00
zer0
b15a584168
added small test to snippets
2019-05-10 23:47:11 +03:00
zer0
2f253ca054
cargo fmt
2019-05-10 23:31:11 +03: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
coolreader18
0a683f2be6
Merge pull request #946 from stwen77/fix_floor_div
...
fix floor div for int
2019-05-10 08:25:24 -05:00
Shitong Wen
50c119a503
fix floor div for int
2019-05-10 14:21:09 +08:00
Y. Sapir
32950bd0bc
Implement bytearray.reverse
2019-05-10 00:33:14 +03:00
Y. Sapir
e5bae56ccb
Implement bytearray.remove
2019-05-10 00:33:14 +03:00
Y. Sapir
43cd50270f
Implement bytearray.insert
2019-05-10 00:33:14 +03:00
Y. Sapir
485ffa01a2
Implement bytearray.extend
2019-05-10 00:33:14 +03:00
Y. Sapir
04ce9ea185
Implement bytearray.copy
2019-05-10 00:33:12 +03:00
Y. Sapir
87844ff434
Implement bytes.__mul__ and __rmul__
2019-05-09 23:51:20 +03:00
Y. Sapir
94d1b6585c
Implement bytearray.__mul__, __imul__ and __rmul__
2019-05-09 23:50:20 +03:00
zer0
59ae590771
formatting
2019-05-09 17:09:38 +03:00
zer0
3196b6be73
added str.translate
2019-05-09 16:59:40 +03:00
Shitong Wen
86fcc97730
int_from_bytes
2019-05-09 20:06:28 +08:00