Re: The Python Way for module configuration?

2009-06-30 Thread Horace Blegg
On Sun, Jun 28, 2009 at 10:22 AM, kj no.em...@please.post wrote: In 87fxdlujds@benfinney.id.au Ben Finney ben+pyt...@benfinney.id.auben%2bpyt...@benfinney.id.au writes: (Even if you don't want to receive email, could you please give your actual name in the ‘From’ field instead of just

Re: The Python Way for module configuration?

2009-06-29 Thread Simon Forman
On Sun, Jun 28, 2009 at 1:22 PM, kjno.em...@please.post wrote: In 87fxdlujds@benfinney.id.au Ben Finney ben+pyt...@benfinney.id.au writes: (Even if you don't want to receive email, could you please give your actual name in the ‘From’ field instead of just initials? It makes conversation

Re: The Python Way for module configuration?

2009-06-28 Thread Ben Finney
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sun, 28 Jun 2009 13:28:31 +1000, Ben Finney wrote: (Even if you don't want to receive email, could you please give your actual name in the ‘From’ field instead of just initials? It makes conversation less confusing.) Some

Re: The Python Way for module configuration?

2009-06-28 Thread Hendrik van Rooyen
kj no.em...@please.post wrote: I want to write a module that serves as a Python front-end to a database. This database can be either in the form of tab-delimited flat files, XML files, or a PostgreSQL server. The module is meant to hide these database implementation details from its users.

Re: The Python Way for module configuration?

2009-06-28 Thread Steven D'Aprano
On Sun, 28 Jun 2009 18:39:28 +1000, Ben Finney wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sun, 28 Jun 2009 13:28:31 +1000, Ben Finney wrote: (Even if you don't want to receive email, could you please give your actual name in the ‘From’ field instead of just

Re: The Python Way for module configuration?

2009-06-28 Thread Aahz
In article 87bpo8vjjz@benfinney.id.au, Ben Finney ben+pyt...@benfinney.id.au wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sun, 28 Jun 2009 13:28:31 +1000, Ben Finney wrote: (Even if you don't want to receive email, could you please give your actual name in the

Re: The Python Way for module configuration?

2009-06-28 Thread kj
In 87fxdlujds@benfinney.id.au Ben Finney ben+pyt...@benfinney.id.au writes: (Even if you don't want to receive email, could you please give your actual name in the ‘From’ field instead of just initials? It makes conversation less confusing.) I don't know why, but for as long as I can

Re: The Python Way for module configuration?

2009-06-27 Thread Aaron Sherman
On Jun 27, 4:38 pm, MRAB pyt...@mrabarnett.plus.com wrote: I would appreciate your comments and suggestions. There are already modules which provide access to databases. As you can see the Python Way is to be rude ;-) Anyway, your answer is that there are some abstraction layers called

Re: The Python Way for module configuration?

2009-06-27 Thread kj
In c91011ad-b52c-4fb7-8e2c-1de165636...@d32g2000yqh.googlegroups.com Aaron Sherman aaronjsher...@gmail.com writes: On Jun 27, 4:38=A0pm, MRAB pyt...@mrabarnett.plus.com wrote: I would appreciate your comments and suggestions. There are already modules which provide access to databases. As

Re: The Python Way for module configuration?

2009-06-27 Thread Petr Messner
Hi, 2009/6/28 kj no.em...@please.post: ... What I'm interested in is the general problem of providing configuration parameters to a module. Some database/ORM libraries are configured via simple strings in the form dialect://user:passw...@host/dbname[?key=value..], for example

Re: The Python Way for module configuration?

2009-06-27 Thread Dave Angel
kj wrote: In c91011ad-b52c-4fb7-8e2c-1de165636...@d32g2000yqh.googlegroups.com Aaron Sherman aaronjsher...@gmail.com writes: On Jun 27, 4:38=A0pm, MRAB pyt...@mrabarnett.plus.com wrote: I would appreciate your comments and suggestions. There are already modules which

Re: The Python Way for module configuration?

2009-06-27 Thread Ben Finney
(Even if you don't want to receive email, could you please give your actual name in the ‘From’ field instead of just initials? It makes conversation less confusing.) kj no.em...@please.post writes: But, minimally, the module needs to have some configuration details to know where to get the

Re: The Python Way for module configuration?

2009-06-27 Thread Carl Banks
On Jun 27, 3:18 pm, kj no.em...@please.post wrote: In c91011ad-b52c-4fb7-8e2c-1de165636...@d32g2000yqh.googlegroups.com Aaron Sherman aaronjsher...@gmail.com writes: On Jun 27, 4:38=A0pm, MRAB pyt...@mrabarnett.plus.com wrote: I would appreciate your comments and suggestions. There are

Re: The Python Way for module configuration?

2009-06-27 Thread Steven D'Aprano
On Sun, 28 Jun 2009 13:28:31 +1000, Ben Finney wrote: (Even if you don't want to receive email, could you please give your actual name in the ‘From’ field instead of just initials? It makes conversation less confusing.) Some people prefer to be known by their initials. Some people's legal