-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Refactor] [lang] Add "ti.field" and "ti.Matrix.field" for future deprecation of "ti.var" #1502
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
@@ -285,8 +285,14 @@ def __repr__(self): | |||
root = Root() | |||
|
|||
|
|||
@python_scope | |||
#@deprecated('ti.var', 'ti.field') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these @deprecated
commented out on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we don't want to throw out tons of warnings yet, before it's fully deprecated from tests and examples. The #@
is just a reminder, this is to be deprecated in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks and LGTM in general. Could you clarify a bit on why the @deprecated
s are commented out?
Please see #1500, we will only uncomment this after all docs, tests, examples, are adopt to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, and thanks for the clarification. It would be nice to mention these in the PR body next time so that people won't question you :-)
Related issue = #1500:2.1
[Click here for the format server]