Python Forum
expressing data in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
expressing data in python
#3
it could be an incremental change by being optional. i don't see any cases where leaving out the ending ] or } would present any meaning different than my suggestion. even leaving out the , at the end of a line presents no different meaning. it's either an error (no meaning at all) or it can be understood.

modes = {
    'r': 4
    'w': 2
    'x': 1
names = [
    'foo'
    'bar'
there is no ambiguity. what else can it mean? if we choose to let it have the one and only meaning it could have, how would it still not be python? of course it is a "major" change, so it cannot be part of python 3.x.

i could argue that f-strings should have been done in 4.0.
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
expressing data in python - by Skaperen - Jan-03-2020, 01:01 AM
RE: expressing data in python - by Gribouillis - Jan-03-2020, 08:12 AM
RE: expressing data in python - by Skaperen - Jan-03-2020, 06:21 PM
RE: expressing data in python - by Gribouillis - Jan-03-2020, 06:30 PM
RE: expressing data in python - by Skaperen - Jan-05-2020, 06:59 PM
RE: expressing data in python - by perfringo - Jan-05-2020, 07:16 PM
RE: expressing data in python - by Skaperen - Jan-07-2020, 02:59 AM
RE: expressing data in python - by nilamo - Jan-05-2020, 08:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  expressing an 8-bit ASCII code Skaperen 2 1,997 Jan-16-2020, 01:39 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