-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add protocol object PyCallable #4654
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
Conversation
} | ||
|
||
#[inline] | ||
pub fn is_callable(&self) -> bool { |
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.
The new is_callable
doesn't require vm argument anymore
/// Trace events for sys.settrace and sys.setprofile. | ||
enum TraceEvent { | ||
Call, | ||
Return, | ||
} |
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.
relocated TraceEvent
because it is use only to call functions now.
if it will be going to be used somewhere else, i will create vm/src/trace.rs
rather than putting it in vm.rs
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
#3244