• Complain

Mark Pilgrim - Dive Into Python

Here you can read online Mark Pilgrim - Dive Into Python full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2004, publisher: Apress, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Mark Pilgrim Dive Into Python
  • Book:
    Dive Into Python
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2004
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Dive Into Python: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Dive Into Python" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Whether youre an experienced programmer looking to get into Python or grizzled Python veteran who remembers the days when you had to import the string module, Dive Into Python is your desert island Python book. Joey deVilla, Slashdot contributor As a complete newbie to the language...I constantly had those little thoughts like, this is the way a programming language should be taught. Lasse Koskela , JavaRanch Apress has been profuse in both its quantity and quality of releasesand (this book is) surely worth adding to your technical reading budget for skills development. Blane Warrene, Technology Notes I am reading this ... because the language seems like a good way to accomplish programming tasks that dont require the low-level bit handling power of C. Richard Bejtlich, TaoSecurity Python is a new and innovative scripting language. It is set to replace Perl as the programming language of choice for shell scripters, and for serious application developers who want a feature-rich, yet simple language to deploy their products. Dive Into Python is a hands-on guide to the Python language. Each chapter starts with a real, complete code sample, proceeds to pick it apart and explain the pieces, and then puts it all back together in a summary at the end. This is the perfect resource for you if you like to jump into languages fast and get going right away. If youre just starting to learn Python, first pick up a copy of Magnus Lie Hetlands Practical Python. Table of Contents Installing Python Your First Python Program Native Datatypes The Power of Introspection Objects and Object-Orientation Exceptions and File Handling Regular Expressions HTML Processing XML Processing Scripts and Streams HTTP Web Services SOAP Web Services Unit Testing Test-First Programming Refactoring Functional Programming Dynamic Functions Performance Tuning

Mark Pilgrim: author's other books


Who wrote Dive Into Python? Find out the surname, the name of the author of the book and a list of all author's works by series.

Dive Into Python — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Dive Into Python" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Dive Into Python

20 May 2004

Copyright 2000, 2001, 2002, 2003, 2004

This book lives at http://diveintopython.org/. If you're reading it somewhere else, you may not have the latest version.

Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in .

The example programs in this book are free software; you can redistribute and/or modify them under the terms of the Python license as published by the Python Software Foundation. A copy of the license is included in .

Table of Contents

Chapter 1. Installing Python

Welcome to Python . Let's dive in. In this chapter, you'll install the version of Python that's right for you.

1.1. Which Python is right for you?

The first thing you need to do with Python is install it. Or do you?

If you're using an account on a hosted server, your ISP may have already installed Python . Most popular Linux distributions come with Python in the default installation. Mac OS X 10.2 and later includes a command-line version of Python , although you'll probably want to install a version that includes a more Mac-like graphical interface.

Windows does not come with any version of Python , but don't despair! There are several ways to point-and-click your way to Python on Windows.

As you can see already, Python runs on a great many operating systems. The full list includes Windows, Mac OS , Mac OS X, and all varieties of free UNIX -compatible systems like Linux. There are also versions that run on Sun Solaris, AS/400, Amiga, OS/2, BeOS, and a plethora of other platforms you've probably never even heard of.

What's more, Python programs written on one platform can, with a little care, run on any supported platform. For instance, I regularly develop Python programs on Windows and later deploy them on Linux.

So back to the question that started this section, Which Python is right for you? The answer is whichever one runs on the computer you already have.

1.2. Python on Windows

On Windows, you have a couple choices for installing Python .

ActiveState makes a Windows installer for Python called ActivePython , which includes a complete version of Python , an IDE with a Python -aware code editor, plus some Windows extensions for Python that allow complete access to Windows-specific services, API s, and the Windows Registry.

ActivePython is freely downloadable, although it is not open source. It is the IDE I used to learn Python , and I recommend you try it unless you have a specific reason not to. One such reason might be that ActiveState is generally several months behind in updating their ActivePython installer when new version of Python are released. If you absolutely need the latest version of Python and ActivePython is still a version behind as you read this, you'll want to use the second option for installing Python on Windows.

The second option is the official Python installer, distributed by the people who develop Python itself. It is freely downloadable and open source, and it is always current with the latest version of Python .

Procedure 1.1. Option 1: Installing ActivePython

Here is the procedure for installing ActivePython :

  1. Download ActivePython from http://www.activestate.com/Products/ActivePython/.

  2. If you are using Windows 95, Windows 98, or Windows ME, you will also need to download and install Windows Installer 2.0 before installing ActivePython .

  3. Double-click the installer, ActivePython-2.2.2-224-win32-ix86.msi .

  4. Step through the installer program.

  5. If space is tight, you can do a custom installation and deselect the documentation, but I don't recommend this unless you absolutely can't spare the 14MB.

  6. After the installation is complete, close the installer and choose Start -> Programs -> ActiveState ActivePython 2.2 -> PythonWin IDE . You'll see something like the following:

PythonWin 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32.Portions Copyright 1994-2001 Mark Hammond (mhammond@skippinet.com.au) -see 'Help/About PythonWin' for further copyright information.>>>
Procedure 1.2. Option 2: Installing Python from Python.org
  1. Download the latest Python Windows installer by going to http://www.python.org/ftp/python/ and selecting the highest version number listed, then downloading the .exe installer.

  2. Double-click the installer, Python-2.xxx.yyy.exe . The name will depend on the version of Python available when you read this.

  3. Step through the installer program.

  4. If disk space is tight, you can deselect the HTMLHelp file, the utility scripts ( Tools/ ), and/or the test suite ( Lib/test/ ).

  5. If you do not have administrative rights on your machine, you can select Advanced Options , then choose Non-Admin Install . This just affects where Registry entries and Start menu shortcuts are created.

  6. After the installation is complete, close the installer and select Start -> Programs -> Python 2.3 -> IDLE (Python GUI) . You'll see something like the following:

Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on win32Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 1.0>>>
1.3. Python on Mac OS X

On Mac OS X, you have two choices for installing Python : install it, or don't install it. You probably want to install it.

Mac OS X 10.2 and later comes with a command-line version of Python preinstalled. If you are comfortable with the command line, you can use this version for the first third of the book. However, the preinstalled version does not come with an XML parser, so when you get to the XML chapter, you'll need to install the full version.

Rather than using the preinstalled version, you'll probably want to install the latest version, which also comes with a graphical interactive shell.

Procedure 1.3. Running the Preinstalled Version of Python on Mac OS X

To use the preinstalled version of Python , follow these steps:

  1. Open the /Applications folder.

  2. Open the Utilities folder.

  3. Double-click Terminal to open a terminal window and get to a command line.

  4. Type python at the command prompt.

Try it out:

Welcome to Darwin![localhost:~] you% pythonPython 2.2 (#1, 07/14/02, 23:25:09)[GCC Apple cpp-precomp 6.14] on darwinType "help", "copyright", "credits", or "license" for more information.>>> [press Ctrl+D to get back to the command prompt][localhost:~] you%
Procedure 1.4. Installing the Latest Version of Python on Mac OS X

Follow these steps to download and install the latest version of Python :

  1. Download the MacPython-OSX disk image from http://homepages.cwi.nl/~jack/macpython/download.html.

  2. If your browser has not already done so, double-click MacPython-OSX-2.3-1.dmg to mount the disk image on your desktop.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Dive Into Python»

Look at similar books to Dive Into Python. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Dive Into Python»

Discussion, reviews of the book Dive Into Python and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.