Re: Context manager on method call from class

2018-03-15 Thread Joseph L. Casale
From: Python-list <python-list-bounces+jcasale=activenetwerx@python.org> on behalf of Rob Gaddi <rgaddi@highlandtechnology.invalid> Sent: Thursday, March 15, 2018 12:47 PM To: python-list@python.org Subject: Re: Context manager on method call from class   > from co

Re: Context manager on method call from class

2018-03-15 Thread Rob Gaddi
On 03/15/2018 11:17 AM, Joseph L. Casale wrote: I have a class which implements a context manager, its __init__ has a signature and the __enter__ returns an instance of the class. Along with several methods which implement functionality on the instance, I have one method which itself must open