• Complain

Mark Lutz - Learning Python: powerful object-oriented programming

Here you can read online Mark Lutz - Learning Python: powerful object-oriented programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, 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.

Mark Lutz Learning Python: powerful object-oriented programming
  • Book:
    Learning Python: powerful object-oriented programming
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2013
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Learning Python: powerful object-oriented programming: summary, description and annotation

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

Get a comprehensive, in-depth introduction to the core Python language with this hands-on book. Based on author Mark Lutzs popular training course, this updated fifth edition will help you quickly write efficient, high-quality code with Python. Its an ideal way to begin, whether youre new to programming or a professional developer versed in other languages.Complete with quizzes, exercises, and helpful illustrations, this easy-to-follow, self-paced tutorial gets you started with both Python 2.7 and 3.3the latest releases in the 3.X and 2.X linesplus all other releases in common use today. Youll also learn some advanced language features that recently have become more common in Python code. Explore Pythons major built-in object types such as numbers, lists, and dictionaries Create and process objects with Python statements, and learn Pythons general syntax model Use functions to avoid code redundancy and package code for reuse Organize statements, functions, and other tools into larger components with modules Dive into classes: Pythons object-oriented programming tool for structuring code Write large programs with Pythons exception-handling model and development tools Learn advanced Python tools, including decorators, descriptors, metaclasses, and Unicode processing

Mark Lutz: author's other books


Who wrote Learning Python: powerful object-oriented programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

Learning Python: powerful object-oriented programming — 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 "Learning Python: powerful object-oriented programming" 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
Appendix A. Installation and Configuration

This appendix provides additional installation and configuration details as a resource for people new to these topics. Its located here because not all readers will need to deal with these subjects up front. Because it covers some peripheral topics such as environment variables and command-line arguments, though, this material probably merits at least a quick scan for most readers.

Installing the Python Interpreter

Because you need the ) or self-installing system, your setup tasks may be trivial or null.

Is Python Already Present?

Before you do anything else, check whether you already have a recent Python on your machine. If you are working on Linux, Mac OS X, or some Unix systems, Python is probably already installed on your computer, though it may be one or two releases behind the cutting edge. Heres how to check:

  • On Windows 7 and earlier, check whether there is a Python entry in the Start buttons All Programs menu (at the bottom left of the screen). On Windows 8 , look for Python in a Start screen tile, your Search tool, the All apps display on your Start screen, or a File Explorer in desktop mode (more on Windows 8 in an upcoming sidebar).

  • On Mac OS X , open a Terminal window (ApplicationsUtilitiesTerminal) and type python at the prompt. Python, IDLE, and its tkinter GUI toolkit are standard components of this system.

  • On Linux and Unix , type python at a shell prompt (a.k.a. terminal window), and see what happens. Alternatively, try searching for python in the usual places/usr/bin, /usr/local/bin, etc. As on Macs, Python is a standard part of Linux systems.

If you find a Python, make sure its a recent version. Although any recent Python will do for most of this text, this edition focuses on Python 3.3 and 2.7 specifically, so you may want to install one of these to run some of the examples in this book.

Speaking of versions , per the preface, I recommend starting out with Python 3.3 or later if youre learning Python anew and dont need to deal with existing 2.X code; otherwise, you should generally use Python 2.7. Some popular Python-based systems still use older releases, though (2.6 and even 2.5 are still widespread), so if youre working with existing systems be sure to use a version relevant to your needs; the next section describes locations where you can fetch a variety of Python versions.

Where to Get Python

If there is no Python on your machine, you will need to install one yourself. The good news is that Python is an open source system that is freely available on the Web and very easy to install on most platforms.

You can always fetch the latest and greatest standard Python release from http://www.python.org, Pythons official website. Look for the Downloads link on that page, and choose a release for the platform on which you will be working. Youll find prebuilt self-installer files for Windows (run to install), Installer Disk Images for Mac OS X (installed per Mac conventions), the full source code distribution (typically compiled on Linux, Unix, or OS X machines to generate an interpreter), and more.

Although Python is standard on Linux these days, you can also find RPMs for Linux on the Web (unpack them with rpm ). Pythons website also has links to pages where versions for other platforms are maintained, either at Python.org (http://www.python.org) itself or offsite. For example, you can find third-party Python installers for Googles Android , as well as apps to install Python on Apples iOS .

A Google web search is another great way to find Python installation packages. Among other platforms, you can find Python prebuilt for iPods, Palm handhelds, Nokia cell phones, PlayStation and PSP, Solaris, AS/400, and Windows Mobile, though some of these are typically a few releases behind the curve.

If you find yourself pining for a Unix environment on a Windows machine, you might also be interested in installing Cygwin and its version of Python (see http://www.cygwin.com). Cygwin is a GPL-licensed library and toolset that provides full Unix functionality on Windows machines, and it includes a prebuilt Python that makes use of all the Unix tools provided.

You can also find Python on CD-ROMs supplied with Linux distributions, included with some products and computer systems, and enclosed with some other Python books. These tend to lag behind the current release somewhat, but usually not seriously so.

In addition, you can find Python in some free and commercial development bundles. At this writing, this alternative distributions category includes:

ActiveState ActivePython

A package that combines Python with extensions for scientific, Windows, and other development needs, including PyWin32 and the PythonWin IDE

Enthought Python Distribution

A combination of Python and a host of additional libraries and tools oriented toward scientific computing needs

Portable Python

A blend of Python and add-on packages configured to run directly from a portable device

Pythonxy

A scientific-oriented Python distribution based on Qt and Spyder

Conceptive Python SDK

A bundle targeted at business, desktop, and database applications

PyIMSL Studio

A commercial distribution for numerical analysis

Anaconda Python

A distribution for analysis and visualization of large data sets

This set is prone to change, so search the Web for details on all of the above, and others. Some of these are free, some are not, and some have both free and nonfree versions. All combine the standard Python freely available at http://www.python.org with additional tools, but can simplify install tasks for many.

Finally, if you are interested in alternative Python implementations, run a web search to check out Jython (the Python port to the Java environment) and IronPython (Python for the C#/.NET world), both of which are described in . Installation of these systems is beyond the scope of this book.

Installation Steps

Once youve downloaded Python, you need to install it. Installation steps are very platform-specific, but here are a few pointers for the major Python platforms (biased in volume toward Windows, only because that is the platform where most Python newcomers are likely to encounter the language first):

Windows

For Windows (including XP, Vista, 7, and 8), Python comes as a self-installer MSI program filesimply double-click on its file icon, and answer Yes or Next at every prompt to perform a default install. The default install includes Pythons documentation set and support for tkinter (Tkinter in Python 2.X) GUIs, shelve databases, and the IDLE development GUI. Python 3.3 and 2.7 are normally installed in the directories C:\Python33 and C:\Python27 though this can be changed at install time.

For convenience, on Windows 7 and earlier Python shows up after the install in the Start button s All Programs menu (see ahead for Windows 8 notes). Pythons menu there has five entries that give quick access to common tasks: starting the IDLE user interface, reading module documentation, starting an interactive session, reading Pythons standard manuals, and uninstalling. Most of these options involve concepts explored in detail elsewhere in this text.

When installed on Windows, Python also automatically uses filename associations to register itself to be the program that opens Python files when their icons are clicked (a program launch technique described in ). It is also possible to build Python from its source code on Windows, but this is not commonly done so well skip the details here (see python.org).

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Learning Python: powerful object-oriented programming»

Look at similar books to Learning Python: powerful object-oriented programming. 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 «Learning Python: powerful object-oriented programming»

Discussion, reviews of the book Learning Python: powerful object-oriented programming 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.