• Complain

Alex Martelli - Python in a Nutshell, Second Edition

Here you can read online Alex Martelli - Python in a Nutshell, Second Edition full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2006, publisher: OReilly Media, 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.

Alex Martelli Python in a Nutshell, Second Edition
  • Book:
    Python in a Nutshell, Second Edition
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2006
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Python in a Nutshell, Second Edition: summary, description and annotation

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

This book offers Python programmers one place to look when they need help remembering or deciphering the syntax of this open source language and its many powerful but scantily documented modules. This comprehensive reference guide makes it easy to look up the most frequently needed information--not just about the Python language itself, but also the most frequently used parts of the standard library and the most important third-party extensions.

Ask any Python aficionado and youll hear that Python programmers have it all: an elegant object-oriented language with readable and maintainable syntax, that allows for easy integration with components in C, C++, Java, or C#, and an enormous collection of precoded standard library and third-party extension modules. Moreover, Python is easy to learn, yet powerful enough to take on the most ambitious programming challenges. But what Python programmers used to lack is a concise and clear reference resource, with the appropriate measure of guidance in how best to use Pythons great power. Python in a Nutshell fills this need.

Python in a Nutshell, Second Edition covers more than the language itself; it also deals with the most frequently used parts of the standard library, and the most popular and important third party extensions. Revised and expanded for Python 2.5, this book now contains the gory details of Pythons new subprocess module and breaking news about Microsofts new IronPython project. Our Nutshell format fits Python perfectly by presenting the highlights of the most important modules and functions in its standard library, which cover over 90% of your practical programming needs. This book includes:

  • A fast-paced tutorial on the syntax of the Python language
  • An explanation of object-oriented programming in Python
  • Coverage of iterators, generators, exceptions, modules, packages, strings, and regular expressions
  • A quick reference for Pythons built-in types and functions and key modules
  • Reference material on important third-party extensions, such as Numeric and Tkinter
  • Information about extending and embedding Python

Python in a Nutshell provides a solid, no-nonsense quick reference to information that programmers rely on the most. This book will immediately earn its place in any Python programmers library.

Praise for the First Edition:

In a nutshell, Python in a Nutshell serves one primary goal: to act as an immediately accessible goal for the Python language. True, you can get most of the same core information that is presented within the covers of this volume online, but this will invariably be broken into multiple files, and in all likelihood lacking the examples or the exact syntax description necessary to truly understand a command.
--Richard Cobbett, Linux Format

OReilly has several good books, of which Python in a Nutshell by Alex Martelli is probably the best for giving you some idea of what Python is about and how to do useful things with it.
--Jerry Pournelle, Byte Magazine

Alex Martelli: author's other books


Who wrote Python in a Nutshell, Second Edition? Find out the surname, the name of the author of the book and a list of all author's works by series.

Python in a Nutshell, Second Edition — 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 "Python in a Nutshell, Second Edition" 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
Python in a Nutshell, 2nd Edition
Alex Martelli
Published by OReilly Media

Beijing Cambridge Farnham Kln Sebastopol Tokyo Preface The Python programming - photo 1

Beijing Cambridge Farnham Kln Sebastopol Tokyo

Preface

The Python programming language manages to reconcile many apparent contradictions: it's both elegant and pragmatic, it's both simple and powerful, it's very high-level yet doesn't get in your way when you need to fiddle with bits and bytes, it's suitable for programming novices and great for experts, too.

This book is aimed at programmers with some previous exposure to Python, as well as experienced programmers coming to Python for the first time from other programming languages. The book is a quick reference to Python itself, the most commonly used parts of its vast standard library, and some of the most popular and useful third-party modules and packages, covering a wide range of application areas, including web and network programming, GUIs, XML handling, database interactions, and high-speed numeric computing. The book focuses on Python's cross-platform capabilities and covers the basics of extending Python and embedding it in other applications, using either C or Java.

How This Book Is Organized

This book has five parts, as follows.

Part I, Getting Started with Python
, Introduction to Python

Covers the general characteristics of the Python language and its implementations, and discusses where to get help and information.

, Installation

Explains how to obtain and install Python on your computer(s).

, The Python Interpreter

Covers the Python interpreter program, its command-line options, and how it is used to run Python programs and in interactive sessions. The chapter also mentions text editors that are particularly suitable for editing Python programs and auxiliary programs for thoroughly checking your Python sources, and examines some full-fledged integrated development environments, including IDLE, which comes free with standard Python.

Part II, Core Python Language and Built-ins
, The Python Language

Covers Python syntax, built-in data types, expressions, statements, and how to write and call functions.

, Object-Oriented Python

Explains object-oriented programming in Python.

, Exceptions

Covers how to deal with errors and abnormal conditions in Python programs.

, Modules

Covers how Python lets you group code into modules and packages, how to define and import modules, and how to install third-party Python extensions that are packaged in standard Python ways.

, Core Built-ins

Refers to built-in data types and functions, and some of the most fundamental modules in the standard Python library (roughly, modules supplying functionality that, in some other languages, is built into the language itself).

, Strings and Regular Expressions

Covers Python's powerful string-processing facilities, including Unicode strings and regular expressions.

Part III, Python Library and Extension Modules
, File and Text Operations

Explains how to deal with files and text processing using built-in Python file objects, many modules from Python's standard library, and platform-specific extensions for rich text I/O. The chapter also covers issues of internationalization and localization, and the specific task of defining interactive textmode command sessions with Python.

, Persistence and Databases

Introduces Python's serialization and persistence mechanisms, as well as Python's interfaces to DBM databases, the Berkeley Database, and relational (SQL-based) databases.

, Time Operations

Covers how to deal with times and dates in Python, using the standard library and popular extensions.

, Controlling Execution

Explains how to achieve advanced execution control in Python, including execution of dynamically generated code and control of garbage-collection operations. The chapter also covers some Python internal types, and the specific issue of registering "clean-up" functions to be executed at programtermination time.

, Threads and Processes

Covers Python's functionality for concurrent execution, both via multiple threads running within one process and via multiple processes running on a single machine. The chapter also covers how to access the process's environment, and how to access files via memory-mapping mechanisms.

, Numeric Processing

Shows Python's features for numeric computations, both in standard library modules and in third-party extension packages; in particular, the chapter covers how to use decimal floating-point numbers instead of the default binary floating-point numbers. The chapter also covers how to get and use pseudorandom and truly random numbers.

, Array Processing

Covers built-in and extension packages for array handling, focusing on the traditional Numeric third-party extension, and mentions other, more recently developed alternatives.

, Tkinter GUIs

Explains how to develop graphical user interfaces in Python with the Tkinter package included with the standard Python distribution, and briefly mentions other alternative Python GUI frameworks.

, Testing, Debugging, and Optimizing

Deals with Python tools and approaches that help ensure your programs are correct (i.e., that your programs do what they're meant to do), find and correct errors in your programs, and check and enhance your programs' performance. The chapter also covers the concept of "warning" and the Python library module that deals with it.

Part IV, Network and Web Programming
, Client-Side Network Protocol Modules

Covers many modules in Python's standard library that help you write network client programs, particularly by dealing with various network protocols from the client side and handling URLs.

, Sockets and Server-Side Network Protocol Modules

Explains Python's interfaces to low-level network mechanisms (sockets), standard Python library modules that help you write network server programs, and asynchronous (event-driven) network programming with standard modules and the powerful Twisted extension.

, CGI Scripting and Alternatives

Covers the basics of CGI programming, how to perform CGI programming in Python with standard Python library modules, and how to use "cookies" to deal with session-state in HTTP server-side programming. The chapter also mentions many alternatives to CGI programming for server-side web programming through popular Python extensions.

, MIME and Network Encodings

Shows how to process email and other network-structured and encoded documents in Python.

, Structured Text: HTML

Covers Python library modules that let you process and generate HTML documents.

, Structured Text: XML

Covers Python library modules and popular extensions that let you process, modify, and generate XML documents.

Part V, Extending and Embedding
, Extending and Embedding Classic Python

Shows how to code Python extension modules using C and other classic compiled languages, how to embed Python in applications coded in such languages, and alternative ways to extend Python and access existing C, C++, and Fortran libraries.

, Extending and Embedding Jython

Shows how to use Java classes from the Jython implementation of Python, and how to embed Jython in applications coded in Java.

, Distributing Extensions and Programs
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Python in a Nutshell, Second Edition»

Look at similar books to Python in a Nutshell, Second Edition. 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 «Python in a Nutshell, Second Edition»

Discussion, reviews of the book Python in a Nutshell, Second Edition 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.