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
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
Maxim Kurnikov
b5352da2c0
fix formatting
2019-05-22 03:30:30 +03:00
Maxim Kurnikov
0098e8485a
move PyFuncArgs.kwargs to IndexMap
2019-05-22 03:18:15 +03:00
coolreader18
9ff9404ec8
Merge pull request #992 from sanxiyn/fix-rsplit
...
Fix rsplit
2019-05-21 09:48:14 -05:00
Seo Sanghyeon
433434a1bb
Fix rsplit
2019-05-21 23:01:04 +09:00
Windel Bouwman
5ff766adb6
Merge pull request #976 from sanxiyn/pwd
...
Implement pwd module
2019-05-21 14:49:30 +02: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
Windel Bouwman
002140ad69
Merge pull request #991 from Jongy/tuple-remove-refcell
...
Remove RefCell from tuple
2019-05-21 14:46:20 +02:00
Yonatan Goldschmidt
84684e5f7d
Don't use RefCell in tuple object
2019-05-19 23:57:32 +03:00
coolreader18
1ea0192ea3
Merge pull request #986 from Jongy/itertools-chain
...
Add `itertools.chain`
2019-05-19 15:30:07 -05:00
coolreader18
347d9e7510
Merge pull request #985 from RobertBerglund/exit
...
Add exit/quit builtin function
2019-05-19 15:24:34 -05: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
Yonatan Goldschmidt
9bf386ea87
Add itertools.chain
2019-05-19 22:33:47 +03:00
coolreader18
bb14858f03
Merge branch 'master' of github.com:RustPython/RustPython
2019-05-19 14:05:23 -05:00
coolreader18
0cb1b73714
Merge branch 'palaviv-move-fspath'
2019-05-19 14:05:13 -05:00
coolreader18
8f8194ae13
Fix os.rs
2019-05-19 14:05:09 -05:00
coolreader18
0c19cf0d25
Merge branch 'move-fspath' of https://github.com/palaviv/RustPython into palaviv-move-fspath
2019-05-19 14:03:20 -05:00
coolreader18
297e507197
Merge pull request #990 from skinny121/simple_namespace
...
Add SimpleNamespace and sys.implementation
2019-05-19 14:02:24 -05:00
coolreader18
4ada5bf530
Merge pull request #972 from sanxiyn/re-escape
...
Implement re.escape
2019-05-19 13:20:22 -05:00
Adrian Wielgosik
1e7fa52e0f
Fix no-arg dir(), convert it to new args style
2019-05-19 12:27:08 +02:00
Seo Sanghyeon
347d1fd240
Enable pwd module only on Unix
2019-05-19 13:16:37 +09:00
Seo Sanghyeon
36412c57a4
Implement pwd module
2019-05-19 12:52:38 +09:00
coolreader18
a967171ed9
Merge pull request #989 from sanxiyn/update-rustyline
...
Update rustyline to 4.1.0 to fix nightly build
2019-05-18 22:35:37 -05: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
Seo Sanghyeon
b9814ce3c7
Update rustyline to 4.1.0 to fix nightly build
2019-05-19 12:00:36 +09:00
rbrtberglund
bb93977a7e
applied suggestions to improve exit function implementation
2019-05-19 00:42:55 +02: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
b5fa32ec95
Merge pull request #987 from Jongy/itertools-starmap
...
Add `itertools.starmap`
2019-05-18 16:31:58 -05:00
Yonatan Goldschmidt
7f310bd81f
Add itertools.starmap
2019-05-18 23:53:40 +03:00
rbrtberglund
cb0367e708
Add exit/quit builtin function
2019-05-18 16:14:43 +02:00