Python Forum
Guido on Permanent Vacation from BDFL
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guido on Permanent Vacation from BDFL
#14
were people more upset over an assignment as an expression or the use of := which the lack of in Python was one of my many reasons for choosing Python?

(Jul-13-2018, 04:11 PM)micseydel Wrote:
(Jul-13-2018, 03:52 PM)nilamo Wrote: I looked at the pep, and was surprised that GvR was in support of it. I was under the impression that the rule about assignment not possible in expressions was one of his original purposes in Python, as having too many things in one line can get convoluted quickly.
Yeah, I was surprised too. I think having the assignment expression use a different operator from assignment statements helps, as do examples like this
if reductor := dispatch_table.get(cls):
    rv = reductor(x)
elif reductor := getattr(x, "__reduce_ex__", None):
    rv = reductor(4)
elif reductor := getattr(x, "__reduce__", None):
    rv = reductor()
else:
    raise Error("un(deep)copyable object of type %s" % cls)
it's probably := to make people want to avoid it. i know i will avoid it.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: Guido on Permanent Vacation from BDFL - by Skaperen - Jul-14-2018, 01:35 AM
Guido vab Rossum resigns - by wavic - Aug-05-2018, 02:13 PM
RE: Guido vab Rossum resigns - by Gribouillis - Aug-05-2018, 02:22 PM
RE: Guido vab Rossum resigns - by Larz60+ - Aug-05-2018, 03:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  invisible temporary files that become linked permanent Skaperen 0 965 Feb-21-2023, 12:22 AM
Last Post: Skaperen
  Microsoft Funds a Team with Guido van Rossum to Double the Speed of Python Larz60+ 0 1,536 May-20-2021, 11:48 PM
Last Post: Larz60+
  Guido van Rossum about starting contributing to CPython buran 0 2,355 Feb-18-2020, 04:44 PM
Last Post: buran
  Guido van Rossum Retires ichabod801 1 3,184 Oct-30-2019, 05:00 PM
Last Post: Larz60+
  MIT Interview with Guido Larz60+ 3 3,388 Nov-27-2018, 10:45 PM
Last Post: Larz60+
  Guido van Rossum does not care about the opinion of the community. Kirill_Dubovitskiy 12 8,255 Sep-14-2018, 06:33 PM
Last Post: micseydel
  Guido van Rossum: BDFL Python 3 retrospective snippsat 13 6,943 Mar-02-2018, 02:38 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020