Closed JuniorJPDJ closed 2 years ago
Thanks for getting this started! If you're interested in changing path
to filename
, perhaps we should do that in a separate PR so it's easier to review the core of the "file-like object" feature separately? (In general, for me, I find it's easier to fully understand one change at a time.)
It's connected as in case of FileThing it doesn't have to be path
already but it will always be some sort of file name.
I can split it to separate commits for you if it's gonna make review easier ;D
That would be awesome, if you don't mind!
Done! If possible - I'd like to get your review and merge on #42 first tho.
Rebased on top of master.
I think I fixed most of issues you asked about ;D
I re-added MediaFile.path
as @property
- I don't want to completely break backwards compatibility.
It should be compatible with most of existing software now, as far as someone don't set path in their code. I don't see a point of doing this anyway as afaik it didn't change anything - saving still worked on previous file.
.
Just returning to this PR after a long delay—is everything in order from your perspective, @JuniorJPDJ? Maybe we should add something to the documentation about this new capability so people know they can use it with open files?
IMO it's enough. @up is line describing it If you think it's not enough - tell me please what exactly would you like to see.
bump
Thanks for your patience! This all looks great. I have updated some documentation and will merge now. :sparkles:
and simple and useful
MediaFile.as_dict()
functionResolves #35