Python Forum
expressing data in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
expressing data in python
#8
(Jan-05-2020, 07:16 PM)perfringo Wrote: I have simple question: why?
why what?

originally i just wanted to make data, in a text-like form, look like python looks by doing nesting through indentation and having unindent be the end of nesting. i have been coding a lot stuff that does cloud API calls with so much similarity that i could express the many different calls by just different dictionaries used a as method keyword indexes. i started having lists of dictionaries and from there even more, all done through the same code making the actual call. while coding all this data, i realized my code was going back to having incremental symbol based unindenting. each list ends with ]. each dictionary ends with }. those have to be somewhere so it meant either a new line or appending everything to the last line of data.

then i noticed so many data lines ending ,. so i thought about removing those. that would have to be a totally new format.
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,968 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