diff --git a/advanced-iterators.html b/advanced-iterators.html index 830a4be0..b2f30039 100755 --- a/advanced-iterators.html +++ b/advanced-iterators.html @@ -631,7 +631,7 @@
itertools
module
itertools
— Iterator functions for efficient looping
-os
module
os
— Portable access to operating system specific features
os.path
module
-os.path
— Platform-independent manipulation of file names
+os.path
— Platform-independent manipulation of file names
glob
module
glob
— Filename pattern matching
time
module
diff --git a/http-web-services.html b/http-web-services.html
index cc4f0b4e..a1b818e8 100755
--- a/http-web-services.html
+++ b/http-web-services.html
@@ -974,7 +974,7 @@ httplib2
:
httplib2
project page
+httplib2
project page
httplib2
code examples
httplib2
httplib2
: HTTP Persistence and Authentication
diff --git a/special-method-names.html b/special-method-names.html
index ea906755..65d0342e 100644
--- a/special-method-names.html
+++ b/special-method-names.html
@@ -811,7 +811,7 @@ MyABC.__subclasshook__(C)
-* Exactly when Python calls the __del__()
special method is incredibly complicated. To fully understand it, you need to know how Python keeps track of objects in memory. Here’s a good article on Python garbage collection and class destructors. You should also read about weak references, the weakref
module, and probably the gc
module for good measure.
+
* Exactly when Python calls the __del__()
special method is incredibly complicated. To fully understand it, you need to know how Python keeps track of objects in memory. Here’s a good article on Python garbage collection and class destructors. You should also read about weak references, the weakref
module, and probably the gc
module for good measure.
Iterators are everywhere in Python 3, and I understand them a lot better than I did five years ago when I wrote “Dive Into Python”. You need to understand them too, because lots of functions that used to return lists in Python 2 will now return iterators in Python 3. At a minimum, you should read the second half of the Iterators chapter and the second half of the Advanced Iterators chapter. -
By popular request, I’ve added an appendix on Special Method Names, which is kind of like the Python docs “Data Model” chapter but with more snark. +
By popular request, I’ve added an appendix on Special Method Names, which is kind of like the Python docs “Data Model” chapter but with more snark.
When I was writing “Dive Into Python”, all of the available XML libraries sucked. Then Fredrik Lundh wrote ElementTree, which doesn’t suck at all. The Python gods wisely incorporated ElementTree into the standard library, and now it forms the basis for my new XML chapter. The old ways of parsing XML are still around, but you should avoid them, because they suck! diff --git a/where-to-go-from-here.html b/where-to-go-from-here.html index c08daca7..ed9280cc 100644 --- a/where-to-go-from-here.html +++ b/where-to-go-from-here.html @@ -39,8 +39,8 @@
Descriptors:
multiprocessing
module
multiprocessing
— Manage processes like threads
Metaclasses:
In addition, Doug Hellman’s Python Module of the Week is a fantastic guide to many of the modules in the Python standard library. +
In addition, Doug Hellman’s Python Module of the Week is a fantastic guide to many of the modules in the Python standard library.
Nearly all the chapters in this book revolve around a piece of sample code. But XML isn’t about code; it’s about data. One common use of XML is “syndication feeds” that list the latest articles on a blog, forum, or other frequently-updated website. Most popular blogging software can produce a feed and update it whenever new articles, discussion threads, or blog posts are published. You can follow a blog by “subscribing” to its feed, and you can follow multiple blogs with a dedicated “feed aggregator” like Google Reader. -
Here, then, is the XML data we’ll be working with in this chapter. It’s a feed — specifically, an Atom syndication feed. +
Here, then, is the XML data we’ll be working with in this chapter. It’s a feed — specifically, an Atom syndication feed.
<?xml version='1.0' encoding='utf-8'?>
@@ -663,9 +663,9 @@ Further Reading
- Elements and Element Trees
- XPath Support in ElementTree
- The ElementTree iterparse Function
-
lxml
-- Parsing XML and HTML with
lxml
- - XPath and XSLT with
lxml
+ lxml
+- Parsing XML and HTML with
lxml
+ - XPath and XSLT with
lxml
- xmlwitch