Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
White Space Help
#10
all the operating systems i know break up the arguments from a command and pass just the parts to the program.  so for a program named foo when you type in the command foo abc xyz the program named foo is given the command line arguments as abc and xyz.  if you type it in like   foo    abc      xyz   it still gets the same thing.  to get the exact characters the way they were typed in, the program would have to dig around inside the operating system for it.  while that could be done in Microsoft DOS and early IBM mainframes, newer, more secure operating systems don't let programs have that access in most cases. as described above, when you want spaces to be given to a program, put quotes around each argument and put the spaces you want the program to get inside the quotes like foo "abc  " "  xyz".  you can give it all spaces like foo "      " or even an empty string like foo "".  in most cases you can use either double quotes or single quote (just end each string with the same kind of quote).
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
White Space Help - by JayMan - Dec-25-2017, 02:39 AM
RE: White Space Help - by metulburr - Dec-25-2017, 02:55 AM
RE: White Space Help - by JayMan - Dec-25-2017, 05:20 AM
RE: White Space Help - by Terafy - Dec-25-2017, 10:36 AM
RE: White Space Help - by JayMan - Dec-25-2017, 05:11 PM
RE: White Space Help - by stranac - Dec-25-2017, 06:18 PM
RE: White Space Help - by JayMan - Dec-25-2017, 06:55 PM
RE: White Space Help - by wavic - Dec-25-2017, 08:53 PM
RE: White Space Help - by Terafy - Dec-25-2017, 11:04 PM
RE: White Space Help - by Skaperen - Dec-26-2017, 02:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  identify not white pixels in bmp flash77 17 2,589 Nov-10-2023, 09:21 PM
Last Post: flash77
  from global space to local space Skaperen 4 2,343 Sep-08-2020, 04:59 PM
Last Post: Skaperen
  White spaces kdiba 1 1,993 Oct-08-2019, 06:52 PM
Last Post: Aurthor_King_of_the_Brittons
  including the white space parts in str.split() Skaperen 6 3,320 Jun-20-2019, 06:03 PM
Last Post: Skaperen
  replace white space with a string, is this pythonic? Skaperen 1 2,026 Jun-18-2019, 11:36 PM
Last Post: metulburr
  Because the emoji appears black and white at the exit ? nerd 3 5,634 Jan-28-2019, 11:34 PM
Last Post: nerd
  Python interface only black and white........ Wilson 3 6,193 Jul-15-2017, 01:20 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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