Gratuit avec l'essai de 30 jours

Choisissez 1 livre audio par mois dans notre incomparable catalogue.
Écoutez à volonté des milliers de livres audio, de livres originaux et de balados.
Accédez à des promotions et à des soldes exclusifs.
L'abonnement Premium Plus se renouvelle automatiquement au tarif de 14,95 $/mois + taxes applicables après 30 jours. Annulation possible à tout moment.
Page de couverture de Guide to: Learning Iteration and Generators in Python

Guide to: Learning Iteration and Generators in Python

Auteur(s): Matt Harrison
Narrateur(s): John Edmondson
Essayer pour 0,00 $

14,95$ par mois après 30 jours. Annulable en tout temps.

Acheter pour 9,20$

Acheter pour 9,20$

Payer avec la carte finissant par
En confirmant votre achat, vous acceptez les conditions d'utilisation d'Audible et la déclaration de confidentialité d'Amazon. Des taxes peuvent s'appliquer.

Description

This book is one portion of Treading on Python Volume 2: Intermediate Python. That book covers this book and more. If you are interested in only iteration and generators, this book has you covered. Otherwise, check out Treading on Python Volume 2.

Iteration and Generators

Understanding iteration enables understanding generators and easily creating objects that can iterate. This guide will explain the theory behind iteration in Python and teach best practices for generator creation and use. Do not beware the yield; rather, embrace the power it provides.

The guide covers:

  • Iteration protocol
  • Iterators
  • Iterables
  • Class iteration
  • The yield statement
  • Generators
  • Function generators
  • Class generators
  • Writing Python code like the masters

These constructs, while not necessary per se, allow you to be more succinct, reuse code, and think about code in a different way. You will learn:

  • How the constructs work
  • When to use them
  • Real-life examples from the standard library
  • How to understand others' code

This book covers many of these intermediate constructs that are available in Python. The book covers both Python 2 and 3. Topics include:

  • Iteration
  • Generators
  • Using them with classes
  • Real-world examples of their use
©2013 Matt Harrison (P)2015 Matt Harrison

Ce que les auditeurs disent de Guide to: Learning Iteration and Generators in Python

Moyenne des évaluations de clients

Évaluations – Cliquez sur les onglets pour changer la source des évaluations.