bookmate game
en
Книги

Mastering Object-oriented Python

In DetailThis practical example-oriented guide will teach you advanced concepts of object-oriented programming in Python. This book will present detailed examples of almost all of the special method names that support creating classes that integrate seamlessly with Python's built-in features. It will show you how to use JSON, YAML, Pickle, CSV, XML, Shelve, and SQL to create persistent objects and transmit objects between processes. The book also covers logging, warnings, unit testing, configuration files, and how to work with the command line.
This book is broken into three major parts: Pythonic Classes via Special Methods; Persistence and Serialization; Testing, Debugging, Deploying, and Maintaining. The special methods are broken down into several focus areas: initialization, basics, attribute access, callables, contexts, containers, collections, numbers, and more advanced techniques such as decorators and mixin classes.
ApproachThis book follows a standard tutorial approach with approximately 750 code samples spread through the 19 chapters. This amounts to over 5,900 lines of code that illustrate each concept.
Who this book is forThis book is aimed at programmers who have already learned the basics of object-oriented Python and need to write more sophisticated, flexible code that integrates seamlessly with the rest of Python. This book assumes a computer science background, with experience of common Python design patterns.
792 печатни страници
Година на публикуване
2014
Издател
Packt Publishing
Вече чели ли сте я? Какво мислите за нея?
👍👎

Цитати

  • Diego Ormazábalцитирапреди 7 месеца
    For many types, this function makes an attempt to return a string that would yield an object with the same value when passed to eval().
  • Diego Ormazábalцитирапреди 7 месеца
    We initialize an object by implementing the __init__() method. When an object is created, Python first creates an empty object and then calls the __init__() method for that new object. This method function generally creates the object's instance variables and performs any other one-time processing.
  • Diego Ormazábalцитирапреди 7 месеца
    We can see that a class is an object of the class named type and that the base class for our new class is the class named object.

На лавиците

  • Ethan Hunt
    Python
    • 82
    • 102
  • Kristina
    Learn programming
    • 119
    • 65
  • XX Heufnmcz
    CS
    • 37
    • 4
  • Cheshire Rabbit
    Data Engineering
    • 19
    • 3
  • Marko Jovanović
    Python and SQL
    • 19
    • 1
fb2epub
Плъзнете и пуснете файловете си (не повече от 5 наведнъж)