Closed cviper13 closed 6 months ago
Shlex.split: >>> shlex.split("this is 'my string' that --has=arguments -or=something") ['this', 'is', 'my string', 'that', '--has=arguments', '-or=something']
>>> shlex.split("this is 'my string' that --has=arguments -or=something") ['this', 'is', 'my string', 'that', '--has=arguments', '-or=something']
Pythons own split: >>> "this is 'my string' that --has=arguments -or=something".split(" ") ['this', 'is', "'my", "string'", 'that', '--has=arguments', '-or=something']
>>> "this is 'my string' that --has=arguments -or=something".split(" ") ['this', 'is', "'my", "string'", 'that', '--has=arguments', '-or=something']
Basically shlex.split is better in my opinion also used by discord.py please fix if any errors i made.
Shlex.split:
>>> shlex.split("this is 'my string' that --has=arguments -or=something") ['this', 'is', 'my string', 'that', '--has=arguments', '-or=something']
Pythons own split:
>>> "this is 'my string' that --has=arguments -or=something".split(" ") ['this', 'is', "'my", "string'", 'that', '--has=arguments', '-or=something']
Basically shlex.split is better in my opinion also used by discord.py please fix if any errors i made.