Python Forum
Decypher complex (to me) statement
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Decypher complex (to me) statement
#3
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"].
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Decypher complex (to me) statement - by wavic - Jul-31-2018, 12:24 PM
RE: Decypher complex (to me) statement - by ichabod801 - Jul-31-2018, 12:51 PM
RE: Decypher complex (to me) statement - by buran - Jul-31-2018, 01:01 PM
RE: Decypher complex (to me) statement - by wavic - Jul-31-2018, 03:00 PM

Forum Jump:

User Panel Messages

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