{"id":174,"date":"2020-03-06T12:25:06","date_gmt":"2020-03-06T03:25:06","guid":{"rendered":"http:\/\/batmask.dothome.co.kr\/?p=174"},"modified":"2026-04-13T11:01:29","modified_gmt":"2026-04-13T02:01:29","slug":"kotlin%ea%b3%bc-python%ec%97%90%ec%84%9c-is-%ed%82%a4%ec%9b%8c%eb%93%9c%ec%9d%98-%eb%8b%a4%eb%a5%b8-%ec%82%ac%ec%9a%a9","status":"publish","type":"post","link":"http:\/\/batmask.net\/index.php\/2020\/03\/06\/174\/","title":{"rendered":"Kotlin\uacfc Python\uc5d0\uc11c &#8216;is&#8217; \ud0a4\uc6cc\ub4dc\uc758 \ub2e4\ub978 \uc0ac\uc6a9"},"content":{"rendered":"\n<p>python\uc5d0\uc11c &#8216;is&#8217; \ud0a4\uc6cc\ub4dc\ub294 &#8216;==&#8217;\uc640 \ube44\uad50\ub420 \uc218 \uc788\ub294\ub370, &#8216;==&#8217;\uac00 \uac12\uc774 \uac19\uc740\uc9c0 \uac80\uc0ac\ud55c\ub2e4\uba74,  &#8216;is&#8217;\ub294 \uc5b4\ub5a4 \uc624\ube0c\uc81d\ud2b8\ub97c \ucc38\uc870\ud558\ub294\uc9c0 \ube44\uad50\ud55c\ub2e4. \ub2e4\uc74c\uc758 stack overflow\uc9c8\ubb38\uc744 \ucc38\uace0.<\/p>\n\n\n\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/132988\/is-there-a-difference-between-and-is\">https:\/\/stackoverflow.com\/questions\/132988\/is-there-a-difference-between-and-is<\/a><\/p>\n\n\n\n<p>Kotlin\uc5d0\ub3c4 &#8216;is&#8217; \ud0a4\uc6cc\ub4dc\uac00 \uc788\uc9c0\ub9cc, \uc758\ubbf8\ub294 \uc804\ud600 \ub2e4\ub974\ub2e4. Kotlin\uc5d0\ub294 &#8216;is&#8217;, &#8216;as&#8217; \ud0a4\uc6cc\ub4dc\uac00 \uc788\uc73c\uba70, &#8216;is&#8217;\ub294 \ud0c0\uc785\uccb4\ud06c\ub97c \uc704\ud574, &#8216;as&#8217;\ub294 \ud0c0\uc785 \uce90\uc2a4\ud305\uc744 \uc704\ud574 \uc874\uc7ac\ud55c\ub2e4. \ub2e4\uc74c\uc758 \uacf5\uc2dd \ubb38\uc11c \ucc38\uace0.<\/p>\n\n\n\n<p><a href=\"https:\/\/kotlinlang.org\/docs\/reference\/typecasts.html\">https:\/\/kotlinlang.org\/docs\/reference\/typecasts.html<\/a><\/p>\n\n\n\n<p>\uadf8\ub7ec\ub2c8\uae4c Kotlin\uc758 &#8216;is&#8217;\ub294 python\uc758 <a href=\"https:\/\/docs.python.org\/3\/library\/functions.html#isinstance\">isinstance()<\/a>\uc5d0 \ud574\ub2f9\ud55c\ub2e4. \uc774\ub984\uc774 \uac19\ub2e4\uace0 \ud5f7\uac08\ub9bc \uc8fc\uc758.<\/p>\n\n\n\n<p>Kotlin\uc5d0\uc11c referential equality\ub97c \ube44\uad50\ud558\ub294 \uc5f0\uc0b0\uc790\ub294  &#8216;===&#8217; \uc774\ub2e4.<\/p>\n\n\n\n<p><a href=\"https:\/\/kotlinlang.org\/docs\/equality.html#structural-equality\">https:\/\/kotlinlang.org\/docs\/equality.html#structural-equality<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>python\uc5d0\uc11c &#8216;is&#8217; \ud0a4\uc6cc\ub4dc\ub294 &#8216;==&#8217;\uc640 \ube44\uad50\ub420 \uc218 \uc788\ub294\ub370, &#8216;==&#8217;\uac00 \uac12\uc774 \uac19\uc740\uc9c0 \uac80\uc0ac\ud55c\ub2e4\uba74, &#8216;is&#8217;\ub294 \uc5b4\ub5a4 \uc624\ube0c\uc81d\ud2b8\ub97c \ucc38\uc870\ud558\ub294\uc9c0 \ube44\uad50\ud55c\ub2e4. \ub2e4\uc74c\uc758 stack overflow\uc9c8\ubb38\uc744 \ucc38\uace0. https:\/\/stackoverflow.com\/questions\/132988\/is-there-a-difference-between-and-is Kotlin\uc5d0\ub3c4 &#8216;is&#8217; \ud0a4\uc6cc\ub4dc\uac00 \uc788\uc9c0\ub9cc, \uc758\ubbf8\ub294 \uc804\ud600 \ub2e4\ub974\ub2e4. Kotlin\uc5d0\ub294 &#8216;is&#8217;, &#8216;as&#8217; \ud0a4\uc6cc\ub4dc\uac00 \uc788\uc73c\uba70, &#8216;is&#8217;\ub294 \ud0c0\uc785\uccb4\ud06c\ub97c \uc704\ud574, &#8216;as&#8217;\ub294 \ud0c0\uc785 \uce90\uc2a4\ud305\uc744 \uc704\ud574 \uc874\uc7ac\ud55c\ub2e4. \ub2e4\uc74c\uc758 \uacf5\uc2dd \ubb38\uc11c \ucc38\uace0. https:\/\/kotlinlang.org\/docs\/reference\/typecasts.html \uadf8\ub7ec\ub2c8\uae4c Kotlin\uc758 &#8216;is&#8217;\ub294 python\uc758 isinstance()\uc5d0 \ud574\ub2f9\ud55c\ub2e4. \uc774\ub984\uc774 \uac19\ub2e4\uace0 \ud5f7\uac08\ub9bc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,33],"tags":[39,40,38,35,41,55],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-kotlin","category-python","tag-is","tag-keyword","tag-kotlin","tag-python","tag-kotlin-kr","tag-python-kr"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":3,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"predecessor-version":[{"id":4710,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/174\/revisions\/4710"}],"wp:attachment":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}