From e088b76ba818a89a64410f108f99cb066002bbcd Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 6 Oct 2009 11:34:19 -0400 Subject: [PATCH] asterisms --- comprehensions.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comprehensions.html b/comprehensions.html index 6056456..cc9badb 100644 --- a/comprehensions.html +++ b/comprehensions.html @@ -20,6 +20,8 @@ body{counter-reset:h1 3}

Diving In

This chapter will teach you about list comprehensions, dictionary comprehensions, and set comprehensions: three related concepts centered around one very powerful technique. But first, I want to take a little detour into two modules that will help you navigate your local file system. +

⁂ +

Working With Files And Directories

Python 3 comes with a module called os, which stands for “operating system.” The os module contains a plethora of functions to get information on — and in some cases, to manipulate — local directories, files, processes, and environment variables. Python does its best to offer a unified API across all supported operating systems so your programs can run on any computer with as little platform-specific code as possible. @@ -191,6 +193,8 @@ body{counter-reset:h1 3} >>> print(os.path.realpath('feed.xml')) c:\Users\pilgrim\diveintopython3\examples\feed.xml +

⁂ +

List Comprehensions