joshgachnang / diveintopython

A mirror of diveintopython.org.
157 stars 48 forks source link

Confusing statement about constructors in Python in Chapter 5.3 #84

Open signalpillar opened 9 years ago

signalpillar commented 9 years ago

Chapter 5.3 contains the following confusing statement.

Python classes do have something similar to a constructor: the init method.

Probably we should mention \__new__ which really creates an instance of the class.