In fact, re.split with a grouped re is very much like Raymond's str.partition method without the guarantee of returning a three-element list.
Whoops... Should also have included the maxsplit=1 constraint. Skip _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com