Movatterモバイル変換
[0]ホーム
[Python-Dev] partition() (was: Remove str.find in 3.0?)
Antoine Pitrousolipsis at pitrou.net
Tue Aug 30 17:40:26 CEST 2005
> Neat!> +1 on regexps as an argument to partition().It sounds better to have a separate function and call it re.partition,doesn't it ?By the way, re.partition() is *really* useful compared to re.split()because with the latter you don't which string precisely matched thepattern (it isn't an issue with str.split() since matching is exact).RegardsAntoine.
More information about the Python-Devmailing list
[8]ページ先頭