Hi
Seem to be having a bit of brainfreeze this evening.
Basically I'm reducing an array of prices like so:
>> subtotal = reduce(operator.add, itemprices)
This gives me a string of '86.00.00' which I am trying to use with decimal
objects. Python 2.4 is not particularly happy with this.
Addition
I've been having a few problems with connecting to SQL Server, initially I
was using dblib however found some problems with returning text fields
whereby all text fields were ignored and it bawked at multiline sql
statements.
Having found these major stumbling blocks I've started using pymssql wh
duct_code)
item_set.getItems()
self.products.extend(item_set.getItems())
except:
print 'problem occured:' + type + ':' + product_code
else:
pass
Bruno Desthuilliers-5 wrote:
>
> Mike Howarth a écrit
Thanks that makes absolute sense.
I was sure it was something simple, thanks for your time.
Bruno Desthuilliers-5 wrote:
>
> Mike Howarth a écrit :
>> Hi
>>
>> I was wondering whether anyone could help me, I'm pretty new to python
>> coming from a
Hi
I was wondering whether anyone could help me, I'm pretty new to python
coming from a PHP background and I'm having a few products in getting my
head round how to write the factory pattern within python.
I'm currently looking to try to return values from a db and load up the
relevant objects,