Commit Graph

80 Commits

Author SHA1 Message Date
Jeong YunWon
44f7bc468a vm::utils::ascii! -> common::ascii! 2021-09-28 15:47:54 +09:00
Noa
20b86b2060 Implement ascii codec in Rust 2021-09-22 16:35:50 -05:00
Noa
d5272c9310 Merge pull request #3105 from youknowone/wchar-t
extract wchar_t definition to rustpython-common
2021-09-21 20:14:19 -05:00
Jeong YunWon
2952f6e7c6 extract wchar_t definition to rustpython-common 2021-09-22 03:30:41 +09:00
Codemonk-adi
a07d3432c1 Redid the commit cause I messed up 2021-09-21 21:58:51 +05:30
jfh
166e69e731 Use associated constants instead of module constants. 2021-09-11 16:29:06 +03:00
Tony Jinwoo Ahn
6e1c9c68b6 Fix range of "invalid start byte" for UTF-8
Signed-off-by: Tony Jinwoo Ahn <tony.jinwoo.ahn@gmail.com>
2021-09-04 21:09:52 +09:00
Padraic Fanning
f833ba6ed3 Update num_bigint to 0.4.2
Fixes a compilation error with the latest nightlies.
2021-09-03 18:53:23 -04:00
Noah
4de16f6955 Remove derive_more dep 2021-07-31 10:49:39 -05:00
jfh
2666e88d44 Allow specific instance of while let. 2021-07-29 23:35:16 +03:00
Jeong YunWon
ff4efd0f60 Fix unnessessary borrow 2021-07-30 02:32:16 +09:00
Noah
c5f11a7ef4 Merge pull request #2586 from RustPython/coolreader18/hash-neg1-to-neg2
Make PyStr.hash an AtomicI64
2021-05-22 12:31:49 -05:00
Noah
7172616881 Add AtomicBool and AtomicPtr for common::atomic 2021-05-22 10:40:47 -05:00
Noah
c1ae29e971 Fancy args structs for codec functions 2021-05-21 17:38:50 -05:00
Noah
d1a4812d3f Implement _codecs.utf_8_decode in rust 2021-05-20 20:36:04 -05:00
Noah
ab3537f9c9 Make PyStr.hash a AtomicI64 2021-05-20 18:41:13 -05:00
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