TOC 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 TypesBooleansIntegersFloatsComplex NumbersFractionsDecimalsStringsUnicode StringBytesFrozen SetsTuplesMutable 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.ListsByte ArraysSetsDictionariesSource and Reference©sideway ID: 200500702 Last Updated: 5/7/2020 Revision: 0 Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Reference 79 Computer Hardware 249 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 429 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019