Leanpub Header

Skip to main content

Intermediate Python

Intermediate Python
هذا الكتاب هو 100% كاملةأخر تحديث لهذا الكتاب كان فى 2016-11-27
This book provides a reader with a holistic and in-depth knowledge of the Python language. It explains how methods and functions are related, how sequences can be created elegantly, the tools for functional programming, how user defined objects can be no different from Python objects and how one can control almost everything from import statements to class creation using meta-classes and decorators etc.
مجاني مع العضوية

مع العضوية

مجاناً!

$24.99

أنت تدفع

مستحقات المؤلف

يحصل السبب

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
6,231
القراء
172
عدد الصفحات
47,014عدد الكلمات
حول

حول

نبذه عن الكتاب

The python ecosystem is awash with books for beginners but few books target readers that are past the beginning stages but are not yet advanced users. The book aims to bridge that gap.

The content of this book looks primarily at the various means for code organization in Python and provides user with a rigorous grounding in these. it dives into topics such as python object system, functions, decorators, metaprogramming and generators providing the reader with an in-depth knowledge of these topics that is essential for writing idiomatic and robust python code. It aims to  provide a reader with not only a how-to but also a why for Python concepts. Concepts are well explained with abundance of code snippets.

If you are looking for a book to take you beyond the beginner level in python, this is definitely the right book for you.

مشاركة هذا الكتاب

التصنيفات

الملاحظات

المؤلف

نبذه عن المؤلف

Obi Ike-Nwosu

Obi has more than five years of experience using Python. His interests include but are not limited to algorithms, mathematics, computer security, writing, developmental economics, business and problem solving in general.

المحتويات

جدول المحتويات

  • 1. Acknowledgements
  • 2. An Introduction
    • 2.1 The Evolution of Python
    • 2.2 Python 2 vs Python 3
    • 2.3 The Python Programming Language
  • 3. A Very Short Tutorial
    • 3.1 Using Python
    • 3.2 Python Statements, Line Structure and Indentation
    • 3.3 Strings
    • 3.4 Flow Control
    • 3.5 Functions
    • 3.6 Data Structures
    • 3.7 Classes
    • 3.8 Modules
    • 3.9 Exceptions
    • 3.10 Input and Output
    • 3.11 Getting Help
  • 4. Intermezzo: Glossary
    • 4.1 Names and Binding
    • 4.2 Code Blocks
    • 4.3 Name-spaces
    • 4.4 Scopes
    • 4.5 eval()
    • 4.6 exec()
  • 5. Objects 201
    • 5.1 Strong and Weak Object References
    • 5.2 The Type Hierarchy
      • None Type
      • NotImplemented Type
      • Ellipsis Type
      • Numeric Type
      • Sequence Type
      • Set
      • Mapping
      • Callable Types
      • Custom Type
      • Module Type
      • File/IO Types
      • Built-in Types
  • 6. Object Oriented Programming
    • 6.1 The Mechanics of Class Definitions
      • Class Objects
      • Instance Objects
      • Method Objects
    • 6.2 Customizing User-defined Types
      • Special methods for Type Emulation
      • Special Methods for comparing objects
      • Special Methods and Attributes for Miscellaneous Customizations
    • 6.3 A Vector class
    • 6.4 Inheritance
      • The super keyword
      • Multiple Inheritance
    • 6.5 Static and Class Methods
      • Static Methods
      • Class Methods
    • 6.6 Descriptors and Properties
      • Enter Python Descriptors
      • Class Properties
    • 6.7 Abstract Base Classes
  • 7. The Function
    • 7.1 Function Definitions
    • 7.2 Functions are Objects
    • 7.3 Functions are descriptors
    • 7.4 Calling Functions
      • Unpacking Function Argument
      • * and ** Function Parameters
    • 7.5 Nested functions and Closures
    • 7.6 A Byte of Functional Programming
      • The Basics
      • Comprehensions
      • Functools
      • Sequences and Functional Programming
  • 8. Iterators and Generators
    • 8.1 Iterators
      • The Itertools Module
    • 8.2 Generators
      • Generator Functions
      • Generator Expressions
      • The Beauty of Generators and Iterators
    • 8.3 From Generators To Coroutines
      • Simulating Multitasking with Coroutines
    • 8.4 The yield from keyword
    • 8.5 A Game of Life
  • 9. MetaProgramming and Co.
    • 9.1 Decorators
      • Function Decorators
      • Decorators in Python
      • Passing Arguments To Decorated Functions
      • Decorator Functions with Arguments
      • Functools.wrap
      • Class Decorators
    • 9.2 Decorator Recipes
    • 9.3 Metaclasses
      • Metaclasses in Action
      • Overriding __new__ vs __init__ in Custom Metaclasses
    • 9.4 Context Managers
      • The Contextlib module
  • 10. Modules And Packages
    • 10.1 Modules
      • Reloading Modules
    • 10.2 How are Modules found?
    • 10.3 Packages
      • Regular Packages
      • Namespace Packages
    • 10.4 The Import System
      • The Import Search Process
      • Why You Probably Should Not Reload Modules…
    • 10.5 Distributing Python Programs
  • 11. Inspecting Objects
    • 11.1 Handling source code
    • 11.2 Inspecting Classes and Functions
    • 11.3 Interacting with Interpreter Stacks
  • 12. The Zen of Python …

احصل على الفصول النموذجية المجانية

Click the buttons to the right to get the free sample in PDF or EPUB, or read the sample online here

الأسباب

أسباب مدعومة

Watsi
Watsi is a global crowdfunding platform for healthcare that enables anyone to donate as little as $5 to directly fund life-changing medical care for people in need. 100% of every donation funds medical care and we are dedicated to complete transparency.
Watsi (watsi.org) is the first global crowdfunding platform for healthcare, enabling anyone to directly fund low-cost, high-impact medical care for people in need. 100% of every donation on Watsi’s platform directly funds medical care for patients, the organization does not take a cut for its operations. Since launching in August of 2012, Watsi has funded medical care for more than 700 people in 16 countries.

Leanpub بدون شروط, بدون مجازفه, 100% ضمان لسعادتك معنا

فى خلال 60 يوم من الشراء تستطيع أن تسترد 100% من الذى دفعته فى أى مشتريات من Leanpub , بنقرتين من الماوس. ألقى نظره على كامل الشروط.

اكسب 8$ على كل عملية شراء بقيمة 10$، و16$ على كل عملية شراء بقيمة 20$

نحن ندفع عائدات بنسبة ٨٠٪ على المشتريات التي تبلغ قيمتها 7.99$ أو أكثر، وعائدات بنسبة ٨٠٪ مع خصم رسوم ثابتة قدرها 50 سنتاً على المشتريات التي تتراوح بين 0.99$ و7.98$. تكسب 8$ على كل بيع بقيمة 10$، و16$ على كل بيع بقيمة 20$. لذلك، إذا بعنا 5000 نسخة غير مستردة من كتابك بسعر 20$، ستكسب 80,000$.

(نعم، بعض المؤلفين قد كسبوا بالفعل أكثر من ذلك بكثير على Leanpub.)

في الواقع، كسب المؤلفون أكثر من 14 مليون دولار من خلال الكتابة والنشر والبيع على Leanpub.

تعرف على المزيد حول الكتابة على Leanpub

تحديثات مجانية. خالي من حماية DRM.

إذا اشتريت كتابًا من Leanpub، فستحصل على تحديثات مجانية طالما يقوم المؤلف بتحديث الكتاب! يستخدم العديد من المؤلفين Leanpub لنشر كتبهم أثناء الكتابة. جميع القراء يحصلون على تحديثات مجانية، بغض النظر عن متى اشتروا الكتاب أو كم دفعوا (بما في ذلك مجانًا).

معظم كتب Leanpub متوفرة بتنسيق PDF (للكمبيوتر)، EPUB (للهواتف والأجهزة اللوحية و Kindle). يتم عرض التنسيقات التي يتضمنها الكتاب في الزاوية العلوية اليمنى من هذه الصفحة.

وأخيرًا، الكتب من Leanpub لا تحتوي على أي هراء حماية حقوق النسخ DRM، لذا يمكنك قراءتها بسهولة على أي جهاز مدعوم.

تعرف على المزيد حول تنسيقات الكتب الإلكترونية من Leanpub وأماكن قراءتها

اكتب وانشر على Leanpub

يستخدم المؤلفون والناشرون Leanpub لنشر كتب إلكترونية رائعة قيد التقدم والمكتملة، تمامًا مثل هذه. يمكنك استخدام Leanpub للكتابة، والنشر وبيع كتابك أيضًا! Leanpub هو منصة قوية للمؤلفين الجادين، يجمع بين تدفق الكتابة والنشر البسيط والأنيق مع متجر يركز على بيع الكتب الإلكترونية قيد التقدم. Leanpub هو آلة كتابة سحرية للمؤلفين: فقط اكتب بنص عادي، ولنشر كتابك الإلكتروني، فقط اضغط على زر. إنه حقًا بهذه السهولة.

تعرف على المزيد حول الكتابة على Leanpub