Commit Graph

5571 Commits

Author SHA1 Message Date
Noah
22c7d98209 Make the ssl module optional 2020-05-04 11:40:31 -05:00
Noah
fbf7a978b4 Merge pull request #1894 from RustPython/coolreader18/zlib-decompressobj
Add zlib.decompressobj()
2020-05-03 16:09:08 -05:00
Jeong YunWon
5b52bb8537 Merge pull request #1896 from mrmiywj/add_umask_support
Add umask support
2020-05-03 23:10:24 +09:00
mrmiywj
b286e5d4dd format 2020-05-02 23:11:11 -07:00
mrmiywj
fd0232d685 add umask support in os 2020-05-02 23:10:42 -07:00
Aviv Palivoda
57ebfdea43 Merge pull request #1892 from palaviv/threading-type
Make more objects ThreadSafe
2020-05-02 00:58:02 +03:00
Noah
130840c91c Add getters to zlib.Decompressor 2020-05-01 14:14:51 -05:00
Aviv Palivoda
bfd14b4712 Support multiple js functions 2020-05-01 20:15:59 +03:00
Jeong YunWon
46945c334c Merge pull request #1897 from youknowone/fix-bytes-find
Fix find/index/count not to crash for bigint start/end arguments
2020-05-01 00:51:23 +09:00
Noah
766a5986dd Merge pull request #1900 from Kienyew/fix-typo
Fix Sourcode
2020-04-30 10:03:44 -05:00
Kienyew
e3353aac4e Fix typo 2020-04-30 12:57:26 +08:00
Jeong YunWon
0c5d333cdb Merge pull request #1891 from RustPython/coolreader18/fix-codec-tests
Fix a few codecs tests
2020-04-30 03:58:33 +09:00
Jeong YunWon
3e6f18c38e Merge pull request #1898 from youknowone/cache-str-len
Cache str.len()
2020-04-30 03:55:02 +09:00
Noah
3937e846bd Merge pull request #1890 from RustPython/coolreader18/fix-int-tests
Fix a few int tests
2020-04-29 11:58:50 -05:00
Noah
aafbdd06b2 Allow struct.unpack to take a bytes 2020-04-29 11:58:19 -05:00
Noah
fca831480f Add seek/tell to some io classes 2020-04-29 11:58:19 -05:00
Noah
5ce321b647 Add zlib.decompressobj() 2020-04-29 11:58:16 -05:00
Jeong YunWon
5396053e39 Cache str.len()
Rust str is utf-8, so it doesn't match to CPython str very well.
Probably we would reimplement PyString as same as CPython, but this is a
temporal fix for easy speedup.

Before:
    $ time cargo run --release Lib/test/test_unicode.py
    13.56s user 0.16s system 88% cpu 15.487 total

After:
    $ time cargo run --release Lib/test/test_unicode.py
    10.02s user 0.10s system 88% cpu 11.448 total
2020-04-29 23:31:03 +09:00
Jeong YunWon
a115005c3d Fix find/index/count not to raise error for bigint start/end arguments 2020-04-29 23:07:12 +09:00
Jeong YunWon
8ca22df06b Merge pull request #1887 from youknowone/pystr-pad
Fix str.center & move pad methods into pystr
2020-04-29 19:15:39 +09:00
Aviv Palivoda
3eaa8307a1 Make mini_repl thread safe 2020-04-29 12:44:15 +03:00
Aviv Palivoda
7101a53879 Put JS_FUNC in thread local storage 2020-04-29 12:05:16 +03:00
Aviv Palivoda
832bff1cea Merge pull request #1895 from mrmiywj/remove_arg_check_in_thrading
remove arg_check macro in thread mod
2020-04-29 11:21:46 +03:00
Wenjie Yang
b81773d1d4 remove arg_check macro in thread mod 2020-04-28 23:45:36 -07:00
Jeong YunWon
6d43dc27d5 Merge pull request #1893 from mrmiywj/remove_arg_check
Remove arg_check! in tokenize
2020-04-29 14:31:49 +09:00
Wenjie Yang
6d5f4bdb11 Remove arg_check! in tokenize 2020-04-28 21:18:40 -07:00
Noah
dcbce354d5 Fix string repr in int invalid literal error 2020-04-28 13:35:28 -05:00
Jeong YunWon
a3eb9a33da pystr::get_chars 2020-04-29 03:05:01 +09:00
Jeong YunWon
5899348bdb fix replace in debug build 2020-04-29 03:05:01 +09:00
Jeong YunWon
ec00d727dd Fix str.center and all pad methods into pystr 2020-04-29 03:05:01 +09:00
Aviv Palivoda
d5d6603171 Mark PyZip as ThreadSafe 2020-04-28 20:38:45 +03:00
Aviv Palivoda
6dfe2f9f4d Mark PyWeakProxy,PyWeak as ThreadSafe 2020-04-28 20:38:45 +03:00
Aviv Palivoda
59197cd82b Mark PyTraceback as ThreadSafe 2020-04-28 20:38:45 +03:00
Aviv Palivoda
d827628531 Mark PySuper as ThreadSafe 2020-04-28 20:38:45 +03:00
Aviv Palivoda
54bd8ebea4 Mark PyMappingProxy as ThreadSafe 2020-04-28 20:38:45 +03:00
Aviv Palivoda
c30561a3d7 Make PyGetSet ThreadSafe 2020-04-28 20:38:45 +03:00
Aviv Palivoda
16887d3968 Make PyClass ThreadSafe 2020-04-28 20:38:45 +03:00
Aviv Palivoda
2ee1c391e0 Mark PyBuiltinFunction, PyBuiltinMethod as ThreadSafe 2020-04-28 20:36:24 +03:00
Aviv Palivoda
affac62bce Make PyNativeFunc Send + Sync 2020-04-28 20:36:24 +03:00
Aviv Palivoda
cef268916b Mark PyBoundMethod, PyFunction as ThreadSafe 2020-04-28 20:36:24 +03:00
Jeong YunWon
e8dfffa597 Merge pull request #1858 from youknowone/bytes-find
Fix bytes.{find,count} and simplify __contains__ implementation
2020-04-29 01:53:56 +09:00
Toan Phan
6266081d9a Add os.setreuid and os.setresuid methods 2020-04-28 13:35:57 +09:00
Noah
970fa4b035 Merge pull request #1888 from TheAnyKey/TheAnyKey/whats-left-fix
The any key/whats left fix
2020-04-27 18:18:58 -05:00
Noah
8a4af38f54 Unskip test_unicode.test_codecs_errors 2020-04-27 15:13:49 -05:00
Noah
5e3ca2b5c3 Fix some py2 errors in _codecs 2020-04-27 15:13:49 -05:00
Noah
5712857092 Fix some arguments for common functions in objfloat and objstr 2020-04-27 15:13:48 -05:00
Noah
92b5d2091d Unskip int test 2020-04-27 15:03:04 -05:00
Noah
e132e2f2e7 Fix int base-0 parsing 2020-04-27 15:03:04 -05:00
TheAnyKey
f343440ffd Added remark to set and export path to lib 2020-04-27 13:11:17 -04:00
TheAnyKey
0dd111a4ff wrapped module imports with exception handlers and report when importing fails 2020-04-27 13:08:33 -04:00