Re: Decimals

2006-06-13 Thread Tgone
Sybren Stuvel wrote: > Tgone enlightened us with: > > Sorry, when I print out the variable it displays as '15.0'. The > > price is '15.00' in the database though. > > That's the same thing, isn't it? 15.0 == 15.0 Yes, they're

Re: Decimals

2006-06-13 Thread Tgone
Laszlo Nagy wrote: > Tgone írta: > > Hello, > > > > I have a price column in a MySQL table: price decimal(5,2) > > > > When I access them in Python with SQLObject, prices display as 15.0 > > instead of 15.00. Why is this happening? I can't figure out

Decimals

2006-06-13 Thread Tgone
Hello, I have a price column in a MySQL table: price decimal(5,2) When I access them in Python with SQLObject, prices display as 15.0 instead of 15.00. Why is this happening? I can't figure out why Python is trimming off the hundredth place. I'm not doing any formatting... Thanks, Tony -- http

Re: Using PHP in Python

2006-06-12 Thread Tgone
Diez B. Roggisch wrote: > Tgone wrote: > > > Hello, > > > > I've come across sites that discuss embedding Python in PHP, but is it > > possible to access PHP functions in Python? > > I'm not aware of a generic wrapper thingy. Which doesn'

Using PHP in Python

2006-06-12 Thread Tgone
Hello, I've come across sites that discuss embedding Python in PHP, but is it possible to access PHP functions in Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: django and mod_python

2006-03-05 Thread tgone
your suggestions worked. thanks. -- http://mail.python.org/mailman/listinfo/python-list