ll of the different mathematical rules. Does anyone have a
better idea than parsing to compute an equation from a string
representation?
Thanks so much!
Brian Kazian
eval()
See: http://docs.python.org/lib/built-in-funcs.html#l2h-23
HTH,
--ag
--
Artie Gold -- Austin, Texas
http
27;:math.pow,'log':math.log},{'x':1,'y':2})
[No, you wouldn't want to write it that way; it's merely illustrating
what you can do without doing much.]
HTH,
--ag
[BTW -- cultural question: Do we top-post here?]
"Artie Gold" <[EMAIL PROTECTE
on for this?
Yup. ;-)
Numbers beginning with a `0' are in octal (base 8), so only the digits
`0' through `7' are valid.
HTH,
--ag
--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays
--
http://mail.python.org/mailman/listinfo/python-list
counter.put(i+1)
return i
[snip]
This is, of course dependent upon counter.get() being guaranteed to be
thread safe. (I haven't found anything in the docs specifically relating
to that. Perhaps it's implicit?)
Thanks,
--ag
--
Artie Gold -- Austin, Texas
http://it-matte
Leif K-Brooks wrote:
Artie Gold wrote:
Skip Montanaro wrote:
counter = Queue.Queue()
def f():
i = counter.get()
I think you need:
i = counter.get(True)
The default value for the "block" argument to Queue.get is True.
Right. I misparsed the entry in the doc
LAMBDA. But, despite of the PR value of anything with Guy
Steele's name associated with it, we think these features should
be cut from PLT Scheme v300.
[...]
The whole text seems to be a variant of
<http://www.artima.com/weblogs/viewpost.jsp?thread=98196>.
TschÃ,
Torsten.
Ya think? ;-)
-
(due to alignment.
'bh', a signed char followed by a short would look like:
bXhh -- or four bytes, but 'hb', a short followed by a signed char would be:
hhb (as `char' and its siblings have no alignment requirements)
HTH,
--ag
--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays
--
http://mail.python.org/mailman/listinfo/python-list
ing on windows 2k is fine.
>
> Thanks for any input.
>
> David
>
>
>
HTH,
--ag
--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays
--
http://mail.python.org/mailman/listinfo/python-list