Python not that wierd
Steve Lamb
grey at despair.rpglink.com
Wed Aug 2 18:24:03 EDT 2000
On Wed, 2 Aug 2000 23:03:38 +0200, Alex Martelli <alex at magenta.com> wrote:
>matcher1=re.compile('foo').match
>matcher2=re.compile('^foo').search
>defined in the same place, and you can change them together if needed.
And do something twice!? ;)
>Original RQ did work in multiples of 5%, with 20-sided dice, but it
>was soon changed into 1%-granularity with 100-sided dice. That was
>around 1977, or maybe 1978, I'm not sure.
Well, I didn't mean round to the nearest 5%, I meant the nearest 1% which
happened to be 5% (4.8%).
> dice = sets['wod']()
>but you were really pretty close!
I love little tricks like that.
>OK. A sum of arbitrary dice would no doubt be slightly awkward to handle
>anyway -- syntax is easy, but then you have to apply it. Having more
>generality than is actually used is often fine, but simplicity must never
>be allowed to suffer for that...
One could always try to add another directive which lets people add a
series of dice rolls together. Hmmmm....
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
ICQ: 5107343 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
More information about the Python-list
mailing list