
[Python] Variable (and Object)
·
Programming
Variable (and Object)1. 정의Python에서 Variable은 Memory에 할당된 Object를 참조하는 Name (=Reference, Identifier)에 불과하다.이 문서에서 Object는 Python에서의 Object로 type과 value, ID (CPython에서는 할당된 memory address), 그리고 reference count를 가지고 있는 데이터 덩어리(data chunk)를 가리키는 것으로 한정한다.Static Language에서의 Variable들이 type을 가지고 memory에 binding 되어있기 때문에,Static Language에서 variable들은 자신의 type와 다른 type의 memory 영역에 binding이 불가함.다른 type의 m..