[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-10-07 Thread Miroslav Suchý
Change by Miroslav Suchý : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue45406> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45406] inspect.getouterframes() tracebacks when $CWD does not exists

2021-10-07 Thread Miroslav Suchý
New submission from Miroslav Suchý : When you exec inspect.getouterframes() in directory, which no longer exists, then you get traceback, because the code traverse to os.getcwd() which fails. Reproducer: $ mkdir /tmp/bar $ cd /tmp/bar $ rmdir /tmp/bar $ python3 Python 3.10.0rc2 (default, Sep

[issue9664] Make gzip module not require that underlying file object support seek

2010-11-25 Thread Miroslav Suchý
Miroslav Suchý msu...@redhat.com added the comment: I'm proposing GzipStream class which inherit from gzip.GzipFile and handle streaming gzipped data. You can use this module under both Python or GPLv2 license. We use this module under python 2.6. Not sure if it will work under Python3