Commit Graph

2768 Commits

Author SHA1 Message Date
yjhmelody
c007b14476 fix op 2019-09-18 14:15:20 +08:00
yjhmelody
d6c8064a7e fix O_RDONLY 2019-09-18 12:31:05 +08:00
yjhmelody
3f229f2e37 fix errors 2019-09-18 10:32:03 +08:00
yjhmelody
4a322b5129 remove O_RSYNC 2019-09-17 16:39:28 +08:00
yjhmelody
8ab84c270c fix errors about fmt and clippy 2019-09-17 16:11:34 +08:00
yjh
e926acd68a Merge branch 'master' into master 2019-09-17 15:57:26 +08:00
yjhmelody
0f62a47b7e update os.open 2019-09-17 15:53:36 +08:00
Noah
ff0b840469 Merge pull request #1375 from RustPython/coolreader18/distutils-module
Add distutils module and update os module, among others
2019-09-16 11:36:49 -05:00
Aviv Palivoda
da61926d2b Merge pull request #1339 from palaviv/bool-like
Add IntoPyBool
2019-09-16 19:29:02 +03:00
Noah
62a737ff42 Merge pull request #1376 from palaviv/into-py-float
Add IntoPyFloat
2019-09-16 10:28:57 -05:00
coolreader18
7bcc6d3383 Fix os_putenv 2019-09-15 22:55:39 -05:00
Noah
8c411bc2a4 Merge pull request #1381 from HyeockJinKim/range
Fixed calculation for range
2019-09-15 22:33:10 -05:00
coolreader18
a74b041014 Add distutils module and update os module, among others
CPython 3.6.0
2019-09-15 22:11:33 -05:00
HyeockJinKim
1e10eed7dc Fixed index calculation of slice for range
Fixed start, stop, and step calculation of slice
for range type

Fixes #1363
2019-09-16 01:23:40 +09:00
Aviv Palivoda
3dfb04e542 Merge pull request #1377 from RustPython/coolreader18/importlib-pathsep
Fix importlib path separators
2019-09-15 18:39:05 +03:00
Aviv Palivoda
85bf706436 Get class name directly 2019-09-15 18:34:02 +03:00
Aviv Palivoda
946c851dfa Change FALSE and TRUE of IntoPyBool to consts 2019-09-15 18:32:05 +03:00
HyeockJinKim
fcdb1b4715 Fixed get function for range
Fixed get function to use the length value
rather than the stop value
2019-09-15 23:26:35 +09:00
coolreader18
83db646ff4 Fix str.split's args 2019-09-15 00:16:43 -05:00
Aviv Palivoda
a5026eded0 Use IntoPyFloat in complex 2019-09-14 12:55:22 +03:00
Aviv Palivoda
6a6a10afa1 Use IntoPyFloat in math.rs 2019-09-14 12:50:58 +03:00
Aviv Palivoda
944c0ad485 Rename PyBoolLike to IntoPyBool 2019-09-14 10:55:42 +03:00
j30ng
d4e5d76441 Use into_ref_with_type() 2019-09-14 12:02:05 +09:00
j30ng
f920982755 Python 'None' Value -> Option 2019-09-14 11:52:56 +09:00
Noah
7fb4bf043a Fix importlib path separators 2019-09-13 11:44:02 -05:00
j30ng
708fd9bcfb Implement itertools.accumulate 2019-09-14 01:16:19 +09:00
Noah
9aaf887918 Merge pull request #1367 from j30ng/syntax-err-on-star
Return SyntaxError on Invalid Star Expression
2019-09-12 08:48:57 -05:00
j30ng
a5bea47bed Remove Enum Instruction::Unpack 2019-09-12 16:30:03 +09:00
HyeockJinKim
2f96995f30 Fix unsupported operand type of str problem
Modify panic! to Err for unsupported operand type of str problem

Fixes #1365
2019-09-12 06:52:13 +09:00
coolreader18
86103bfd01 Fix WASM 2019-09-10 23:17:50 -05:00
Noah
12b7fc7888 Merge pull request #1359 from RustPython/coolreader18/redox-rustyline
Use the rustyline prompt on redox
2019-09-10 21:56:56 -05:00
coolreader18
6a34a720e4 Update dependencies 2019-09-10 21:53:53 -05:00
coolreader18
2920c87a19 Fix more stuff on redox 2019-09-10 20:24:02 -05:00
coolreader18
5dd5b44b59 Use the rustyline prompt on redox 2019-09-10 18:01:21 -05:00
Jeong YunWon
65c90ab976 Merge pull request #1343 from vazrupe/add-framework-attr
Add framework attribute in sys module
2019-09-11 03:00:09 +09:00
HyeonGyu Lee (Vazrupe)
1be7cc6308 Add framework attribute in sys module
Fixes #1342
2019-09-10 20:16:11 +09:00
ChJR
da020293d2 Refactor boolval() 2019-09-08 18:19:52 +09:00
ChJR
21821b7a72 Throw ValueError when __len__() is a negative value 2019-09-08 17:42:02 +09:00
ChJR
7b980920b9 Check __bool__() returns only bool value 2019-09-08 17:37:57 +09:00
HyeockJinKim
d042ab2aa9 Clone other to prevent borrow error
Clone other to prevent borrow error
when self iadd to itself from list

Fixes #1351
2019-09-08 04:31:02 +09:00
isidentical
caa47221a2 macos fix 2019-09-07 03:48:00 +03:00
isidentical
f7d918afd8 add seek constants, resolves #1348 2019-09-07 03:16:10 +03:00
Windel Bouwman
c973ed8ca2 Merge pull request #1329 from palaviv/scope-linked-list
Use LinkedList in scope locals
2019-09-04 21:31:53 +02:00
Noah
5ae1fca0ec Improve UX on windows
Use the `dirs` crate to find the config dir on non-unix; fix warnings
2019-09-04 11:15:41 -05:00
Aviv Palivoda
7e25738a69 Change print flush arg to PyBoolLike 2019-09-04 19:03:49 +03:00
Windel Bouwman
a3081c5d7b Merge pull request #1336 from RustPython/comprehension-scope
Add symboltable scope for comprehensions.
2019-09-04 15:45:55 +02:00
Aviv Palivoda
29d9105ce1 Use extend_from_slice 2019-09-04 16:04:53 +03:00
Aviv Palivoda
e3166a106c Add PyBoolLike 2019-09-04 15:52:56 +03:00
Aviv Palivoda
42c4339729 Use get in store_cell 2019-09-04 14:50:30 +03:00
Aviv Palivoda
59884ef6f0 Change locals to Vec 2019-09-04 11:46:39 +03:00