Clean-up several comments in reflection.py
Change-Id: I98756b4eb180f40a9f75511399f9821fd19fac8f
This commit is contained in:
@@ -101,8 +101,8 @@ def is_same_callback(callback1, callback2, strict=True):
|
|||||||
if callback1 == callback2:
|
if callback1 == callback2:
|
||||||
if not strict:
|
if not strict:
|
||||||
return True
|
return True
|
||||||
# If two bound method are equal if functions themselves are equal
|
# Two bound methods are equal if functions themselves are equal and
|
||||||
# and objects they are applied to are equal. This means that a bound
|
# objects they are applied to are equal. This means that a bound
|
||||||
# method could be the same bound method on another object if the
|
# method could be the same bound method on another object if the
|
||||||
# objects have __eq__ methods that return true (when in fact it is a
|
# objects have __eq__ methods that return true (when in fact it is a
|
||||||
# different bound method). Python u so crazy!
|
# different bound method). Python u so crazy!
|
||||||
@@ -116,7 +116,7 @@ def is_same_callback(callback1, callback2, strict=True):
|
|||||||
|
|
||||||
|
|
||||||
def is_bound_method(method):
|
def is_bound_method(method):
|
||||||
"""Returns if the method given is a bound to a object or not."""
|
"""Returns if the given method is bound to an object."""
|
||||||
return bool(get_method_self(method))
|
return bool(get_method_self(method))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user