On 02.11.2012 10:53, Christoph Zwerschke wrote:
> ...
> What I find a bit ugly about this approach is that now the context managers
> of connections and
> cursors behave differently, and that code written using these context
> managers is not
> self-explanatory. If connections and cursors would j
Am 03.11.2012 20:56, schrieb M.-A. Lemburg:
> That said, using connections as context managers in the described
> way is popular and probably already a standard practice, so I
> guess it's better to standardize on it and document it properly,
> rather than leaving it open for interpretation - even
On 03.11.2012 23:50, Christoph Zwerschke wrote:
> Am 03.11.2012 20:56, schrieb M.-A. Lemburg:
>> That said, using connections as context managers in the described
>> way is popular and probably already a standard practice, so I
>> guess it's better to standardize on it and document it properly,
>>
On Nov 3, 2012, at 7:07 PM, M.-A. Lemburg wrote:
>
> Overall, it boils down to "explicit is better than implicit".
not to mention "There should be one-- and preferably only one --obvious way to
do it."
___
DB-SIG maillist - DB-SIG@python.org
http: