Commit Graph

3601 Commits

Author SHA1 Message Date
Noah
90d184c1b3 Make objtuple use atomic types 2020-04-11 15:16:50 -05:00
Noah
0e55bc9821 Make PyObject.dict private and a Mutex; add some TODOs 2020-04-11 15:16:50 -05:00
Noah
a9e784c5ce Transition objstr to atomic types 2020-04-11 15:16:50 -05:00
Noah
8ed8dd9712 Add crossbeam-utils dependency 2020-04-11 15:16:48 -05:00
Jeong YunWon
8b23271800 Merge pull request #1852 from youknowone/bytes-strip
Fix {bytes|bytearray}.{|r|l}strip
2020-04-12 02:30:36 +09:00
Jeong YunWon
6e305c57d7 Merge pull request #1856 from youknowone/bytes-zfill
Fix bytes.zfill and integrate with str.zfill
2020-04-12 02:30:06 +09:00
Aviv Palivoda
559c596bcb Merge pull request #1859 from youknowone/strbytes-mul
Fix {str,bytes}.__mul__
2020-04-11 19:22:01 +03:00
Jeong YunWon
de6f2f9648 Use Vec::extend+std::iter::repeat rather than creating a byte slice
Co-Authored-By: Noah <33094578+coolreader18@users.noreply.github.com>
2020-04-12 00:22:41 +09:00
Jeong YunWon
ee0d6f69ac Merge pull request #1860 from palaviv/theading-mark
Make array and hashlib thread safe
2020-04-11 23:46:58 +09:00
Jeong YunWon
a12671d5e5 Merge pull request #1857 from youknowone/str-split
Fix str.split to raise empty seprator error
2020-04-11 23:38:24 +09:00
Jeong YunWon
f434898fa5 Fix bytes.zfill and integrate with str.zfill 2020-04-11 23:37:04 +09:00
Jeong YunWon
de8b32574a Merge pull request #1854 from youknowone/strbytes-iscased
Fix {bytes|bytearray}.{isascii,islower,isupper}
2020-04-11 23:24:10 +09:00
Jeong YunWon
97cdded44e Merge pull request #1853 from youknowone/bytes-overflow
Fix new bytes with overflow error
2020-04-11 23:23:41 +09:00
Jeong YunWon
b000b219fa Merge pull request #1851 from youknowone/fix-str-replace-negative
Fix str.replace negative value
2020-04-11 23:23:17 +09:00
Jeong YunWon
75ebaedaf1 Fix {bytes|bytearray}.{|r|l}strip 2020-04-11 22:22:33 +09:00
Jeong YunWon
fc2949c6fb Add bstr dependency 2020-04-11 22:20:38 +09:00
Aviv Palivoda
c8f4a91e3a Make PyHasher ThreadSafe 2020-04-11 15:39:59 +03:00
Aviv Palivoda
094fc9d8a8 Make PyArray ThreadSafe 2020-04-11 15:39:59 +03:00
Jeong YunWon
e57d4d3d7b Fix str.split to raise empty seprator error 2020-04-11 19:00:28 +09:00
Aviv Palivoda
e960c4dd3f Use utility functions 2020-04-11 12:26:13 +03:00
Aviv Palivoda
bcf875b5ca Make PyByteArray ThreadSafe 2020-04-11 12:26:13 +03:00
Aviv Palivoda
6e89c6e014 Mark PyByteInner and PyBytes as ThreadSafe 2020-04-11 12:24:09 +03:00
Aviv Palivoda
2c5237bec8 Mark PyComplex as ThreadSafe 2020-04-11 12:24:09 +03:00
Aviv Palivoda
cd42d04922 Mark PyFloat as ThreadSafe 2020-04-11 12:24:09 +03:00
Aviv Palivoda
ad883375d7 Mark PyInt as ThreadSafe 2020-04-11 12:24:09 +03:00
Aviv Palivoda
bcd518633a Add ThreadSafe trait 2020-04-11 12:24:09 +03:00
Jeong YunWon
203bbc9ceb Remove untriggable str.__mul__ exception branch 2020-04-11 11:43:44 +09:00
Jeong YunWon
0d0ad066e6 Fix bytes.__mul__ to raise OverflowError 2020-04-11 11:43:44 +09:00
Jeong YunWon
95e938cb9b Fix {str|bytes|bytearray}.{isascii,islower,isupper} 2020-04-11 11:01:05 +09:00
Jeong YunWon
aa36a944bf Fix new bytes with overflow error 2020-04-11 10:56:24 +09:00
Jeong YunWon
62febeb80c Fix str.replace negative value 2020-04-11 10:42:29 +09:00
Jeong YunWon
c7467e444d Merge pull request #1839 from RustPython/coolreader18/stdlib-json-py
Replace the json module with the Python implementation from CPython
2020-04-10 14:12:08 +09:00
Noah
9420622d6d Update chrono 2020-04-09 21:45:16 -05:00
Noah
3eb687d976 Merge pull request #1846 from RustPython/coolreader18/print-sys-stdout
Direct print() to sys.stdout
2020-04-08 13:29:35 -05:00
Noah
5e58b05a93 Fix subprocess.call 2020-04-08 12:16:19 -05:00
Noah
d5b0965479 Implement bytearray.decode 2020-04-08 12:16:19 -05:00
Noah
7ab9a641bc Remove the serde_json based json module, update tests 2020-04-08 12:16:19 -05:00
Noah
2cd42c58be Direct print() to sys.stdout 2020-04-08 12:10:00 -05:00
Noah
408032a015 Merge pull request #1842 from RustPython/coolreader18/callable-iter
Add iter(callable, sentinel)
2020-04-08 12:08:33 -05:00
Noah
fd3fcc2449 Add iter(callable, sentinel) 2020-04-08 10:10:56 -05:00
Jeong YunWon
e28ab72b4e Refactor and fix str/bytes count/find/index 2020-04-08 13:13:15 +09:00
Noah
f5de59a4bd Merge pull request #1834 from RustPython/coolreader18/jsontests
Add json output for CPython tests
2020-04-04 11:52:04 -05:00
Aviv Palivoda
b41943e080 Use vendored version of openssl 2020-04-04 13:49:07 +03:00
Noah
f33e2d3b39 Remove incognito from vm 2020-04-03 12:34:00 -05:00
Noah
be565d30ae Make incognito a CodeFlag bit 2020-04-03 12:34:00 -05:00
Noah
80f11466b3 Add "incognito" compilation 2020-04-03 12:34:00 -05:00
Noah
a104d43d7f Merge pull request #1811 from RustPython/coolreader18/typ-generic-pyobj
Make PyObject.typ a Rc<PyObject<PyClass>>
2020-04-03 12:20:37 -05:00
Noah
7143b93203 Rename into_generic_pyobj -> into_typed_pyobj 2020-04-03 11:43:07 -05:00
Jeong YunWon
a6b23129ea Merge pull request #1816 from RustPython/coolreader18/posonly-error
Error on positional-only parameters passed as keywords
2020-04-03 15:23:18 +09:00
Noah
652231a683 Error on positional-only parameters passed as keywords 2020-04-03 00:24:30 -05:00