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

Deprecate sep argument of PrintHook #4471

Merged
merged 2 commits into from
Mar 16, 2018

Conversation

niboshi
Copy link
Member

@niboshi niboshi commented Mar 15, 2018

It is never used, becaue there's only one argument to print.

@@ -22,7 +23,7 @@ class PrintHook(function_hook.FunctionHook):
Chainer's library code.

Attributes:
sep: Separator of print function.
sep: *(deprecated since v4.0.0)* Ignored.
Copy link
Member

Choose a reason for hiding this comment

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

This is a list of attributes, not arguments, so is it better to keep self.sep = sep as is?

Copy link
Member Author

@niboshi niboshi Mar 16, 2018

Choose a reason for hiding this comment

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

Oh, I suspect it was intended to be argument documentation...
But I agree. I will keep it (and change Attributes to Args).

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@kmaehashi kmaehashi self-assigned this Mar 16, 2018
@kmaehashi kmaehashi added this to the v4.0.0rc1 milestone Mar 16, 2018
@kmaehashi kmaehashi added the cat:enhancement Implementation that does not break interfaces. label Mar 16, 2018
@kmaehashi kmaehashi added the st:test-and-merge State indicating that pull request is approved by a reviewer and can be merged after CI passes. label Mar 16, 2018
@kmaehashi kmaehashi merged commit abd3f2f into chainer:master Mar 16, 2018
@kmaehashi
Copy link
Member

LGTM!

@niboshi niboshi deleted the deprecate-printhook-sep branch March 16, 2018 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:enhancement Implementation that does not break interfaces. st:test-and-merge State indicating that pull request is approved by a reviewer and can be merged after CI passes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants