(Jul-31-2018, 12:51 PM)ichabod801 Wrote: Are you sure it isn't event_arr = [x for x in _485_trace.split(",") if x]
? As wavic says, split with a space will split where there is a space. However, there are no spaces in the sample input you gave. It seems like comma separated values, so I'd think you would pass a comma to split to get ["UC_COMMAND", "bOptionalArg1", "bOptionalArgN\n"].
I started to write more or less same question then I saw he uses b as a placeholder for blank:
(Jul-31-2018, 12:05 PM)PreservedKillich Wrote: 0 or more positive int arguments, separated by a comma and exactly one blank (b)
UC_COMMAND, OptionalArg1, OptionalArgN\n
So I guess they want to keep comma after the integer
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs