https://stackoverflow.com/questions/132988/is-there-a-difference-between-and-isiswill return True if two variables point to the same object, == if the objects referred to by the variables are equal.
ㅇㅎ
==값비교 is레퍼런스비교
결과는 같을걸
파이썬에서 None은 싱글톤이어서 차이없는걸로 알고있는데
is를 권장하긴 함
None과 비교는 is를 권장하더라
아마 모르긴몰라도 __eq__가 override되면 뒤에거는 behavior에 영향이 있을걸? numpy array같이 지맘대로 broadcasting하는 애 만나면 (해보진 않았지만) 지맘대로 loop돌지도 모름 (안돌지도 모르지만)
https://stackoverflow.com/questions/132988/is-there-a-difference-between-and-is
is
will return True if two variables point to the same object, == if the objects referred to by the variables are equal.
ㅇㅎ
==값비교 is레퍼런스비교
결과는 같을걸
파이썬에서 None은 싱글톤이어서 차이없는걸로 알고있는데
is를 권장하긴 함
None과 비교는 is를 권장하더라
아마 모르긴몰라도 __eq__가 override되면 뒤에거는 behavior에 영향이 있을걸? numpy array같이 지맘대로 broadcasting하는 애 만나면 (해보진 않았지만) 지맘대로 loop돌지도 모름 (안돌지도 모르지만)