You can never go down the drain...
Phlip
no at spam.com
Mon Sep 25 16:01:28 EDT 2000
Newsgroupies:
Warm up Python 1.6 or 2.0b, on Win2000 or Solaris, and shoot this at it:
import re
print re.sub('([a-z])([A-Z])', r'\1 \2', 'GoldMan')
The resulting CPU use profile would seem to indicate (by nature of its
continuous 100% flat line) that an infinite loop is underway.
Is this behavior by design? And how else might one split a word on its
embedded capitals?
--
Phlip
======= http://users.deltanet.com/~tegan/home.html =======
More information about the Python-list
mailing list