Commit Graph

4061 Commits

Author SHA1 Message Date
Noah
87f496ed3e Merge pull request #1399 from Riey/stdlib-os-symlink-windows
Fix os_symlink compile error on windows
2019-09-22 11:30:27 -05:00
Riey
6f12e35120 Fix os_symlink compile error 2019-09-22 18:08:54 +09:00
Noah
00a0e455f3 Merge pull request #1387 from RustPython/coolreader18/string-hash-field
Add a hash field to PyString á la CPython, make PyString.value private
2019-09-21 17:15:17 -05:00
Noah
f846cd7327 Fix failing socket test 2019-09-21 15:33:52 -05:00
Noah
c52677afb1 Merge pull request #1388 from RustPython/coolreader18/match_class-match-expr
Match an actual match expression in match_class!
2019-09-21 15:29:57 -05:00
Noah
63271dc42c Merge pull request #1392 from HyeockJinKim/issue1389
Fix __eq__ of range
2019-09-21 09:45:17 -05:00
Noah
c0a6f61272 Merge pull request #1393 from rls1004/issue1391
Fix the ValueError for whitespace in float()
2019-09-21 09:41:50 -05:00
MinJeong Kim
6e7e6ecfce Fix the ValueError for whitespace in float()
Ignore whitespace

Fixed: #1391
2019-09-20 18:21:15 +00:00
HyeockJinKim
38a815073c Add test for range __eq__ 2019-09-21 02:19:45 +09:00
HyeockJinKim
1ff88fb662 Fix __eq__ of range
__eq__ compare length, start, step of range

Fixes #1389
2019-09-21 01:10:02 +09:00
Noah
0def37d78e Make PyString.value private 2019-09-19 17:45:48 -05:00
Noah
481b3f505d Fix doc tests 2019-09-19 20:10:00 +00:00
Noah
a429b09a0b Allow match_class match expressions without parens around the target 2019-09-19 20:07:18 +00:00
Noah
dfeeda1c4c Match an actual match expression in match_class! 2019-09-19 18:27:34 +00:00
Noah
54cfb71d74 Add a lazily calculated hash field to PyString 2019-09-19 15:58:15 +00:00
Noah
59d4e4e7c1 Fix os_open 2019-09-18 11:43:22 -05:00
Noah
0280a1c83c Merge pull request #1227 from yjhmelody/master
Add unix constant for os module
2019-09-18 09:03:14 -05:00
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
Windel Bouwman
b2b02baad4 Merge pull request #1384 from tsvankay/float_repr
Fix __repr__ return value for -0.0
2019-09-17 19:54:53 +02:00
Windel Bouwman
c5d90ce0a1 Merge pull request #1355 from HyeockJinKim/issue1353
Fix global declaration error in the function
2019-09-17 19:53:47 +02:00
HyeockJinKim
6f50e4ad3e Add tests for global 2019-09-18 01:57:52 +09:00
HyeockJinKim
1b141f3022 Fix global declaration error in the function
Fix Global symbol to prevent syntax error
when global declaration for same variable in function.

Fixes #1353
2019-09-18 01:57:06 +09:00
tsvankay
5b2158ab18 fixed __repr__ return value for -0.0 2019-09-18 01:03:29 +09:00
Jeong YunWon
cb7f0f8ddb Merge pull request #1326 from youknowone/testutil
Refactor snippets/testutil to use single assert_raises implementation
2019-09-17 19:44:34 +09:00
Jeong YunWon
758073db07 Add _msg back to assert_raises 2019-09-17 18:52:16 +09:00
yjhmelody
4a322b5129 remove O_RSYNC 2019-09-17 16:39:28 +08:00
Jeong YunWon
dc8057a1c2 Refactor snippets/testutil 2019-09-17 17:37:24 +09:00
Jeong YunWon
be782f3a16 remove unused loop in macos 2019-09-17 17:36:13 +09: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
coolreader18
a878ffc678 Remove useless_const optimization
There could be jump depending on the Pop being there, and then it
breaks.
2019-09-17 08:04:11 +02:00
coolreader18
b71b4e6f14 Don't emit None, ReturnValue if the last statement in a function is a return 2019-09-17 08:04:11 +02:00
coolreader18
c09ad9a3a6 Add optimization to remove unused LoadConst operations 2019-09-17 08:04:11 +02:00
Jeong YunWon
4435c2345b Merge pull request #1383 from RustPython/coolreader18/language-stats
Fix Github language statistics to make this a Rust project again
2019-09-17 08:52:15 +09:00
Noah
25013169f7 Fix Github language statistics to make this a Rust project 2019-09-16 18:01:24 +00: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
c141e6d557 Add tests for range type 2019-09-16 01:23:57 +09: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