Commit Graph

3423 Commits

Author SHA1 Message Date
Jeong YunWon
ce32bc0ddf Fix int() error message to show correct input 2020-02-29 12:01:42 +09:00
Jeong YunWon
0eaf3731e9 memoryview/array support for int() 2020-02-29 11:32:29 +09:00
Jeong YunWon
33a053d308 bytearray support for int() 2020-02-29 11:32:27 +09:00
philippeitis
a6cc502fb9 Formatting. 2020-02-28 12:08:08 -08:00
philippeitis
294cbf1c7a Raise TypeError when kwargs are not dict. 2020-02-28 11:54:35 -08:00
Noah
f2dc9f906e Merge pull request #1774 from RustPython/coolreader18/_os-module-posix-nt
Change the name of the _os module to posix/nt
2020-02-28 07:06:05 -06:00
Jeong YunWon
341ba1e2f8 Reorder exceptions by exception_hierarachy.txt 2020-02-26 08:38:52 +00:00
Jeong YunWon
7bb530dd89 Fix exception repr 2020-02-26 08:15:29 +00:00
Jeong YunWon
378a36c7e1 Add missing exceptions 2020-02-26 08:15:21 +00:00
Noah
fa7524d0b9 Change the name of the _os module to posix/nt 2020-02-24 22:11:08 +00:00
Aviv Palivoda
f21e35c31a Merge pull request #1771 from palaviv/set-tests
Add CPython Set tests and support Args in methods
2020-02-22 10:01:02 +02:00
Noah
82d683730c Misc changes 2020-02-20 23:53:19 -06:00
Noah
7f6cdc68c4 Add struct.Struct.size property 2020-02-20 23:08:37 -06:00
Noah
0dcb4d4b2e Reorganize struct module, add struct.Struct 2020-02-20 22:33:25 -06:00
Jeong YunWon
9bbdbb6b3b Remove test warnings 2020-02-18 08:14:48 +00:00
Aviv Palivoda
34d8c44952 Support Args in set/frozenset methods 2020-02-16 20:32:50 +02:00
Noah
2b5e32aaab Make _random work on wasm 2020-02-14 10:49:53 -06:00
Do Nhat Minh
0c731e8a9b Add as_integer_ratio to PyInt 2020-02-11 16:01:22 -05:00
Aviv Palivoda
37fe20234d Merge pull request #1756 from minhnhdo/master
Add __pos__ to PyComplex
2020-02-10 19:13:11 +02:00
Do Nhat Minh
914454e4ba Add __pos__ to PyComplex 2020-02-10 11:23:50 -05:00
Aviv Palivoda
176fa581b6 Merge pull request #1722 from palaviv/os-uname
Change platform to CPython pure python platform
2020-02-10 18:14:58 +02:00
Jeong YunWon
8d7be94b03 PyBool 2020-02-07 11:56:31 +09:00
Aviv Palivoda
bbb04c3ded Use rust _platform to version 2020-02-06 21:53:31 +02:00
Aviv Palivoda
6660b64507 os.uname only on unix 2020-02-06 21:53:31 +02:00
Aviv Palivoda
7202ad303d make version less public 2020-02-06 21:53:31 +02:00
Aviv Palivoda
6f4437c592 Change version to RustPython 2020-02-06 21:53:31 +02:00
Aviv Palivoda
12f400483d Change to pure python platform 2020-02-06 21:53:31 +02:00
Aviv Palivoda
9792170e04 Add os.uname 2020-02-06 21:53:31 +02:00
Aviv Palivoda
2633f9f844 Add struct.calcsize 2020-02-06 21:21:44 +02:00
Jeong YunWon
67f072dbff Merge pull request #1749 from youknowone/_vm
Remove `_vm` parameter when it is not required
2020-02-06 20:33:43 +09:00
Jeong YunWon
92cb58b163 Remove _vm parameter - remove unused functions 2020-02-06 18:54:37 +09:00
Jeong YunWon
6ddb690e09 Remove _vm parameter when it is not required 2020-02-06 11:07:51 +09:00
Jeong YunWon
844b6395ce Fix SyntaxError initial value 2020-02-06 10:39:52 +09:00
Jeong YunWon
c0b235ed66 cleanup property and get descriptor codes 2020-02-06 03:56:40 +09:00
Jeong YunWon
58744df1d5 Revert 08e66b5002
which is not required anymore
2020-02-06 03:56:40 +09:00
Jeong YunWon
facabfee1a Remove PropertyBuilder and add new_getset 2020-02-06 03:45:19 +09:00
Jeong YunWon
0aee78de18 pyproperty generates PyGetSet instead of PyProperty 2020-02-06 03:42:05 +09:00
Jeong YunWon
23381b9937 compatiibility for CPytthon descr_check 2020-02-06 03:42:01 +09:00
Jeong YunWon
226a2a6cb9 VM polymorphism for getter and setter 2020-02-06 03:36:05 +09:00
Jeong YunWon
d1f9cb4e58 PySetResult and IntoPySetResult 2020-02-06 03:33:34 +09:00
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