On Thu, 05 Jul 2018 17:59:05 +1200, Gregory Ewing wrote:
> Steven D'Aprano wrote:
>> Not everything in Python uses a strict left-to-right reading order.
>> Just like English really.
>
> Well, English is read left to right, but it doesn't always mean things
> in the order it says them. :-)
"First
Steven D'Aprano wrote:
Not everything in Python uses a strict left-to-right reading order. Just
like English really.
Well, English is read left to right, but it doesn't always
mean things in the order it says them. :-)
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 04 Jul 2018 16:23:31 -0600, Ian Kelly wrote:
[...]
>> >> group = match.group(1) if match := re.match(data) else None
>>
>> There's no stopping some people from making poor naming choices. Surely
>> the standard name for match objects is "mo", not match?
>
> I was referring to the variable
On Wed, Jul 4, 2018 at 1:11 AM Steven D'Aprano
wrote:
>
> On Tue, 03 Jul 2018 23:05:01 -0600, Ian Kelly wrote:
>
> > Now that I've actually read the PEP (sorry, I just assumed it would
> > never fly), I have a couple of (tongue-in-cheek) observations about it:
> >
> >> group = re.match(data).group
On Wed, Jul 4, 2018 at 7:31 PM, Gregory Ewing
wrote:
> Ian Kelly wrote:
>>
>> I can't now write all my statements as:
>>
>> f(f := lambda f: do_something())
>
>
> No, but you should be able to do
>
>(f := lambda f: do_something())(f)
>
> although since you're binding f in a scope that can be s
Ian Kelly wrote:
I can't now write all my statements as:
f(f := lambda f: do_something())
No, but you should be able to do
(f := lambda f: do_something())(f)
although since you're binding f in a scope that can be seen
by the lambda, there's probably not much point in passing it,
you could
On Tue, 03 Jul 2018 23:05:01 -0600, Ian Kelly wrote:
> Now that I've actually read the PEP (sorry, I just assumed it would
> never fly), I have a couple of (tongue-in-cheek) observations about it:
>
>> group = re.match(data).group(1) if re.match(data) else None
>
> The only problem with this exa
Now that I've actually read the PEP (sorry, I just assumed it would
never fly), I have a couple of (tongue-in-cheek) observations about
it:
> group = re.match(data).group(1) if re.match(data) else None
The only problem with this example of doing more work to save a line
of code is that presumably
https://www.reddit.com/r/Python/comments/8vmq27/pep_572_assignment_expressions_is_officially/
XD nice feedbacks about the pep
Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ
On Wed, 4 Jul 2018, 06:02 Steven D'Aprano, <
steve+comp.lang.pyt...@pearwood.info> wrote:
> Congratulations to
On Wed, Jul 4, 2018 at 11:59 AM, Steven D'Aprano
wrote:
> Congratulations to Chris Angelico for breaking the dreaded "any PEP
> written by Chris will be rejected" curse :-)
I'm actually somewhat astonished at that part. But thanks anyway.
ChrisA
--
https://mail.python.org/mailman/listinfo/pytho
10 matches
Mail list logo