Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
shortening Python code
#1
to what extent and how do you guys go about shortening your Python code to make it fit in an 80 column terminal or virtual terminal window? is anyone here (still) using some form of a hardware terminal? if you use a virtual terminal how wide do you configure it? do you ever use the side-by-side approach to comparing or referencing code such that each virtual terminal gets about half the real physical screen width.

i find that when i limit my code width to 80 columns (or less) i end up with too many cases of code split to the next line or overly shortened comments, making it harder (for me) to read.

i run virtual terminals at 137x37 (character geometry in my 1920x1080 pixels) full screen or 174x45 if i need to push it. then i try to limit the code to a width of 128.
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
shortening Python code - by Skaperen - Oct-13-2022, 11:42 PM
RE: shortening Python code - by Larz60+ - Oct-14-2022, 03:07 AM
RE: shortening Python code - by Gribouillis - Oct-14-2022, 04:50 AM
RE: shortening Python code - by DeaD_EyE - Oct-14-2022, 08:13 AM
RE: shortening Python code - by snippsat - Oct-14-2022, 11:41 AM
RE: shortening Python code - by Skaperen - Oct-14-2022, 10:49 PM
RE: shortening Python code - by ndc85430 - Oct-15-2022, 04:14 AM
RE: shortening Python code - by Skaperen - Oct-15-2022, 10:33 PM
RE: shortening Python code - by Gribouillis - Oct-15-2022, 02:53 PM
RE: shortening Python code - by Skaperen - Oct-15-2022, 10:23 PM
RE: shortening Python code - by ndc85430 - Oct-23-2022, 07:01 AM
RE: shortening Python code - by wavic - Oct-23-2022, 08:53 AM
RE: shortening Python code - by Skaperen - Oct-23-2022, 10:54 PM

Forum Jump:

User Panel Messages

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