Programming Python

Programming Python

  • Downloads:9057
  • Type:Epub+TxT+PDF+Mobi
  • Create Date:2021-09-15 09:56:47
  • Update Date:2025-09-06
  • Status:finish
  • Author:Mark Lutz
  • ISBN:0596158106
  • Environment:PC/Android/iPhone/iPad/Kindle

Summary

If you've mastered Python's fundamentals, you're ready to start using it to get real work done。 Programming Python will show you how, with in-depth tutorials on the language's primary application domains: system administration, GUIs, and the Web。 You'll also explore how Python is used in databases, networking, front-end scripting layers, text processing, and more。 This book focuses on commonly used tools and libraries to give you a comprehensive understanding of Python’s many roles in practical, real-world programming。

You'll learn language syntax and programming techniques in a clear and concise manner, with lots of examples that illustrate both correct usage and common idioms。 Completely updated for version 3。x, Programming Python also delves into the language as a software development tool, with many code examples scaled specifically for that purpose。

Topics include:



Quick Python tour: Build a simple demo that includes data representation, object-oriented programming, object persistence, GUIs, and website basics

System programming: Explore system interface tools and techniques for command-line scripting, processing files and folders, running programs in parallel, and more

GUI programming: Learn to use Python’s tkinter widget library

Internet programming: Access client-side network protocols and email tools, use CGI scripts, and learn website implementation techniques

More ways to apply Python: Implement data structures, parse text-based information, interface with databases, and extend and embed Python

Download

Reviews

Raymond Lewis

A great resource, but severely outdated。

Chris Seltzer

In this era of online learning, it's hard for a book to compete。 If you're looking to learn Python from a book this is an okay one to use。 In this era of online learning, it's hard for a book to compete。 If you're looking to learn Python from a book this is an okay one to use。 。。。more

Salty

很久以前存的书,现在翻看已然大部分过时。Python 3如今大行其道,在数据科学领域大放异彩。但新来的Julia在性能上数倍于Python,不可小觑。Python Web编程已有多种流行框架,不再使用CGI方式写网站。最近用Flask写了几个小应用,相当趁手,不过写大应用还是要考虑用Go,据说有人前年用Go重写了Django老网站,一年多来访问量翻十倍也不用扩容。Python写GUI就算了,现在PC上应用考虑性能的根本不会用Python,其它应用都汇聚到浏览器里去了,这半本书就成了废纸。在新三样Go、Rust、Julia的夹击下,Python可能会日益没落,毕竟在多核的世界里它玩不转。

Rakka Alhazimi

I'm recently at the beginning of chapter 11 now。 It took me about 3 weeks long to read。The first time I'm reading the first chapter of this book, I felt perplexed by it's overwhelming amount of code。 Then, I peeked at the end of the book to realized that it has 1556 pages long。 As I read the book page by page, I felt a bit uncertain and decided to skip to chapter 2。 Chapter 2 mainly talks about os and sys module in python, the modules that form the core of much of Python's system。 I learned a lo I'm recently at the beginning of chapter 11 now。 It took me about 3 weeks long to read。The first time I'm reading the first chapter of this book, I felt perplexed by it's overwhelming amount of code。 Then, I peeked at the end of the book to realized that it has 1556 pages long。 As I read the book page by page, I felt a bit uncertain and decided to skip to chapter 2。 Chapter 2 mainly talks about os and sys module in python, the modules that form the core of much of Python's system。 I learned a lot from here, and get exited by the detailed explanation。 In chapter 3, I just get known about pipe, command line, and standard streams in comprehensible way。 I get a grasp regarding sys。argv, sys。stdout, sys。stdin, etc。 Every substance has it own code example to get more precise understanding。Same concept apply on Chapter 4 and 5 with different topic obviously。 But in chapter 6, I concluded that some of the examples isn't interesting。 I just picked 3 projects (web-redirect, file-size-detector, and file-split-join), which I think is catch my attention。As I began my journey in chapter 7, I get a clear description about how 。pack() function is work and it helped my widget placement constrain in tkinter。 In the next two chapter, it just introduce the basic widgets usage, but its worth reading。And here began the chapter 10, I learned more about how to code GUI in different ways。 The thread and streams method are interesting to read。My conclusion is, this book isn't that bad。 It may a bit verbose (even I think the same)。 But it give you more detailed explanation about some particular subjects。 This book chapters are connected with one another。 You will find it hard to skip one chapter to be able to follow along the book, but the author has code repository stored in his website。 The author is know what he's doing, it's okay if this book bored you by its long page bible, you can leave it anyway。 Overall this is a good book, well written and structured。 It's answer what, how and why question (you may have a hard time figured out how the code is working, thought)。 This book implicitly will teach you how to write readable code, which is an important skill for programmers to learn。 If you have a spirit to complete this book, you must be persist and patient。 You will get bored or unmotivated in the middle of road (I felt that too), but the tread off is fundamental knowledge about specific subjects (assuming that the other people may not read all the chapters)。 。。。more

Elie De Brauwer

Another vintage book read, and more place in my cupboard ;)。 This book was written in 2001, the time where Python 2 was still a new thing, and I finished it about 2 months before Python 2 is actually begin deprecated。 (Somebody even bother to translate it in Dutch, in 2001, 。。。 1100 pages, including the comments in the code listings)The good news is that quite some content is still relevant (go Tk toolkit), some of the 'older' more low level stuff is actually quite interesting。 But it's good to Another vintage book read, and more place in my cupboard ;)。 This book was written in 2001, the time where Python 2 was still a new thing, and I finished it about 2 months before Python 2 is actually begin deprecated。 (Somebody even bother to translate it in Dutch, in 2001, 。。。 1100 pages, including the comments in the code listings)The good news is that quite some content is still relevant (go Tk toolkit), some of the 'older' more low level stuff is actually quite interesting。 But it's good to see that in more recent editions of the book less attention is given to the Tk toolkit and CGI scripting。 。。。more

Lari Thurso

This was the first "textbook" I had for Python, and I did not find it very helpful。 The topics covered in different chapters seemed disjointed。 They may be more use as tips or introductions to unfamiliar topics。 I did not get a comprehensive guide to either foundation Python skills or its specialist applications。 This was the first "textbook" I had for Python, and I did not find it very helpful。 The topics covered in different chapters seemed disjointed。 They may be more use as tips or introductions to unfamiliar topics。 I did not get a comprehensive guide to either foundation Python skills or its specialist applications。 。。。more

Robert Talada

The book is really tailroed toward databases and guis。 Didn't learn much about what I think people really use python for which is for prototyping sysadmin type tools/automation/reporting in an IT environment。 The book is really tailroed toward databases and guis。 Didn't learn much about what I think people really use python for which is for prototyping sysadmin type tools/automation/reporting in an IT environment。 。。。more

Eric Pederson

This is an intermediate-level book on using the Python standard library。 It is not a book on the Python language。 For that see “Learning Python” by the same author。 Topics include system programming, files and directories, interprocess communication, threading and multiprocessing, internet programming, databases, web programming and data structures。 It even covers integration with C/C++。 There is a huge section on GUI programming with TK and lots of examples in other sections use a GUI。 I’m not This is an intermediate-level book on using the Python standard library。 It is not a book on the Python language。 For that see “Learning Python” by the same author。 Topics include system programming, files and directories, interprocess communication, threading and multiprocessing, internet programming, databases, web programming and data structures。 It even covers integration with C/C++。 There is a huge section on GUI programming with TK and lots of examples in other sections use a GUI。 I’m not sure how many people find that interesting。 I skipped most of that part。 。。。more

David N。

Too many very long, very complete examples。 But explained advanced python well。

Mattias

Just as clear in the writing as Learning Python。 Not everything in Programming Python is applicable to everyone (as, almost in the latter), but a very nice selection of tasks and situations。

Scott Johnson

I have to admit, I skimmed most of the GUI sections, as they just don't really apply to me (if I need an interface, it's going to be web-based)。Not as helpful as I anticipated, but it did provide a bit of inspiration。 I think it was more useful when I first started reading it a year and a half ago, but concurrent experience on the job outpaced the book。 It was just a point of pride to get through the whole enormous thing, and I did eventually do that。 I have to admit, I skimmed most of the GUI sections, as they just don't really apply to me (if I need an interface, it's going to be web-based)。Not as helpful as I anticipated, but it did provide a bit of inspiration。 I think it was more useful when I first started reading it a year and a half ago, but concurrent experience on the job outpaced the book。 It was just a point of pride to get through the whole enormous thing, and I did eventually do that。 。。。more

Ednilson

dd

Mikhail GEYER

This book is not the best in python。 Like with Mark Lutz's Learning Python book, this book is also too much long with the same repeating and not very interesting code example。 The author too much talk the same trivial thing。 Though I found this book useful when you want to master your skills on some concrete python topic。 This book is not the best in python。 Like with Mark Lutz's Learning Python book, this book is also too much long with the same repeating and not very interesting code example。 The author too much talk the same trivial thing。 Though I found this book useful when you want to master your skills on some concrete python topic。 。。。more

Rakesh Gopal

One of the best books I've read on Python。 One of the best books I've read on Python。 。。。more

Dave Peticolas

This is a fairly good introduction to the Python programming language。 Its organization, however, makes it hard to use when you just want to refresh your memory about a particular detail you have forgotten。 This is a fairly good introduction to the Python programming language。 Its organization, however, makes it hard to use when you just want to refresh your memory about a particular detail you have forgotten。 。。。more

Kannan Kalidasan

This would be the best reference book for anytime to understand the concepts with examples。 explain in clear manner

M Kurniawan

hdasd

Vinayak Metrani

jiop

Clinton

Puts the word "verbose" to shame。 I've driven cars smaller than this book! Nonetheless, it provide a thorough introduction—and then some—into the standard Python library。 Puts the word "verbose" to shame。 I've driven cars smaller than this book! Nonetheless, it provide a thorough introduction—and then some—into the standard Python library。 。。。more

Vietson

Its not bad but it isn't great either。 Most of these books spend way too much time on trival things。 Its not bad but it isn't great either。 Most of these books spend way too much time on trival things。 。。。more

Charles

This book sits on the shelf next to my desk at the office。 The answer to just about any python question resides within, along with many code examples on the cd。 A must have for anyone who programs in python。

Osama Jamil

Must Read book specially for System Administrators using Python scripts I learned a lot from this book

Louis

I've been using Python since I was a graduate student。 While I have known of earlier versions of this tome it had never occurred to me to go through this。 Because my focus in computer programming is not in the systems administration or IT related skills like most of O'Reilly Press customers seem to be。 My interest is in scientific programming and data analysis。 Now that I have had some time and occasion to use this, I find that the content is indeed weighted at an audience whose function is comp I've been using Python since I was a graduate student。 While I have known of earlier versions of this tome it had never occurred to me to go through this。 Because my focus in computer programming is not in the systems administration or IT related skills like most of O'Reilly Press customers seem to be。 My interest is in scientific programming and data analysis。 Now that I have had some time and occasion to use this, I find that the content is indeed weighted at an audience whose function is computer programming (as opposed to using computers for something else), but what this book really provides is an education on how to accomplish tasks in idiomatic Python, not just a programming how-to book。Programming Python (PP4E) goal is NOT to teach programming in the Python language (that task was for another book by Lutz, Learning Python)。 The stated goal was to teach practical use of Python, and that necessarily means using the standard libraries。 But even at 1600+ pages you can't do everything。 So this book focuses on (IT) systems administration, GUI development and web programming using Python 3。x (not covering Python 2。x)。 None of these are what I do。 But, there are some tasks that are covered that can be very useful, so in reviewing this book I focused on Graphic User Interface (GUI) and text processing。What I found as I worked through these sections was that PP4E was not a reference as it lacks systematic coverage of topics。 And it is not just a tutorial, although it definitely follows a crawl, walk, run sequence as it covers the topics。 What it does do well is cover how to think and how to make design decisions。 So for the GUI section it focuses on tkinter, and it does cover various widgets, window managers, etc。, where it shows its colors is when it discusses how the parts work and how you make choices between alternatives (e。g。 window managers)。 There are some warts with its focus on Python 3。 There are several chapters in the GUI section that require the Python Imaging Library (PIL)。 But based on the PIL web page, PIL is not ported to Python 3。x。 So it probably means that Lutz used a pre-release port without telling us。Similarly, regular expressions is something I've never quite gotten。 And I would not be able to master use of the re module here, since it lacks a usual lists of functions with examples that a reference or a tutorial would have。 But what it does do is to cover how regular expressions fit along with other string operations, when and why to use match, search, find, findall, compile。 When to compile and how to think through building a regular expression sequence。 You would not learn how to use regular expressions here (I would never be able to develop the examples from what is in the book), but you will learn how to think through them, and bring that when you go back to a real reference or instructional book。One aspect that is very annoying is the examples quickly become more complex than the material that leads up to it。 So instead of crawl, walk, run; it takes on the feel of crawl - sprint, with a basic introduction then quickly moving into a complex and mature code。 Some of this is a result of a goal of trying to be deep in everything。 So be warned。I received a free electronic copy of Programming Python from O'Reilly Press as part of their blogger review program。 。。。more

Sunny

Python (en fran

Kyle

I feel like this is a printed copy of the man pages。

Will

What a disappointment。 A very long, tedious and random collection of python programming examples with no rhyme or reason whatsoever。 I think they were trying out a new idea for an authoritative language book which didn't end up panning out at all。 A big pile of wasted paper。 What a disappointment。 A very long, tedious and random collection of python programming examples with no rhyme or reason whatsoever。 I think they were trying out a new idea for an authoritative language book which didn't end up panning out at all。 A big pile of wasted paper。 。。。more

Daniel Buch

>>> I CAN HAS SYS>>> IS 'BONK' IN SYS。ARGV?I SAW UR 'BONK'>>> AWSOMTHX()KTHXBYE >>> I CAN HAS SYS>>> IS 'BONK' IN SYS。ARGV?I SAW UR 'BONK'>>> AWSOMTHX()KTHXBYE 。。。more

Bill

O'Reilly is usually so good, but I found this book disappointing。 It's too long and scattershot, and I end up never looking at it。 I much prefer the Python Essential Reference by Beazley。 O'Reilly is usually so good, but I found this book disappointing。 It's too long and scattershot, and I end up never looking at it。 I much prefer the Python Essential Reference by Beazley。 。。。more