help with my first use of a class

BartlebyScrivener rpdooling at gmail.com
Fri Oct 20 08:53:53 EDT 2006


Thank you all!

My main problem is going away from Python and programming for weeks or
months at a time, then picking up where I left off.  But Python is much
better in this regard than Perl.

I appreciate the help.

rd

-----------------

Dennis Lee Bieber wrote:

> If using a db-api compliant adapter, and using minimal common
> features, the main thing one would have to worry about is the different
> placeholders used by the adapter.
>
> 	I'd be more likely to do something like
>
> import <pick-a-db-adapter> as db
>
> and then have a class query the db connection for what type of
> placeholder it uses, then modify any queries the class uses.
>
> 	You might make a "class" for each database /table/, and each
> instance of that class would be one record in the table. The class would
> have the methods for retrieval/update/delete/insert, when given the key
> value, perhaps.
> --
> 	Wulfraed	Dennis Lee Bieber		KD6MOG
> 	wlfraed at ix.netcom.com		wulfraed at bestiaria.com
> 		HTTP://wlfraed.home.netcom.com/
> 	(Bestiaria Support Staff:		web-asst at bestiaria.com)
> 		HTTP://www.bestiaria.com/




More information about the Python-list mailing list