[sqlalchemy] Doc bug? 0.3 tutorial not working

2007-11-17 Thread iain duncan
Hi Michael et al. I don't know if this is a versioning conflict or what not. I know I had done this fine before in the past, so maybe something changed. Anyway, with sa 0.3.11 and python 2.4.3 and mysql 5.0.22, following the sa 0.3 tutorial: from sqlalchemy import * db =

[sqlalchemy] Re: Doc bug? 0.3 tutorial not working

2007-11-17 Thread Michael Bayer
On Nov 17, 2007, at 4:27 AM, iain duncan wrote: Hi Michael et al. I don't know if this is a versioning conflict or what not. I know I had done this fine before in the past, so maybe something changed. Anyway, with sa 0.3.11 and python 2.4.3 and mysql 5.0.22, following the sa 0.3

[sqlalchemy] Re: Can I remove a Column from the select() result set

2007-11-17 Thread Michael Bayer
On Nov 17, 2007, at 12:26 AM, Matt Culbreth wrote: Howdy Group, Let's say I have a very simple query: select person.id, person.name, person.age from person Can I remove one of the columns, say person.age, from this result set and still use the list as a RowProxy? I'm trying to do it

[sqlalchemy] Re: Doc bug? 0.3 tutorial not working

2007-11-17 Thread iain duncan
from sqlalchemy import * db = create_engine('mysql://web:[EMAIL PROTECTED]/db_name') metadata = MetaData() metadata.bind(db) TypeError: 'NoneType' object is not callable However this still works: metadata = MetaData(db) The tutorial still says the two are equivalent, so I

[sqlalchemy] Re: Can I remove a Column from the select() result set

2007-11-17 Thread Matt Culbreth
Thanks Michael. To make a long story short, I'm appending a couple columns onto a query, running it, and then using those two extra columns for some client-side logic (involving calculations to be precise). At the end of that logic, I need to remove those two extra columns. I'd like to be able