FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-47218: add name to lzma fileobject by ellaellela · Pull Request #32312 · python/cpython · GitHub

/ cpython Public

bpo-47218: add name to lzma fileobject - #32312

Closed
ellaellela wants to merge 2 commits into
python:mainfrom
ellaellela:add-name-lzma
Closed

bpo-47218: add name to lzma fileobject#32312
ellaellela wants to merge 2 commits into
python:mainfrom
ellaellela:add-name-lzma

Conversation

ellaellela commented Apr 4, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

MaxwellDupre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ran 119 tests in 20.603s
OK (skipped=2)
Looks ok.

Comment thread Lib/lzma.py
trailing_error=LZMAError, format=format, filters=filters)
self._buffer = io.BufferedReader(raw)

if not isinstance(filename, (str, bytes)):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

What if it is a path-like object?

Also, if it is a file, we perhaps can use its name. Actually, we perhaps can simply use self._fp.name.

Copy link
Copy Markdown
Member

Thank you for your PR @ellaellela, but this is a part of more complex issue #115961. It is better to solve it all in one place.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL