As mentioned in PEP 343, Context managers provide __enter__() and __exit__() methods that are invoked on entry to and exit from the body of the with statement. Currently, these context managers methods are completely unusable in FFdecoder API, and need rework. Plus related docs and unittest are missing .
Acknowledgment
[x] I have searched the issues for my issue and found nothing related or helpful.
Brief Description
As mentioned in PEP 343, Context managers provide
__enter__()
and__exit__()
methods that are invoked on entry to and exit from the body of thewith
statement. Currently, these context managers methods are completely unusable in FFdecoder API, and need rework. Plus related docs and unittest are missing .Acknowledgment
Current Environment
Expected Behavior
Must be able to use context manager methods using ‘with’ and ‘as’ keywords in FFdecoder API
Actual Behavior
Unusable and throws
NameError
Miscellaneous
https://peps.python.org/pep-0343/