Skip to content

[MRG] DOC kwonly section in whatsnew #17059

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

Merged
merged 4 commits into from
Apr 27, 2020

Conversation

NicolasHug
Copy link
Member

Sort of related to #17057
Addresses #17015 (comment)

CC @adrinjalali @thomasjpfan @rth @cmarmo

Copy link
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

Would you like to include other deprecations in a separate section here as well?

I'm happy with this anyway.

arguments (i.e. using the `param=value` syntax) instead of positional. To
ease the transition, a `FutureWarning` is raised if a keyword-only parameter
is used as positional. In version 0.25, these parameters will be strictly
keyword-only, and a syntax error will be raised.
Copy link
Member

Choose a reason for hiding this comment

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

Oddly it's a TypeError:

In [1]: def f(a, *, b): 
   ...:     pass 
   ...:                                                                                                                                                                                 

In [2]: f(1, 3)                                                                                                                                                                         
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-f0d8c2b0eb56> in <module>
----> 1 f(1, 3)

TypeError: f() takes 1 positional argument but 2 were given

@adrinjalali adrinjalali added this to the 0.23 milestone Apr 27, 2020
@adrinjalali
Copy link
Member

pinging #17010 just to have a list on that issue.

@NicolasHug
Copy link
Member Author

Would you like to include other deprecations in a separate section here as well?

What deprecations are you referring to?

@thomasjpfan thomasjpfan merged commit a1261a7 into scikit-learn:master Apr 27, 2020
@adrinjalali
Copy link
Member

@NicolasHug

What deprecations are you referring to?

I think we have 5 other deprecations of some input params and attributes in this changelog, I meant to put them all together, but no big feelings there.

gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
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.

3 participants