MCPcopy Index your code
hub / github.com/python/cpython / split

Function split

Lib/shlex.py:304–312  ·  view source on GitHub ↗

Split the string *s* using shell-like syntax.

(s, comments=False, posix=True)

Source from the content-addressed store, hash-verified

302 return token
303
304def split(s, comments=False, posix=True):
305 """Split the string *s* using shell-like syntax."""
306 if s is None:
307 raise ValueError("s argument must not be None")
308 lex = shlex(s, posix=posix)
309 lex.whitespace_split = True
310 if not comments:
311 lex.commenters = ''
312 return list(lex)
313
314
315def join(split_command):

Callers

nothing calls this directly

Calls 2

shlexClass · 0.85
listClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…