Skip to content
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

Add explicit deprecation warnings for all outdated stuff. Fix #1753 #1769

Merged
merged 10 commits into from
Dec 7, 2017

Conversation

menshikh-iv
Copy link
Contributor

@menshikh-iv menshikh-iv commented Dec 7, 2017

Resolve issue #1753

"The parameter num_words for print_topic() would be deprecated in the updated version. "
"Please use topn instead."
)
warnings.warn("The parameter `num_words` deprecated, will be removed in 4.0.0, please use `topn` instead.")
Copy link
Owner

Choose a reason for hiding this comment

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

is deprecated (here and elsewhere in this PR)

gensim/utils.py Outdated

@wraps(func)
def new_func2(*args, **kwargs):
warnings.simplefilter('always', DeprecationWarning)
Copy link
Owner

Choose a reason for hiding this comment

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

What is this simplefilter stuff for? Some comments would be nice.

@menshikh-iv menshikh-iv merged commit 5ea3eb2 into develop Dec 7, 2017
@menshikh-iv menshikh-iv deleted the deprecation branch December 7, 2017 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants