Python Forum
expressing data in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
expressing data in python
#1
i love how python syntax stays simple through many complicated nestings. that works for code but not for data. lists end with a ] and dictionaries end with a } even if the data is spread over multiple lines. i wish the ending could be made optional in multiline data where nested data is indented.

for example:
modes = {
    'r': 4,
    'w': 2,
    'x': 1,
names = [
    'foo',
    'bar',
and maybe the , is not needed in these cases, too.
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,939 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