Re: libpython2.3.a Linux

2005-05-22 Thread Artie Gold
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

Re: Problem with unpack hex to decimal

2005-04-17 Thread Artie Gold
(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

Re: Lambda: the Ultimate Design Flaw

2005-04-02 Thread Artie Gold
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? ;-) -

Re: Simple thread-safe counter?

2005-04-02 Thread Artie Gold
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

Re: Simple thread-safe counter?

2005-04-01 Thread Artie Gold
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

Re: Bug?

2005-03-13 Thread Artie Gold
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

Re: Turning String into Numerical Equation

2005-03-12 Thread Artie Gold
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

Re: Turning String into Numerical Equation

2005-03-12 Thread Artie Gold
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