Комментарии:
thank youuu!! i needed this for advent of code this year, super helpful :)
ОтветитьPerhaps a video about PEP 634? Would love to hear your thoughts about it.
ОтветитьSometimes I need to split using no_args_split AND some other symbol. I wish there was an easy way to do that! So most of the time I end up using re.split. :(
Ответитьwouldn't split_like_no_args give wrong results if we had 4 or 6 spaces at the end of the string? because in that case you get 2 or 3 empty strings in your split result list.
Ответить