Bug#790685: ITP: python-conditional -- conditionally enter a context manager

2015-07-01 Thread Jakub Wilk
* Colin Watson , 2015-07-01, 09:51: # A no-op context manager. context = contextlib.contextmanager(lambda: (None for _ in [None]))() This could be simplified to: context = contextlib.contextmanager([None].__iter__)() -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-bugs-dist-requ.

Bug#790685: ITP: python-conditional -- conditionally enter a context manager

2015-07-01 Thread Colin Watson
On Wed, Jul 01, 2015 at 08:14:56AM +0100, Neil Williams wrote: > If I had upstream code which needed this support, I'd just embed it > into the project and update the copyright instead of having a package > for 18 lines in the first place. Without really wishing to weigh in on whether it should be

Bug#790685: ITP: python-conditional -- conditionally enter a context manager

2015-07-01 Thread Neil Williams
On Tue, 30 Jun 2015 17:35:46 -0400 Sandro Tosi wrote: > at work we use it, so why not package it properly instead of keeping a > private deb? If I had upstream code which needed this support, I'd just embed it into the project and update the copyright instead of having a package for 18 lines in

Bug#790685: ITP: python-conditional -- conditionally enter a context manager

2015-06-30 Thread Sandro Tosi
at work we use it, so why not package it properly instead of keeping a private deb? On Tue, Jun 30, 2015 at 5:21 PM, Neil Williams wrote: > On Tue, 30 Jun 2015 16:17:04 -0400 > Sandro Tosi wrote: > >> Package: wnpp >> Severity: wishlist >> Owner: Sandro Tosi >> >> * Package name: python-con

Bug#790685: ITP: python-conditional -- conditionally enter a context manager

2015-06-30 Thread Neil Williams
On Tue, 30 Jun 2015 16:17:04 -0400 Sandro Tosi wrote: > Package: wnpp > Severity: wishlist > Owner: Sandro Tosi > > * Package name: python-conditional > Version : 1.1 > Upstream Author : Stefan H. Holek > * URL : https://github.com/stefanholek/conditional > * License

Bug#790685: ITP: python-conditional -- conditionally enter a context manager

2015-06-30 Thread Sandro Tosi
Package: wnpp Severity: wishlist Owner: Sandro Tosi * Package name: python-conditional Version : 1.1 Upstream Author : Stefan H. Holek * URL : https://github.com/stefanholek/conditional * License : BSD Programming Lang: Python Description : conditionall