Skip to content

Commit 1eee97a

Browse files
committed
RFC 15: code that 'stops working' in fact never worked at all
1 parent 7d509f7 commit 1eee97a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

text/0000-lifting-shape-castables.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,6 @@ This RFC brings the semantics of `Signal` to be very close to semantics of typed
7878
* How does this interact with typechecking?
7979
* This is a straightforward higher order function so it's probably fine.
8080

81-
* Code like this stops working and it's not clear how to replace it:
82-
83-
```python
84-
class RGBLayout(data.View):
85-
def __init__(self, target=None, *, r_bits, g_bits, b_bits, **kwargs):
86-
super().__init__(data.StructLayout({
87-
"red": unsigned(r_bits),
88-
"green": unsigned(g_bits),
89-
"blue": unsigned(b_bits)
90-
}, target, **kwargs))
91-
92-
def brightness(self):
93-
return (self.red + self.green + self.blue)[-8:]
94-
```
95-
9681
## Future possibilities
9782
[future-possibilities]: #future-possibilities
9883

0 commit comments

Comments
 (0)