214 Commits

Author SHA1 Message Date
Noah
213c0d6bfe Turn hash() results of -1 into -2 2021-05-20 18:39:09 -05:00
Noah
27ee7e12bf Remove BorrowValue fully 2021-05-20 17:23:37 -05:00
Noah
c0f1da8d8f Make _codecs a native module 2021-05-18 23:43:13 -05:00
Noah
295613ecfe Fix tests 2021-05-13 20:05:17 -05:00
Noah
80e5c984f4 Implement TextIOWrapper.readline correctly 2021-05-13 19:46:17 -05:00
Noah
8d5588df67 Merge pull request #2532 from Pluriscient/documentation/common-start
Documentation of VM & Bytecode
2021-04-18 15:12:29 -05:00
Pluriscient
7881fb8547 Remove floating comment ufrexp 2021-04-15 14:56:39 +02:00
Eric van der Toorn
e1763fcb9d 'float' 2021-03-26 21:58:34 +01:00
Noah
1fff67db2c Correct float rounding algorithm 2021-03-25 08:06:58 -05:00
Noah
25ecd7c38b Upgrade dependencies 2021-03-25 08:06:56 -05:00
Noah
bdc01f0370 Fix bug for downgrading cell locks 2021-03-14 12:49:59 -05:00
Mark Umnus
6d663f4157 Fix formatting of decimal powers below 1 million
The previous implementation truncated even 10.0 to 1, because it cut away any
combination of trailing 0's and .'s.
2021-02-01 01:25:58 +01:00
Noah
36f525732e Use the which crate to figure out sys.executable 2021-01-29 00:46:17 -06:00
Noah
75f9ea2f29 Update rand deps, replace statrs with puruspe 2021-01-07 23:44:45 -06:00
Noah
8f536b986d Use boxvec for frame.stack 2020-12-21 18:48:56 -06:00
Noah
1ca5ca74dc Add common::BoxVec 2020-12-21 18:47:59 -06:00
Noah
5a56dd1a77 repr() functions with their names 2020-12-17 16:29:44 -06:00
Noah
f48e547981 Merge pull request #2316 from ChJR/feature/format_float
Unify float formatting
2020-11-21 17:40:46 -06:00
ChJR
3878e8ef49 Improve code quality 2020-11-22 03:32:46 +09:00
Noah
1c6d7711aa Fix clippy error with rust update 2020-11-20 23:10:43 -06:00
ChJR
f124ec8197 Fix more trailing zeros in general formatting of floating numbers 2020-11-20 03:19:28 +09:00
ChJR
0eba3ba80b Prevent stack overflow from format_general which is using precision 2020-11-20 02:43:56 +09:00
ChJR
8c892f21a2 Merge branch 'master' into feature/format_float 2020-11-19 23:22:33 +09:00
ChJR
cf2aa7448d Fix trailing zeros in general formatting of floating numbers 2020-11-19 23:21:40 +09:00
carbotaniuman
ace2cb8f2f Fix edge cases in mod and complex division 2020-11-11 14:33:07 -06:00
ChJR
213a335bcf Unify fixed-point format of floating numbers 2020-11-10 02:42:46 +09:00
ChJR
8c96bd680f Unify general format of floating numbers 2020-11-10 01:56:08 +09:00
ChJR
6ca53213e8 Fix a mistake 2020-11-10 01:48:43 +09:00
ChJR
e95469e1c5 Refine names for shorter code 2020-11-10 01:32:54 +09:00
ChJR
fdeb817e5d Merge branch 'develop' into feature/format_float
# Conflicts:
#	vm/src/cformat.rs
2020-11-10 01:27:50 +09:00
ChJR
db976ddc70 Clear up format_float_as_exponent 2020-11-10 00:57:32 +09:00
Noah
fce6e4c418 Fix cell_lock, remove the RwLock<BufferOptions> from bytearray 2020-11-08 15:01:46 -06:00
Noah
1d6b32ca98 Fix clippy/wasm errors 2020-11-06 17:37:50 -06:00
Noah
6ba5880b74 Add a PyThreadMutex lock type 2020-11-06 11:11:06 -06:00
ChJR
dc3a30066b Unify format_float_as_exponent to clarify 2020-10-31 22:58:46 +09:00
Noah
25a388cb70 Merge pull request #2309 from RustPython/coolreader18/math-fixes
Implement nextafter in Rust
2020-10-26 12:01:51 -05:00
coolreader18
4e05d7d3e6 Suppress clippy 2020-10-26 10:06:38 -05:00
Noah
72f8f20ab2 Move timing_safe_cmp to rustpython-common 2020-10-25 15:28:36 -05:00
Noah
e772b42f36 Fix a few math tests and implement nextafter in rust 2020-10-25 13:43:33 -05:00
Noah
275919694d Make StaticCell less complex to use 2020-10-22 14:06:05 -05:00
Jeong YunWon
5b32064cd6 trait StaticType 2020-10-20 01:43:39 +09:00
Jeong YunWon
19ed4f85e7 clean up vm::builtins 2020-10-13 15:42:11 +09:00
Noah
e2bc53f625 Merge pull request #2239 from RustPython/coolreader18/unified-common-locks
Unified lock types for rustpython_common
2020-10-07 19:36:06 -05:00
Jeong YunWon
3cd0a1118d Fix nightly clippy 2020-10-01 07:08:55 +09:00
Noah
dbbdd75b31 Rename rustpython_common::{cell -> lock} 2020-09-26 23:39:10 -05:00
Noah
e0c626fdaf Make the not(threading) PyMutex based on a custom RawMutex 2020-09-26 23:39:04 -05:00
Noah
7c2856d449 Make dict repr more efficient 2020-09-24 22:26:31 -05:00
Noah
9f0f08b597 Move BorrowValue to rustpython-common, add BorrowedValue enum 2020-09-21 13:18:32 -05:00
Noah
72123c65ec Use siphash24 + PYTHONHASHSEED 2020-08-27 20:47:47 -05:00
Ben Lewis
c773d9f214 Use OnceCell to hold the jitted code. 2020-08-25 07:16:58 +12:00