Commit Graph

15844 Commits

Author SHA1 Message Date
Jeong, YunWon
578bc625fc Merge pull request #7106 from moreal/test_float
Update test_float from v3.14.3
2026-02-13 19:35:28 +09:00
Shahar Naveh
a058c4f73d Update ruff to 0.15.1 (#7105) 2026-02-13 19:34:49 +09:00
Shahar Naveh
d50cc5e842 Update pydoc.py from 3.14.3 (#7104) 2026-02-13 18:07:25 +09:00
ShaharNaveh
5124f8aca7 Mark failing test 2026-02-13 18:06:47 +09:00
ShaharNaveh
9d7387798c Update test_defaultdict.py from 3.14.3 2026-02-13 18:06:47 +09:00
Lee Dogeon
fb1514b6e8 Mark failing tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 18:05:39 +09:00
CPython Developers
18a264882b Update test_float from v3.14.3 2026-02-13 18:03:21 +09:00
Jeong, YunWon
743780f868 Merge pull request #7089 from youknowone/io
Update io from v3.14.3 and fix
2026-02-13 15:20:32 +09:00
Jeong, YunWon
718e74d5d4 Update scripts/update_lib/cmd_quick.py 2026-02-13 15:20:19 +09:00
Jeong, YunWon
8f0c6e9508 mark typing 2026-02-13 14:13:30 +09:00
Jeong, YunWon
18114a8b6e Fix BytesIO and add bytearray.resize
- Add bytearray.resize() method
- BytesIO: support keyword arg for initial_bytes
- BytesIO.seek: clamp negative positions to 0
- BytesIO.close: raise BufferError on active exports
- BytesIO.getbuffer: check closed state
- Set UnsupportedOperation.__module__ to "io"
2026-02-13 14:13:30 +09:00
CPython Developers
9924e2978a Update io from v3.14.3 2026-02-13 14:13:30 +09:00
Jeong, YunWon
190cecd7c8 [update_lib] _pyio deps 2026-02-13 14:00:00 +09:00
ShaharNaveh
96a78a9f43 Update test_long.py from 3.14.3 2026-02-13 13:55:05 +09:00
ShaharNaveh
e02e813bf8 Update _pylong.py from 3.14.3 2026-02-13 13:55:05 +09:00
ShaharNaveh
979b22f8d9 Update urllib from 3.14.3 2026-02-13 13:44:28 +09:00
ShaharNaveh
29133131fb Update test_functools.py from 3.14.3 2026-02-13 13:44:08 +09:00
ShaharNaveh
33921c2ac0 Update test_deque.py from 3.14.3 2026-02-13 13:43:46 +09:00
ShaharNaveh
8939cb059f Update test_future_stmt from 3.14.3 2026-02-13 13:43:29 +09:00
ShaharNaveh
44e1b22f4d Update test_positional_only_arg.py from 3.14.3 2026-02-13 13:43:18 +09:00
ShaharNaveh
87cf6848a5 Update test_funcattrs.py from 3.14.3 2026-02-13 13:43:04 +09:00
ShaharNaveh
4ab7c38c90 Update test_property.py from 3.14.3 2026-02-13 13:42:52 +09:00
ShaharNaveh
be43458579 Update test_sundry.py from 3.14.3 2026-02-13 13:42:38 +09:00
ShaharNaveh
d96c1f0a22 Update wave.py from 3.14.3 2026-02-13 13:42:22 +09:00
Jeong, YunWon
7f64acdd59 Merge pull request #7085 from youknowone/extcall
Fix dict unpacking order and improve error messages
2026-02-13 00:19:33 +09:00
Shahar Naveh
8459e9b053 fix miri ci (#7093) 2026-02-13 00:17:53 +09:00
Jeong, YunWon
8303c7a48b Add non-iterability guard, deduplicate dict flush and missing args format 2026-02-12 14:14:38 +09:00
Jeong, YunWon
cc8d9a2c53 Remove expectedFailure from test_bad_newobj_ex_args 2026-02-12 01:49:31 +09:00
Jeong, YunWon
542055580b fix 2026-02-12 01:01:35 +09:00
CPython Developers
b6d08fe371 Update test_unpack_ex from v3.14.2 2026-02-12 01:01:35 +09:00
CPython Developers
a144882948 Update test_extcall from v3.14.2 2026-02-12 01:01:35 +09:00
Jeong, YunWon
6e41e97468 Fix dict unpacking order and improve error messages
- Rewrite compile_dict to preserve insertion order with ** unpacking
- Fix function call error messages to include function name and
keyword-only argument counts
- Fix missing keyword-only argument error to list all missing args
- Fix starred expression error messages to match CPython
- Fix "cannot unpack non-iterable" error message
- Remove resolved expected failure markers in test_extcall and
test_unpack_ex
2026-02-12 01:01:35 +09:00
Jeong, YunWon
426019efc4 Fix annotation scope, deadlock, MRO, and HEAPTYPE issues (#7087)
* Fix annotation scope, deadlock, MRO, and HEAPTYPE issues

Annotation scope:
- Remove module-level annotation re-scan that created phantom
  sub_tables, breaking annotation closure for comprehensions
- Add async comprehension check in symbol table with
  is_in_async_context(); annotation/type-params scopes are
  always non-async
- Save/restore CompileContext in enter/exit_annotation_scope
  to reset in_async_scope

Deadlock prevention:
- Fix TypeVar/ParamSpec/TypeVarTuple __default__ and
  evaluate_default by cloning lock contents before acquiring
  a second lock or calling Python

Other fixes:
- Add HEAPTYPE flag to Generic for correct pickle behavior
- Guard heaptype_ext access in name_inner/set___name__/
  set___qualname__ with safe checks instead of unwrap
- Fix MRO error message to include base class names
- Add "format" to varnames in TypeAlias annotation scopes
- Fix single-element tuple repr to include trailing comma

* Unmark failing markers
2026-02-12 00:30:18 +09:00
Shahar Naveh
151a11ec36 Update ruff to 0.15.0 (#7086) 2026-02-12 00:11:11 +09:00
Jeong, YunWon
ba6d7b5404 Unmark failing markers 2026-02-11 18:38:10 +09:00
Jeong, YunWon
34180d8248 Fix annotation scope, deadlock, MRO, and HEAPTYPE issues
Annotation scope:
- Remove module-level annotation re-scan that created phantom
  sub_tables, breaking annotation closure for comprehensions
- Add async comprehension check in symbol table with
  is_in_async_context(); annotation/type-params scopes are
  always non-async
- Save/restore CompileContext in enter/exit_annotation_scope
  to reset in_async_scope

Deadlock prevention:
- Fix TypeVar/ParamSpec/TypeVarTuple __default__ and
  evaluate_default by cloning lock contents before acquiring
  a second lock or calling Python

Other fixes:
- Add HEAPTYPE flag to Generic for correct pickle behavior
- Guard heaptype_ext access in name_inner/set___name__/
  set___qualname__ with safe checks instead of unwrap
- Fix MRO error message to include base class names
- Add "format" to varnames in TypeAlias annotation scopes
- Fix single-element tuple repr to include trailing comma
2026-02-11 18:37:42 +09:00
Jeong, YunWon
0d1115464a Merge pull request #7078 from youknowone/typing
Implement more typing
2026-02-11 18:33:26 +09:00
Jeong, YunWon
bc35aa8f01 Merge pull request #7073 from youknowone/time
update test_time and implement more time module
2026-02-11 18:29:35 +09:00
ShaharNaveh
a9c98d2666 Update statistics.py from 3.14.3 2026-02-11 18:01:41 +09:00
Jeong, YunWon
fa59402def Merge pull request #7067 from youknowone/doctest
Update doctest,test_generators from v3.14.2 and fix generator bugs
2026-02-11 17:49:59 +09:00
Copilot
a9995a7d61 Sync test_abstract_numbers with CPython v3.14.3 (#7080) 2026-02-11 17:42:16 +09:00
Shahar Naveh
c904a91bef Update test_tabnanny.py from 3.14.3 (#7083) 2026-02-11 17:41:57 +09:00
Jeong, YunWon
5242dd42e1 Rename constevaluator_alloc to const_evaluator_alloc, add to cspell dict 2026-02-11 17:00:30 +09:00
Jeong, YunWon
6a6e3755c7 Propagate can_see_class_scope to annotation scopes in type param blocks
Annotation scopes now inherit can_see_class_scope from parent scopes
(not just direct Class parents), allowing annotations in generic
methods inside classes to access class variables via __classdict__.

Remove 3 expectedFailure markers from test_type_params.
2026-02-11 17:00:30 +09:00
Jeong, YunWon
c91f27c2fa Fix nonlocal type param check, __class_getitem__, __set_name__ note, sre module names
- Reject nonlocal binding for type parameters in symboltable
- Enable __class_getitem__ on memoryview, Template, Interpolation
- Fix __set_name__ error note to quote attribute name
- Set re.Match and re.Pattern module to "re" instead of "_sre"
- Migrate parking_lot::Mutex to PyMutex in typevar.rs
- Collapse nested if-let chains in typing_type_repr (clippy)
- Remove 5 expectedFailure markers from test files
2026-02-11 17:00:29 +09:00
Jeong, YunWon
d1e81225bc Add _ConstEvaluator, evaluate_* getters, format validation
- Implement _ConstEvaluator type in _typing module with STRING
  format support via typing_type_repr (port of _Py_typing_type_repr)
- Add evaluate_bound, evaluate_constraints, evaluate_default
  pygetset properties to TypeVar, ParamSpec, TypeVarTuple
- Emit format validation in evaluator scopes
  (compile_type_param_bound_or_default, TypeAlias value scopes)
  so evaluators raise NotImplementedError for unsupported formats
- Add non-default-after-default SyntaxError in scan_type_params
- Fix ParamSpec default_value to use Mutex for proper caching
- Fix TypeVar constructor: evaluate_constraints set to None
  instead of constraints tuple for eager-constructed TypeVars
- Pass format=1 (FORMAT_VALUE) to all lazy evaluator calls
- Remove 6 expectedFailure markers from test_type_params
2026-02-11 16:59:33 +09:00
CPython Developers
c4f23295bf Update test_time from v3.14.3 2026-02-11 16:57:51 +09:00
Shahar Naveh
a41d4c5029 Updated libs status show datetime utc (#7082) 2026-02-11 16:57:36 +09:00
Jeong, YunWon
d55a2261fa Use libc time functions on unix for time module
- Replace chrono-based gmtime/localtime/mktime/strftime/asctime/ctime
  with direct libc calls (gmtime_r, localtime_r, mktime, strftime)
  on unix, keeping chrono as fallback for non-unix platforms
- Add checked_tm_from_struct_time for struct_time field validation
- Accept None in gmtime/localtime/ctime (OptionalArg<Option<>>)
- Fix StructTimeData field order: tm_zone before tm_gmtoff
- Fix PyStructTime slot_new to accept optional dict argument
2026-02-11 16:54:13 +09:00
Jeong, YunWon
ad6e965ad3 apply tests 2026-02-11 16:50:23 +09:00