What's Changed
- Add the statistics module by @prpercival in #1277
- Fix CI on Rust 1.100 by @rewitt94 in #1318
- Support w+b mode with positional filesystem writes by @tomhoule in #1261
- Reject ASTs too deep to drop instead of overflowing the stack by @cetra3 in #1324
- Add UTF-8 string access benchmarks by @jaheba in #1306
- Skip grpcio on free-threaded CI instead of pinning ubuntu-24.04 by @rewitt94 in #1322
- ci: use ubuntu 24.04 for i686 docker, bump arm images by @davidhewitt in #1327
- Bump black from 26.5.1 to 26.10.1 by @dependabot[bot] in #1334
- Bump opentelemetry-api from 1.41.1 to 1.45.2 by @dependabot[bot] in #1333
- ci: add more dependabot jobs, apply grouping by @davidhewitt in #1335
- Unify string operations on PyStr by @davidhewitt in #1325
- Bump the github-actions group with 9 updates by @dependabot[bot] in #1337
- Implement int.bit_length() and int.bit_count() by @gabrielhsc95 in #1326
- Share guarded dict/set copies and avoid redundant dict work by @jaheba in #1268
- Expose csv.version = '1.0' by @gabrielhsc95 in #1342
- Expose the slice.indices(length) method by @gabrielhsc95 in #1323
- Bump the rust group with 45 updates by @dependabot[bot] in #1340
- drop support for EOL Python 3.10 by @davidhewitt in #1343
- Support
from m import *by @r3v2d0g in #1314 - clean up some duplicate / redundant dependencies by @davidhewitt in #1346
- Decode unknown wire exception names as
Exceptionby @samuelcolvin in #1312 - Bump pillow from 12.3.0 to 13.0.0 by @dependabot[bot] in #1349
- drop EOL node 20, build with node 26 by @davidhewitt in #1345
- bump PyO3 to 0.30, jiter to 0.19 by @davidhewitt in #1348
- Bump urllib3 from 2.7.0 to 2.8.0 by @dependabot[bot] in #1353
- Bump anyio from 4.13.0 to 4.14.2 by @dependabot[bot] in #1352
- Fix Decimal quotient finalization and boolean tuple digits by @jaheba in #1354
- Bump the rust group across 1 directory with 9 updates by @dependabot[bot] in #1356
- Bump the javascript group across 2 directories with 24 updates by @dependabot[bot] in #1338
- Bump source-map-js from 1.2.1 to 1.2.2 in /crates/monty-js by @dependabot[bot] in #1358
- Bump shell-quote from 1.10.0 to 1.12.0 in /crates/monty-js by @dependabot[bot] in #1357
- perf: fast-path scalar arithmetic, comparisons, and common builtin operations by @gabrielhsc95 in #1255
- add contributing guide by @davidhewitt in #1365
- ci: try to simplify PGO builds by @davidhewitt in #1368
- Support bytes(iterable) constructor by @gabrielhsc95 in #1341
- Types refactor and inheritance by @samuelcolvin in #1264
- Let browser consumers apply Trusted Types to Monty workers by @petyosi in #1375
- Match CPython's set element and dict key hashing errors by @r3v2d0g in #1311
- Round floats to ndigits from their exact value, like CPython by @monperrus in #1378
- Decode sandbox namedtuples to one shared MontyNamedTuple class by @r3v2d0g in #1308
- Make class proxies hashable and compare them as the sandbox does by @r3v2d0g in #1310
- Use compensated summation for floats in sum() by @teddytennant in #1386
- remove postcard, make
idcalculations explicit and stable by @davidhewitt in #1369 - perf: systematic FromArgs and FromValue argument extraction optimizations by @gabrielhsc95 in #1372
- Fix float round precision without intermediate rounding by @GoldArowana in #1077
- Preflight JSON integer indentation allocations by @xixi-box in #1367
- Compute heap string character counts lazily by @jaheba in #1249
- clarify dump compatibility policy by @davidhewitt in #1336
- Add
typing.cast,assert_typeandassert_neverby @prpercival in #1273 - clean up agent instructions, clarify rules on limit accounting by @davidhewitt in #1392
- Bound hash-collision cost when decoding dict and set keys by @r3v2d0g in #1309
- switch from
chronotojiffby @davidhewitt in #1370 - Add
PoolConfig::prewarm_type_checkerby @rewitt94 in #1134 - Send trace context per turn and per suspension by @samuelcolvin in #1398
- Keep pre-warmed workers ready:
pre_warmby @samuelcolvin in #1397 - Bump version to v1.7.0-beta.1 by @samuelcolvin in #1402
- Speed up Unicode string offset conversion by @jaheba in #1315
- Name the called function in
**duplicate-keyword errors by @shobhitagnihotri69 in #1410 - Fix class-body comprehension scope by @simonyang08 in #769
- Implement as_integer_ratio() and is_integer() on float, int, and bool by @gabrielhsc95 in #1404
- Disallow 'await' outside async functions and lambdas by @gabrielhsc95 in #1291
- test(browser): tolerate worker crash error message on component init failure by @gabrielhsc95 in #1395
- Fix math.atanh near -1 by @lmtlssss in #1401
- Add date.toordinal(), date.fromordinal(), datetime.toordinal(), and datetime.fromordinal() by @gabrielhsc95 in #1271
- Check str case methods and re.escape against max_memory by @KarmanyaIyer in #1389
- Add support for wasm64-unknown-unknown by @madsmtm in #1399
- Implement pure Path properties: drive, root, anchor, is_reserved, and match by @gabrielhsc95 in #1316
- Vendor CPython stdlib modules as Python source (#1275, step 1) by @r3v2d0g in #1298
- Share element access for lists and tuples by @jaheba in #1411
- avoid building runtime for lint job by @davidhewitt in #1412
- try to simplify async semantics by @davidhewitt in #1379
- make iteration suspendable by @davidhewitt in #1384
- Build musl npm packages by @tekumara in #801
- Implement bytes.maketrans() and bytes.translate() by @gabrielhsc95 in #1406
- Implement float.hex() and float.fromhex() by @gabrielhsc95 in #1407
- Add asyncio.Task, create_task and asyncio.wait by @julius-de-b in #1241
- Retry temporary remote checkout refusals once by @strawgate in #1400
- Trace dump and restore at the pool API boundary by @strawgate in #1388
- Build MontyNamedTuple in monty-proto by @rewitt94 in #1417
- release: 1.7.0 by @davidhewitt in #1419
New Contributors
- @prpercival made their first contribution in #1277
- @cetra3 made their first contribution in #1324
- @monperrus made their first contribution in #1378
- @teddytennant made their first contribution in #1386
- @xixi-box made their first contribution in #1367
- @shobhitagnihotri69 made their first contribution in #1410
- @simonyang08 made their first contribution in #769
- @lmtlssss made their first contribution in #1401
- @KarmanyaIyer made their first contribution in #1389
- @madsmtm made their first contribution in #1399
- @tekumara made their first contribution in #801
- @julius-de-b made their first contribution in #1241
Full Changelog: v1.6.0...v1.7.0