Update: most of this page pertains to older editions. For up-to-date info on my latest book, see
. It's available in print, ebook (PDF, ePub, and Kindle), and online (web) forms.
The
I've written are available in both print and electronic formats from a variety of retailers around the world. Although this support site doesn't sell books directly, this page provides a handful of pointers on purchase options and resources, and addresses a few product-related FAQs.
On this page:
Available mediums
Where to find the books
Using book examples
Choosing the right book
Non-English versions
About book sourcesUpdate: as of 2020, readers are cautioned that my publisher's Safari online service will track and record your activity, and will by default sell your personal information as described
. Safari accounts may also be discontinued at any time, a fate recently threatened for customers' lifetime-access ebook
. Print books and ebooks are immune to both tracking and deletion, and are the recommended mediums for accessing my titles.
Update: as of early 2018, you can buy PDF and ePub versions of my books at
—the source now recommended by my publisher's customer service.
Update: as of June 2017, my books'
no longer sells individual books on its own website. Instead, its book pages now emphasize online-only Safari subscriptions, and have a grudging link to Amazon for purchasing
. The publisher will still print books, and you can still buy its paper books and ebooks from the many sources below. This page's images now link to Amazon book pages accordingly. For more on this change, see the
and
.
The publisher,
, produces and distributes my titles in a variety of forms:
Print: traditional paper format
Ebook: PDF, ePub, Mobi, and more
Online: Safari web-based format
Though print is popular for my titles, both ebooks and Safari provide color images, and are searchable mediums that can serve as either complement or alternative to print.
For ebooks, PDF is a print-like format; ePub is a flexible device- and vendor-neutral option; and Mobi is designed for Kindle. (O'Reilly used to have more on using ebooks at a page formerly linked here, but it seems to have been culled in the push to online subscriptions.)
Although my publisher no longer sells its books
, there are multiple retailers that do.
If you're looking for print books: You can find my titles at Amazon, Barnes & Noble, and many other book retailers. To verify ISBN numbers, see the books list on
. If you're looking for ebooks: You can find my titles at
as PDF and ePub (formerly in O'Reilly ebook bundles); at Amazon for Kindle, and Barnes & Noble for Nook; and at Google Play for Google Play Books, and Apple iTunes for iBooks. Some ebook vendors, including Google Play, provide both app-based reading and downloads of general PDF and ePub ebooks (though Google's PDF is custom). Others may offer more proprietary choices, and the usual caution about vendor lock-in applies: beware purchasing ebooks on devices designed to be media
.
The Safari service also hosts my titles on the web, but its subscription model is really just a rental agreement; your books are yours there only as long as you pay the fee, and the service lasts (see the recent imperilment of customer ebook
). As noted in the 2020 update
, Safari also tracks your online actions and may sell your information. Print and ebook options provide much better control of your content and privacy.
For purchase sources, try one of the following table's links; the product links at the
of this page; or your favorite web-search provider (the web and the publishing world churn alike):
Amazon
Barnes & Noble
eBooks.com
Google Play
Apple iTunes
Safari online
O'Reilly (Safari)
The publisher may also offer academic and bulk-purchase discount options; see its
for pointers. See also
2018 and 2017 notes about temporary inventory outages at Amazon.
Not mentioned on O'Reilly's ebooks page: If you wish to use ebooks to cut-and-paste code, note that some readers and formats may retain whitespace better than others. For example, both:
The
reader with ePub ebooks
The
web-browser interface
may retain code formatting better than PDF ebook readers. This matters in a language like Python where indentation counts as part of statement syntax. Calibre is free and open source (and, as an aside, is written primarily in
, using
for its GUI); ePub is available at ebooks.com and others; and Safari is a subscription service. See
for more on vendors. Also note that some characters may require manual replacement in code snippets due to non-ASCII formatting. Dashes, for instance, may have been changed in production to emdashes that can generate syntax errors. If cut-and-paste fails for you, fetch your book's examples distribution package (see this site's
).
That said, you should also expect to be writing some code manually very early in the learning process. It's an important part of mastering a language's syntax, and is required of anyone seeking to develop new software. Cutting and pasting code alone is not programming, despite what some resources may imply.
Be sure you're getting the book that makes sense for your goals. This is discussed on this site's book pages, but judging from recent emails from people confused about content, it's worth a few words here. In short:
is a language-foundations tutorial.
is an applications-programming tutorial.
is a supplement to the other two.
The first two essentially work as a set. Learning's foundations topics span all application domains, and are assumed prerequisites to Programming's more advanced coverage. Programming in turn is meant as a follow-up to Learning, that moves on to apply the language in common domains and larger-scaled programs. Hence, as general guidelines:
If you are relatively or completely new to Python, you may be best served starting with Learning before moving on to Programming.
If you already know Python well and are hoping to find coverage of GUIs, Internet, databases, text, and so on, you might prefer Programming.
Also note that Learning is not the next version of Programming, despite its higher edition number. There is no 5th Edition of Programming in the works, as it does not require an update. In addition, the Pocket Reference is designed to be a companion to the other two, though its current 260-page edition is a substantial reference text in its own right. For more on book scope, see the book pages listed above, and recent reader replies
and
. For more on future editions, see
.
Although the books are published in English, their various editions have also been translated to at least a dozen other languages, including recent versions in Chinese, Russian, Polish, Korean, German, Italian, and Portuguese. For details, see the web, or O'Reilly's
. Some recent translations' book covers and sources (see the web for others):
Chinese
,
,
Russian
,
Source,
SourcePolish
,
German
,
Italian
In closing, here are a few pointers related to book quality:
Book sources These books are sold in a wide variety of forms and outlets—from paper volumes in traditional bookstores, to ebook "apps" in online stores. Most of these are valid and useful products, but there have been reports of others of inferior quality. As always on the web, please be aware of what you're downloading and purchasing. If in doubt, go with a known retail sources like those
to make sure you're getting a legitimate copy. Infringing books Other publishers and authors are starting to infringe on my books' titles, and are unfortunately being supported by my own publisher's marketing. See the May-2016 note
for details. Imitation may be a kind of flattery, but this also exposes some unavoidable dark sides of the publishing business. Please be sure that you are selecting the book that you intended to purchase. Kindle fonts A note to Kindle readers: if the text looks subpar, try selecting "Publisher Font" in your font options. Depending on your format and device, this may better distinguish sections and substantially improve the reading experience.