Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 625 Bytes

pythonTricksTheBook.md

File metadata and controls

45 lines (35 loc) · 625 Bytes

Python tricks the book

Chapter Two

  • clean lists
  • long strings
  • context manager
  • context manager implementation
  • name mangling

Chapter Three

  • first class function
  • higher level function
  • nested function
  • closure
  • decorator
  • iterable unpacking
  • keyword value structure unpacking
  • function replacing
  • three layer decorator

Chapter Four

  • repr method
  • mutable objects
  • shallow copy
  • deep copy
  • class attributes
  • class methods
  • static methods
  • meta classes
  • type

Chapter Five

  • dictionary keys
  • sushi operator

Chapter Six

  • iteration protocol
  • iterables
  • iterators
  • generators