Kadir Can Ozden
Kadir Can Ozden
## Summary When `worker.call()` raises `BrokenWorkerInterpreter`, the subinterpreter is in a broken state and can't handle further calls. However, the `finally` block in `run_sync()` unconditionally adds the worker back to...
The `_rest_of_line` regex uses the alternation `\r|\n|\r\n` to match line endings. Since regex engines try alternations left-to-right, `\r` is matched before `\r\n` ever gets a chance. On Windows-style `\r\n` endings,...
The `get` CLI command uses a truthiness check (`if stored_value:`) to determine whether a key was found. This fails for empty-string values, since `bool("") is False`. For example, given a...
The `Traceback.__init__` parameter `locals_overlow` is misspelled — it should be `locals_overflow`. This means constructing a `Traceback` directly with the correct keyword `locals_overflow=...` raises `TypeError: unexpected keyword argument`. The only way...
In `SignalRouter.dispatch()`, `set_result` is called on signal waiter futures without first checking whether the future is already done. If multiple signals in the same dispatch batch match the same waiter,...
The `request.id` property uses `if not self._id` to decide whether to generate/fetch the ID. This treats any falsy value (including `0`, `""`) as "not yet set," causing the ID to...
`validate_file()` calls `datetime.replace(tzinfo=timezone.utc)` to normalize tz-naive datetimes before comparing `last_modified` and `if_modified_since` timestamps. However, `datetime.replace()` returns a **new** datetime — it doesn't mutate in place. Since the return values aren't...
Fixes #1328. `ErrorTree` uses a `defaultdict(self.__class__)` for `_contents`, which means any `__getitem__` access on a missing key silently creates an empty entry. After that, `__iter__` and `__contains__` return incorrect results...
## Summary `retry_if_exception_message(message="")` incorrectly raises `TypeError` instead of creating a predicate that matches exceptions with empty string representations. ## The Bug The constructor uses Python truthiness checks (`if message`, `elif...
## Summary The emitter's `analyze_scalar` method has an off-by-one error that excludes U+10FFFF from the valid Unicode range, causing it to be treated as a "special character" and forcing double-quoted...