Collin L schrieb:

OK, I see how that allows you to add a new column, but what if I want
to create a completely new table using the same name?

Like I said above, I can 1) create class Adventurer, and 3) create a
completely different class Adventurer, but I don't know how to 2)
delete my first Adventurer so I can redefine it.

I'm sorry if I'm not explaining this very clearly.  This is more of a
Python question than a db question.  I just don't know how to get rid
of my first class without restarting my Python shell.

Just don't do it. Write a script, and run that through the interpreter.

There is no sense in redefining classes that way - after all, if they are persistent, the objects will have to survive a interpreter restart anyway, and then just the last of all definitions will be used.

I'm all for interactively toying around in the REPL. It just doesn't make sense in this case.

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to