Commit Graph

4576 Commits

Author SHA1 Message Date
Space0726
fbd727e769 Fix numactive to immutable and Cell type, clarify error handling 2019-11-26 18:24:35 +09:00
Space0726
af95003bb9 Fix code style by rustfmt 2019-11-24 03:44:38 +09:00
Space0726
994e86fa25 Implement itertools.zip_longest 2019-11-23 02:43:07 +09:00
Noah
389db55a3f Merge pull request #1603 from dralley/itertools
Add itertools.combinations()
2019-11-22 09:47:53 -06:00
Aviv Palivoda
aa1af71851 Merge pull request #1598 from palaviv/fix-exc-panic
Separate BaseException to __init__ and __new__
2019-11-22 16:27:38 +02:00
Aviv Palivoda
72e12b49aa Merge pull request #1602 from yanganto/syntaxerror-diagnostics
Provide caret diagnostics for SyntaxError
2019-11-22 12:36:30 +02:00
Daniel Alley
16b2b425b8 Add itertools.combinations()
re: #1361
2019-11-21 23:06:27 -05:00
yanganto
7f45ed3cca Provide caret diagnostics for SyntaxError
visualize syntax error with caret diagnostics in shell, eval, exec,
when the error statement and error location are provided.
2019-11-22 09:17:50 +08:00
Daniel Alley
53b391177b Alphabetize 2019-11-21 12:46:25 -05:00
Noah
7c52a822b7 Merge pull request #1601 from yanganto/bytearray.mod
Implement bytearray.mod
2019-11-21 00:01:37 -06:00
yanganto
07ff469161 Implement bytearray.mod
Implement bytearray formatting with CFormat
2019-11-20 12:11:14 +08:00
Noah
8267ea4624 Merge pull request #1599 from RustPython/coolreader18/asyncio-pre
Prerequisites for asyncio
2019-11-19 10:50:22 -06:00
Aviv Palivoda
637d678ad7 Print less in PyBaseException Debug 2019-11-19 18:32:27 +02:00
Aviv Palivoda
f4a8427dc9 Move args to PyBaseException 2019-11-19 18:23:14 +02:00
Aviv Palivoda
c15140e0fe Move with_traceback 2019-11-19 18:23:14 +02:00
Aviv Palivoda
144a4728f0 Move BaseException propeties to PyBaseException 2019-11-19 18:23:14 +02:00
Aviv Palivoda
96fdaab0c1 Separate BaseException to __init__ and __new__ 2019-11-19 18:23:14 +02:00
Noah
576d89fdcf Merge pull request #1563 from yanganto/byte.mod
bytes.mod implement with CFormat
2019-11-18 08:49:14 -06:00
yanganto
10ef5e56af bytes.mod implement mod
implement byte formatting with CFormat
2019-11-18 08:39:36 +08:00
coolreader18
7c3340b6b1 Add object.__dict__ = ... test 2019-11-17 17:09:48 -06:00
coolreader18
f7831491c5 Add stub implementation of atexit 2019-11-17 17:09:38 -06:00
coolreader18
ae0a343906 Add stub _winapi module 2019-11-17 17:09:13 -06:00
coolreader18
bed54e035c Add some constants to native modules 2019-11-16 22:58:51 -06:00
coolreader18
5ca0e9a927 Add more IO exceptions 2019-11-16 22:57:49 -06:00
coolreader18
e612c0d7ab Add the errno::errors module 2019-11-16 22:57:49 -06:00
coolreader18
edb84896bf Make PyObject.dict an Option<RefCell<PyDictRef>> 2019-11-16 22:50:58 -06:00
Aviv Palivoda
2124dd0b6d Merge pull request #1595 from Blanen/master
Colosys.py from the cpython standard lib
2019-11-15 15:34:39 +02:00
Bart Lanen
2921b306e1 colosys.py from the cpython standard lib 2019-11-15 11:16:43 +01:00
Noah
28dfe957d4 Merge pull request #1489 from tcmal/master
Implement .indices(len) of slice
2019-11-13 10:14:25 -06:00
Noah
0449b2a091 Merge pull request #1593 from RustPython/coolreader18/raw-byte-lit-fix
Fix raw byte literals
2019-11-11 17:11:29 -06:00
coolreader18
583b5ff379 Fix select test on windows 2019-11-11 15:31:14 -06:00
Aviv Palivoda
3b2cea5935 Merge pull request #1589 from Writtic/writtic/module_remainder
Update remainder module of math
2019-11-11 23:05:55 +02:00
coolreader18
1fcdbf74bc Fix raw byte literals 2019-11-11 14:57:27 -06:00
writtic
ed075cf71c Update remainder module of math
- Implement remainder function with test case
  - math.remainder was added to CPython in 3.7 and RustPython CI runs on 3.6
2019-11-11 22:27:46 +09:00
Jeong YunWon
40c86613f7 Merge pull request #1592 from cjdrake/master
Fix spelling
2019-11-11 15:54:08 +09:00
Chris Drake
614ba32137 Fix spelling
Change "libarary" to "library".
2019-11-09 19:24:07 -08:00
Noah
9a9e0dcaeb Merge pull request #1591 from palaviv/MaybeUninit
Change mem::uninitialized to mem::MaybeUninit
2019-11-09 13:31:33 -06:00
Aviv Palivoda
721305911f Use MaybeUninit::uninit().assume_init() 2019-11-09 09:44:54 +02:00
Aviv Palivoda
98d11f2ba9 Apply clippy suggestions 2019-11-08 23:07:35 +02:00
Aviv Palivoda
aebc0a42d8 Update format to Rust version 1.39 2019-11-08 23:03:24 +02:00
Aviv Palivoda
b1b028e4bd Change mem::uninitialized to mem::MaybeUninit 2019-11-08 22:58:27 +02:00
Noah
b5a18fa908 Merge pull request #1542 from RustPython/coolreader18/asyncawait
Make async def/await actually functional
2019-11-07 22:19:21 -06:00
Noah
c7702bd6db Merge pull request #1582 from palaviv/method-doc
Return function attributes in method
2019-11-07 22:14:34 -06:00
Aviv Palivoda
153ce3f3d7 Merge pull request #1581 from Writtic/writtic/improve_fromhex
Improve float.fromhex module representation case
2019-11-07 20:19:28 +02:00
Noah
6ed5045809 Add a CompileContext 2019-11-07 00:04:51 -06:00
coolreader18
6bc33fbca2 Add async for 2019-11-07 00:04:51 -06:00
Noah
960e8def4a Deduplicate async/normal with compilation code 2019-11-07 00:04:51 -06:00
coolreader18
30a2223c6f Fix tests 2019-11-07 00:04:51 -06:00
coolreader18
fe2946bc79 Add tests 2019-11-07 00:04:51 -06:00
coolreader18
5c26a25522 Add async with, reorganize how with blocks work 2019-11-07 00:04:51 -06:00