-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove 'coreader' methods adding formal '__copy__' API #1442
Merged
Conversation
This file contains 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
I fixed the changelog, so feel free to merge when you like. |
tburrows13
reviewed
Jan 19, 2021
tburrows13
added a commit
to tburrows13/moviepy
that referenced
this pull request
Jan 19, 2021
* Replace 'coreader' methods by formal '__copy__' API * Fix code style error * Add support for 'copy.copy(clip)' and 'copy.deepcopy(clip)' to CHANGELOG * Add tests for copied clips rendering * Fine tune comments * Update CHANGELOG.md * Fix flake8 errors Co-authored-by: Tom Burrows <tomburrows13@icloud.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking-change
Must not merge without proper approval. Requires full documentation (own section) in the changelog.
bug-fix
For PRs and issues solving bugs.
enhancement
Positive change that does not change the API, i.e. improved performance, using less memory etc.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
coreader
methods ofVideoFileClip
andAudioFileClip
.copy.copy(clip)
andcopy.deepcopy(clip)
.copy(clip)
byclip.copy()
invideo.fx.blink
.video.fx.blink
that was added becausecopy()
was removed from builtin Python functions.I haven't tested performance, but this change should speed up the library, since almost all the transormations returns copies and now some unnecesary checks are not executed in
Clip.copy
.Closes #1441
tests/
black -t py36