50 Commits

Author SHA1 Message Date
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
Jeong YunWon
4506e21af9 Merge pull request #2092 from youknowone/small-fix
Small edits
2020-08-10 01:53:41 +09:00
Jeong YunWon
7f3fa70d10 clean up PyComplex 2020-08-09 21:46:16 +09:00
Jeong YunWon
efa8d62309 Move more funcitons into float_ops 2020-08-09 18:58:38 +09:00
hyperbora
e7eab050f4 Fix problems with different hash values for str and bytes 2020-08-09 16:09:46 +09:00
Ben Lewis
dc994e3c6f Accept array as byte like/buffer. 2020-08-08 08:50:40 +12:00
Jeong YunWon
bc8a0b9f6e DictKey for str shares same hash with PyString 2020-08-06 17:11:47 +09:00
Jeong YunWon
67b5d61d1f Refactor DictKey 2020-08-04 02:12:56 +09:00
Jeong YunWon
8ea113608b zfill to common 2020-07-27 08:29:18 +09:00
Jeong YunWon
2d01cffbf9 common::str::get_chars with test 2020-07-27 08:29:15 +09:00
Noah
ab232e6cd8 Use lexical-core instead of lexical 2020-07-26 15:21:38 -05:00
Noah
3647568ac5 Make threading optional 2020-07-25 15:22:03 -04:00
Noah
39303f0567 Transition more files to use PyMutex/PyRwLock 2020-07-25 15:22:03 -04:00
Noah
16ff022014 Add the rustpython_common::{cell, rc} modules 2020-07-25 15:22:03 -04:00
Noah
0251f3e9a2 Move pyhash and some float ops to rustpython-common 2020-07-25 15:22:00 -04:00