23 पॉइंट द्वारा xguru 2021-10-12 | 1 टिप्पणियां | WhatsApp पर शेयर करें
  • builtins मॉड्यूल में मौजूद built-in objects को एक-एक करके समझाते हुए Python को समझने के लिए तैयार किया गया लेख

  • L.E.G.B. Scope rule क्या है

  • dir(builtins)

→ 66 built-in Exception classes

→ 5 constants: True, False, None, Ellipsis, NotImplemented

→ global variables: spec, loader, debug आदि

→ compile, exec, val: कोड कैसे काम करता है

→ globals and locals: वह जगह जहाँ सब कुछ स्टोर होता है

→ input and print: सबसे बुनियादी चीज़ें

→ str, bytes, int, bool, float and complex: 5 primitives

→ object: हर चीज़ की बुनियाद

→ type: class factory

→ hash and id: equality की बुनियाद

→ dir and vars: हर चीज़ एक dictionary है

→ hasattr, getattr, setattr and delattr: attribute helpers

→ super: inheritance की ताकत

→ property, classmethod and staticmethod: method decorators

→ list, tuple, dict, set and frozenset: containers

→ bytearray and memoryview: बेहतर Byte interface

→ bin, hex, oct, ord, chr and ascii: बुनियादी conversion

→ format: आसान text conversion

→ any and all

→ abs, divmod, pow and round: गणित की बुनियाद

→ isinstance and issubclass: runtime type checking

→ callable and duck typing basics

→ sorted and reversed: sequence में बदलाव

→ map and filter: functional primitives

→ len, max, min and sum: aggregate functions

→ iter and next: उन्नत iteration

→ range, enumerate and zip: सुविधाजनक iteration

→ slice

→ breakpoint: built-in debugging

→ open: File I/O

→ repr: developer convenience

→ help, exit and quit: site builtins

→ copyright, credits, license: अन्य site builtins

1 टिप्पणियां

 
xguru 2021-10-12

Python को अंदर से समझाने वाला यह काफ़ी अनोखा लेख है, और इसकी व्याख्या आसान व साफ़-सुथरी है।