Commit Graph

2975 Commits

Author SHA1 Message Date
Windel Bouwman
3f5bb517a5 Merge pull request #1001 from RustPython/coolreader18/rustpythonpath
Check RUSTPYTHONPATH as well as PYTHONPATH env variables
2019-05-30 09:53:05 +02:00
Windel Bouwman
22b4894ae6 Merge pull request #1006 from RustPython/coolreader18/weakproxy-setattr
Add __setattr__ to weakproxy
2019-05-30 09:47:01 +02:00
coolreader18
725a1e8434 Merge pull request #979 from youknowone/refactor-set
PySet/PyFrozenSet refactoring
2019-05-29 23:38:56 -05:00
coolreader18
1dc2d09713 Add __setattr__ to weakproxy 2019-05-29 22:46:12 -05:00
coolreader18
7ae33b72cb Merge pull request #1005 from Jongy/lib-reprlib
Lib reprlib
2019-05-29 22:08:57 -05:00
coolreader18
c78dc520ad Don't clone PathBufs 2019-05-29 16:53:13 -05:00
coolreader18
11892816a7 Don't check env variables on wasm 2019-05-29 16:38:04 -05:00
Yonatan Goldschmidt
7ec3cef48e Add Lib/reprlib.py from CPython
Generated with:
`git -C ../cpython show 1bf9cc509326bc42cd8cb1650eb9bf64550d817e:Lib/reprlib.py > Lib/reprlib.py`

Required for `functools`.
2019-05-30 00:15:11 +03:00
coolreader18
1846100e7f Merge pull request #969 from Jongy/itertools-islice
itertools islice
2019-05-29 16:08:48 -05:00
Yonatan Goldschmidt
80b1f545e2 Add itertools.islice 2019-05-29 23:25:49 +03:00
Windel Bouwman
d70caf7dea Merge pull request #960 from youknowone/sys-getfilesystemencode
Add sys.getfilesystemencoding, sys.getfilesystemencodeerrors
2019-05-29 15:21:19 +02:00
Windel Bouwman
121cd43932 Merge pull request #901 from youknowone/str-encode
Add str.encode for utf-8
2019-05-29 15:20:36 +02:00
Jeong YunWon
c349f77207 Add {set,frozenset}.__r*__ 2019-05-29 21:51:20 +09:00
Jeong YunWon
ba4ac902eb PySet/PyFrozenSet doesn't call PyObject::new 2019-05-29 21:51:20 +09:00
Jeong YunWon
979e1253ae Fix set/frozenset comparison 2019-05-29 21:51:20 +09:00
Jeong YunWon
31c88721e6 Refactor PySet with try_set_inner! 2019-05-29 21:51:20 +09:00
Jeong YunWon
89729c3155 PyClassImpl for PySet, PyFrozenSet 2019-05-29 21:51:20 +09:00
coolreader18
5bd36ad9c5 Merge pull request #927 from youknowone/set-collision
Fix set() hash collision
2019-05-29 07:44:31 -05:00
Jeong YunWon
59476c65bb PyBytes::from_string 2019-05-29 21:27:58 +09:00
Jeong YunWon
7f2560c9e1 Add str.encode for utf-8 2019-05-29 21:25:34 +09:00
jgirardet
ad357d08af normalize_encoding 2019-05-29 21:24:51 +09:00
Jeong YunWon
3675ce859a Add sys.getfilesystemencoding, sys.getfilesystemencodeerrors 2019-05-29 21:20:55 +09:00
Windel Bouwman
f113342c0c Merge pull request #1002 from RobertBerglund/bytearray.__setitem__
bytearray.__setitem__
2019-05-29 13:48:58 +02:00
rbrtberglund
eed9c44a74 improved PyByteInner.setitem 2019-05-29 00:02:58 +02:00
coolreader18
d2fdb3258a Merge branch 'master' into coolreader18/rustpythonpath 2019-05-28 16:25:47 -05:00
Windel Bouwman
d9be5aba35 Merge pull request #1004 from DanielShaulov/marshal_support
Add support for marshal with loads and dumps
2019-05-28 12:12:35 +02:00
rbrtberglund
9b4b2d7fa6 fixed SyntaxError: Got unexpected EOF in bytearray.py 2019-05-27 22:48:25 +02:00
rbrtberglund
7be801db2f implemented __setitem__ for bytearray 2019-05-27 22:22:20 +02:00
Daniel Shaulov
bd89c4e32b Reformat with rustfmt 2019-05-27 22:19:07 +03:00
Daniel Shaulov
b2f17a18ea Add support for marshal with loads and dumps 2019-05-27 22:09:47 +03:00
coolreader18
96df472d85 Merge pull request #999 from palaviv/_imp
Add _imp
2019-05-26 13:53:21 -05:00
Aviv Palivoda
042a673ea2 Use contains_key 2019-05-26 21:16:40 +03:00
coolreader18
770f54791e Fix ownership errors 2019-05-25 17:28:25 -05:00
coolreader18
017377061d Check RUSTPYTHONPATH as well as PYTHONPATH env variables 2019-05-25 15:52:44 -05:00
coolreader18
7ce111b16c Merge pull request #997 from ZapAnton/objstr_refactor_mul
objstr: Refactored the 'mul' method
2019-05-25 12:11:44 -05:00
coolreader18
d0d4cb56c5 Merge pull request #998 from palaviv/frozen
Support frozen modules
2019-05-25 12:10:11 -05:00
ZapAnton
a2e64c0425 objstr: Replaced the unwrap_or with the OverflowError 2019-05-25 16:38:51 +03:00
Aviv Palivoda
7a467781e2 Add _imp.is_builtin 2019-05-25 15:34:18 +03:00
Aviv Palivoda
8197b17c14 Add empty _imp locks methods 2019-05-25 15:07:51 +03:00
Aviv Palivoda
2c74d7cc12 Add _imp 2019-05-25 15:02:03 +03:00
Aviv Palivoda
f33d15ab6a Test frozen modules import 2019-05-25 11:15:17 +03:00
Aviv Palivoda
a38f205f0e Add support for frozen modules 2019-05-25 11:13:25 +03:00
ZapAnton
e38c54985e objstr: Replaced the if-else construct with the max function 2019-05-24 20:37:47 +03:00
ZapAnton
fedbd29051 objstr: Refactored the 'mul' method
- Used `str::repeat` instead of manually building the result string
- Rewritten the int type check to return error at the beginning of the
method
- Replaced the `unwrap` calls with the single `unwrap_or`
2019-05-24 13:01:15 +03:00
Windel Bouwman
606a336fdf Merge pull request #996 from palaviv/io-context
RawIOBase inherits IOBase
2019-05-24 11:03:13 +02:00
Aviv Palivoda
8afb6a201c RawIOBase inherits IOBase 2019-05-24 10:23:30 +03:00
Windel Bouwman
61e752e2b0 Merge pull request #994 from mkurnikov/simplify-with-cloned
Simplify PyFuncArgs get_kwarg/get_optional_kwarg with cloned()
2019-05-22 13:02:50 +02:00
Maxim Kurnikov
737ec52365 simplify PyFuncArgs get_kwarg/get_optional_kwarg with cloned() 2019-05-22 12:47:28 +03:00
Windel Bouwman
59fa46d5c3 Merge pull request #977 from adrian17/master
Fix no-arg dir(), convert it to new args style
2019-05-22 11:20:33 +02:00
Windel Bouwman
6b3b132343 Merge pull request #993 from mkurnikov/move-to-indexmap
Move PyFuncArgs.kwargs to IndexMap, implement PEP-468
2019-05-22 11:17:51 +02:00