Lyt når som helst, hvor som helst

Nyd den ubegrænsede adgang til tusindvis af spændende e- og lydbøger - helt gratis

  • Lyt og læs så meget du har lyst til
  • Opdag et kæmpe bibliotek fyldt med fortællinger
  • Eksklusive titler + Mofibo Originals
  • Opsig når som helst
Start tilbuddet
DK - Details page - Device banner - 894x1036
Cover for Mastering Python

Mastering Python

Sprog
Engelsk
Format
Kategori

Fakta

Master the art of writing beautiful and powerful Python by using all of the features that Python 3.5 offers

About This Book

• Become familiar with the most important and advanced parts of the Python code style

• Learn the trickier aspects of Python and put it in a structured context for deeper understanding of the language

• Offers an expert's-eye overview of how these advanced tasks fit together in Python as a whole along with practical examples

Who This Book Is For

Almost anyone can learn to write working script and create high quality code but they might lack a structured understanding of what it means to be 'Pythonic'. If you are a Python programmer who wants to code efficiently by getting the syntax and usage of a few intricate Python techniques exactly right, this book is for you.

What You Will Learn • Create a virtualenv and start a new project

• Understand how and when to use the functional programming paradigm

• Get familiar with the different ways the decorators can be written in

• Understand the power of generators and coroutines without digressing into lambda calculus

• Create metaclasses and how it makes working with Python far easier

• Generate HTML documentation out of documents and code using Sphinx

• Learn how to track and optimize application performance, both memory and cpu

• Use the multiprocessing library, not just locally but also across multiple machines

• Get a basic understanding of packaging and creating your own libraries/applications

In Detail

Python is a dynamic programming language. It is known for its high readability and hence it is often the first language learned by new programmers. Python being multi-paradigm, it can be used to achieve the same thing in different ways and it is compatible across different platforms. Even if you find writing Python code easy, writing code that is efficient, easy to maintain, and reuse is not so straightforward.

This book is an authoritative guide that will help you learn new advanced methods in a clear and contextualised way. It starts off by creating a project-specific environment using venv, introducing you to different Pythonic syntax and common pitfalls before moving on to cover the functional features in Python. It covers how to create different decorators, generators, and metaclasses. It also introduces you to functools. wraps and coroutines and how they work. Later on you will learn to use asyncio module for asynchronous clients and servers. You will also get familiar with different testing systems such as py. test, doctest, and unittest, and debugging tools such as Python debugger and faulthandler. You will learn to optimize application performance so that it works efficiently across multiple machines and Python versions. Finally, it will teach you how to access C functions with a simple Python call. By the end of the book, you will be able to write more advanced scripts and take on bigger challenges.

Style and Approach

This book is a comprehensive guide that covers advanced features of the Python language, and communicate them with an authoritative understanding of the underlying rationale for how, when, and why to use them.

© 2016 Packt Publishing (E-bog): 9781785289132

Udgivelsesdato

E-bog: 29. april 2016

Andre kan også lide...

  1. Physics Textbook
    Physics Textbook Introbooks Team
  2. The Future of Capitalism
    The Future of Capitalism Introbooks Team
  3. Estate & Trust Administration For Dummies
    Estate & Trust Administration For Dummies Margaret A. Munro
  4. Building Beehives For Dummies
    Building Beehives For Dummies Howland Blackiston
  5. Learn and Understand Economic History
    Learn and Understand Economic History Introbooks Team
  6. Artificial Intelligence
    Artificial Intelligence Introbooks Team
  7. Chemistry for Students: The Only Chemistry Study Guide You'll Ever Need to Ace Your Course
    Chemistry for Students: The Only Chemistry Study Guide You'll Ever Need to Ace Your Course Leonel Travers
  8. Running A Bar for Dummies
    Running A Bar for Dummies Heather Dismore
  9. Quantum Numbers
    Quantum Numbers Introbooks Team
  10. Robotics
    Robotics Introbooks Team
  11. Esports For Dummies
    Esports For Dummies Phill Alexander
  12. Sports Betting For Dummies
    Sports Betting For Dummies Swain Scheps
  13. Financial Accounting Theory
    Financial Accounting Theory Introbooks Team
  14. Raising Goats For Dummies
    Raising Goats For Dummies Cheryl K. Smith
  15. German Shepherds for Dummies
    German Shepherds for Dummies D. Caroline Coile, PhD
  16. Electronic Health Records for Dummies
    Electronic Health Records for Dummies Anita Samarth
  17. Paying For College For Dummies
    Paying For College For Dummies Eric Tyson, MBA
  18. Casino Gambling For Dummies, 2nd Edition
    Casino Gambling For Dummies, 2nd Edition Swain Scheps
  19. Building Chicken Coops For Dummies
    Building Chicken Coops For Dummies Dave Zook
  20. Auto Repair For Dummies: 2nd Edition
    Auto Repair For Dummies: 2nd Edition Deanna Sclar
  21. The Future of Money
    The Future of Money Introbooks Team
  22. Artificial Intelligence Explained
    Artificial Intelligence Explained Introbooks Team
  23. Game Theory: Applications to Economics and Economic Theory
    Game Theory: Applications to Economics and Economic Theory Daniel Shore
  24. Character is Higher Than Intellect
    Character is Higher Than Intellect Introbooks Team
  25. Cloud Security For Dummies
    Cloud Security For Dummies Ted Coombs
  26. History of Engineering
    History of Engineering Introbooks Team
  27. Quantum Electronics
    Quantum Electronics Introbooks Team
  28. Crash Course Income Statement
    Crash Course Income Statement Introbooks Team
  29. Astrophysics
    Astrophysics Introbooks Team
  30. CODING INTERVIEW: A Beginner's Guide, 50+ Tips and Tricks, Simple and Effective Methods and Advanced methods to learn and Excel in Coding Interview
    CODING INTERVIEW: A Beginner's Guide, 50+ Tips and Tricks, Simple and Effective Methods and Advanced methods to learn and Excel in Coding Interview Eric Schmidt
  31. Conflict Theory
    Conflict Theory Introbooks Team
  32. Trade War
    Trade War Introbooks Team
  33. Music Theory for Beginners: Essential Music Theory Made Easy for All Musicians
    Music Theory for Beginners: Essential Music Theory Made Easy for All Musicians Aventuras De Viaje
  34. How To Think and Realize Objectives Under Any Proper Rule Environment: A New Math to Understand and Analyse Social and Economic Issues
    How To Think and Realize Objectives Under Any Proper Rule Environment: A New Math to Understand and Analyse Social and Economic Issues J. Edson Lira
  35. Data Visualization Guide: Clear Guide to Data Science and Visualization
    Data Visualization Guide: Clear Guide to Data Science and Visualization Alex Campbell
  36. Albert Einstein's Theories
    Albert Einstein's Theories Introbooks Team
  37. US Corporate Tax System
    US Corporate Tax System Introbooks Team
  38. Modern Technology: Chemical, Electrical, Industrial, and Mechanical Engineering (4 in 1)
    Modern Technology: Chemical, Electrical, Industrial, and Mechanical Engineering (4 in 1) Phil Gilberts
  39. Group Theory
    Group Theory Introbooks Team
  40. New Developments in Statistics
    New Developments in Statistics Introbooks Team
  41. Linux for Beginners: How to Perform Linux Admin Tasks
    Linux for Beginners: How to Perform Linux Admin Tasks ATTILA KOVACS
  42. Critical Thinking
    Critical Thinking Introbooks Team
  43. Ear Training Course for Guitar: Intervals
    Ear Training Course for Guitar: Intervals Julia Whitlock
  44. Internet of Things
    Internet of Things Introbooks Team
  45. Intellectual Property Crash Course
    Intellectual Property Crash Course Introbooks Team
  46. One Move at a Time: How to Play and Win at Chess and Life
    One Move at a Time: How to Play and Win at Chess and Life Orrin C. Hudson
  47. Vector Calculus Through Stories
    Vector Calculus Through Stories Dr. R. Prabakaran
  48. Music Theory
    Music Theory Introbooks Team
  49. Business School Books Volume 2: Basic Principles of Management
    Business School Books Volume 2: Basic Principles of Management Introbooks Team

Vælg dit abonnement

  • Over 600.000 titler

  • Download og nyd titler offline

  • Eksklusive titler + Mofibo Originals

  • Børnevenligt miljø (Kids Mode)

  • Det er nemt at opsige når som helst

Den mest populære

Premium

For dig som lytter og læser ofte.

129 kr. /måned
  • 1 konto

  • 100 timer/måned

  • Eksklusivt indhold hver uge

  • Fri lytning til podcasts

  • Ingen binding

Start tilbuddet

Unlimited

For dig som lytter og læser ubegrænset.

159 kr. /måned
  • 1 konto

  • Ubegrænset adgang

  • Eksklusivt indhold hver uge

  • Fri lytning til podcasts

  • Ingen binding

Start tilbuddet

Family

For dig som ønsker at dele historier med familien.

Fra 179 kr. /måned
  • 2-6 konti

  • 100 timer/måned pr. konto

  • Fri lytning til podcasts

  • Kun 39 kr. pr. ekstra konto

  • Ingen binding

2 konti

179 kr. /måned
Start tilbuddet

Flex

For dig som vil prøve Mofibo.

89 kr. /måned
  • 1 konto

  • 20 timer/måned

  • Gem op til 100 ubrugte timer

  • Eksklusivt indhold hver uge

  • Fri lytning til podcasts

  • Ingen binding

Start tilbuddet