Draft for Information Only
ContentPython Object
Python ObjectPython object is a logical representation used to represent the physical data stored in memory.
Python Object PropertyThe three basic properties of Python object are identity, type, and value.Identity PropertyIdentity is an unique integer value used to represent a Python object. Since the identity of an object also represents the logical physical location of the corresponding object value, the identity of a Python object remains unchange once the identity has been created. The identity property of a Python object can be returned by theType PropertyType is a predefined type name of the stored data value. Type is used to specify the allowed data type that can be stored in the object and operations that are supported by object type. The type of a Python object remains unchange once the data type are specified. The type property of a Python object can be returned by the
Value PropertyValue is the logical value of an object. Depending on the Python type property, the Python value property can be divived into two catalogues, mutable and immutable according to the immutability of data object.Python Object Data TypesPython object data types can be divived into two catalogues, mutable and immutable object data types according to the immutability of data type.Immutable Data TypesValue of immutable data types can not be changed after creation. Typical immutable types are numeric data types, strings, bytes, frozen sets, and tuples.Numeric Data TypesBooleans![]() Integers![]() Floats![]() Complex Numbers![]() Fractions![]() Decimals![]() Strings![]() Unicode String![]() Bytes![]() Frozen Sets![]() Tuples![]() Mutable Data TypesValue of mutable data types can be changed after creation. Typical mutable types are lists, byte arrays, sets, and dictionaries. These are mutable sequence.Lists![]() Byte Arrays![]() Sets![]() Dictionaries![]() Source and Reference©sideway ID: 200500702 Last Updated: 7/5/2020 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 337 Reference 67 Computer Hardware 151 Software Application 202 Digitization 25 Latex 10 Manim 159 Numeric 19 Programming Web 285 Unicode 494 HTML 65 CSS 59 ASP.NET 194 OS 391 DeskTop 7 Python 37 Knowledge Mathematics Formulas 8 Algebra 29 Number Theory 206 Trigonometry 18 Geometry 18 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Electric 27 Biology 1 |
Copyright © 2000-2021 Sideway . All rights reserved Disclaimers last modified on 06 September 2019