A generator can be iterated once, and the second foreach over the same instance throws rather than returning nothing. Returning a generator from a method is therefore a…
Ignoring an error by matching its message couples the configuration to wording that changes between releases. reportUnmatchedIgnoredErrors is on by default and worth keeping on, because it turns…
yield from preserves the inner generator’s keys, which means two delegated generators both starting at zero produce duplicate keys. The keys are preserved because yield from is delegation…
String.replace with a string pattern replaces the first occurrence only, which is the most surprised anybody has been by a standard library method. Escaping user input to build…
3.2 in August makes the compiler macro stable. Every component ended with a return listing what it had just declared, and a compiler can work that out.
Every Composition API component ended with a return statement listing what it had just declared, which is information a compiler can work out. Every top-level binding is exposed…
A registered widget with no block equivalent renders inside a legacy widget block, which keeps it working and keeps it visible as unfinished. Hiding from the picker while…