[Python-ideas] Re: Implementing a 'but' statement in for-iterations

2021-06-28 Thread Johnathan Irvin
What do we gain from this? Three characters. I'm not sure how useful this would be. On Mon, Jun 28, 2021, 9:29 PM David Mertz wrote: > Umm?! > > items = (j for j in range(10) if j not in {2, 8}) > > We don't need a new keyword. Nor a tortured use of an old one. > > On Mon, Jun 28, 2021, 8:46 P

[Python-ideas] Re: Define functions without parentheses (if no parameters given)

2021-06-11 Thread Johnathan Irvin
non sequitur Route functions as seen in flask or fastapi. These functions are often decorated by a route, and may not apply here but are often found with routes that return a page that doesn't take parameters such as a home page or a contact page. On Thu, Jun 10, 2021, 10:30 PM Cameron Simpson