You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,8 @@
48
48
49
49
- The `map()` function now takes a positional-only argument, if you were using `receiver.map(call=fun)` you should replace it with `receiver.map(func)`.
50
50
51
+
*`SelectError` now inherits from `channels.Error` instead of `BaseException`, so you should be able to catch it with `except Exception:` or `except channels.Error:`.
52
+
51
53
*`Selected`
52
54
53
55
- The `value` property was renamed to `message`.
@@ -69,7 +71,6 @@
69
71
70
72
-`Selected`
71
73
-`SelectError`
72
-
-`SelectErrorGroup`
73
74
-`UnhandledSelectedError`
74
75
-`select`
75
76
-`selected_from`
@@ -108,6 +109,8 @@
108
109
109
110
This was removed alongside `Peekable` (it was only raised when using a `Receiver` that was converted into a `Peekable`).
110
111
112
+
*`SelectErrorGroup` was removed, a Python built-in `BaseExceptionGroup` is raised instead in case of unexpected errors while finalizing a `select()` loop, which will be automatically converted to a simple `ExceptionGroup` when no exception in the groups is a `BaseException`.
113
+
111
114
-`Timer`:
112
115
113
116
-`periodic()` and `timeout()`: The names proved to be too confusing, please use `Timer()` and pass a missing ticks policy explicitly instead. In general you can update your code by doing:
0 commit comments