Entdecke mehr mit dem kostenlosen Probemonat

Mit Angebot hören

  • Guide to: Learning Iteration and Generators in Python

  • Von: Matt Harrison
  • Gesprochen von: John Edmondson
  • Spieldauer: 2 Std. und 17 Min.

Aktiviere das kostenlose Probeabo mit der Option, jederzeit flexibel zu pausieren oder zu kündigen.
Nach dem Probemonat bekommst du eine vielfältige Auswahl an Hörbüchern, Kinderhörspielen und Original Podcasts für 9,95 € pro Monat.
Wähle monatlich einen Titel aus dem Gesamtkatalog und behalte ihn.
Guide to: Learning Iteration and Generators in Python Titelbild

Guide to: Learning Iteration and Generators in Python

Von: Matt Harrison
Gesprochen von: John Edmondson
0,00 € - kostenlos hören

9,95 € pro Monat nach 30 Tagen. Jederzeit kündbar.

Für 7,95 € kaufen

Für 7,95 € kaufen

Kauf durchführen mit: Zahlungsmittel endet auf
Bei Abschluss deiner Bestellung erklärst du dich mit unseren AGB einverstanden. Bitte lese auch unsere Datenschutzerklärung und unsere Erklärungen zu Cookies und zu Internetwerbung.
activate_primeday_promo_in_buybox_DT

Inhaltsangabe

This book is one portion of Treading on Python Volume 2: Intermediate Python. That book covers this book and more. If you are interested only in 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

Das sagen andere Hörer zu Guide to: Learning Iteration and Generators in Python

Nur Nutzer, die den Titel gehört haben, können Rezensionen abgeben.

Rezensionen - mit Klick auf einen der beiden Reiter können Sie die Quelle der Rezensionen bestimmen.