Python developers handbook

1.5K 394 0
Python developers handbook

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Web Development > Python Developer's Handbook See All Titles Python Developer's Handbook André Dos Santos Lessa Publisher: Sams Publishing First Edition December 12, 2000 ISBN: 0-672-31994-2, 960 pages Buy Print Version Front Matter Table of Contents Index About the Author The Python Developer’s Handbook is designed to expose experienced developers to Python and its uses Beginning with a brief introduction to the language and its syntax, the book moves quickly into more advanced programming topics, including embedding Python, network programming, GUI toolkits, JPython, Web development, Python/C API, and more Python is an interpreted, object-oriented programming language Its syntax is simple and easy to learn, and it encourages programmers to write and think clearly The Python Developer’s Handbook is carefully written, well-organized introduction to this powerful, fast-growing programming language for experienced developers Last updated on 1/30/2002 Python Developer's Handbook, © 2002 Sams Publishing © 2002, O'Reilly & Associates, Inc Web Development > Python Developer's Handbook > Introduction < BACK Make Note | Bookmark 152015024128143245168232148039199167010047123209178152124239215162145093180142147166131082 See All Titles CONTINUE > Introduction When I was a little kid, I had this dream where a snake would rule and dominate the entire world (actually, I guess that a penguin was also part of the dream…but never mind) I didn't pay much attention to the fact at that time because I thought the dream was caused by an overexposure to all those Japanese series that were popping up on the screens Later, in my teenage years, there was this science project where I had to spend some time studying snakes to display at an exhibition After analyzing Red Tail boas and coral snakes, I found this 3-year old giant of 10 feet, 40+ pounds Instantly, I recognized that snake as being the same one that I had seen in my dream years before Its name was Python, but at that time, I still couldn't figure out what was the relationship between that reptile and the world domination Fifteen years ago, I was trying to select a channel in my old TV set, when a special program caught my attention—A huge animated foot was dancing in the opening titles After the program started, there were a group of funny guys who were playing jokes about parrots and lumberjacks After watching tons of episodes and all their five films, I decided to write a book about them I noticed that they were called Python too Maybe that was the answer That troupe would dominate the entire world I wanted to let everyone know about it Initially I had planned to write about the actors and their most famous sketches, but I had to abandon the idea when I realized that my editors wouldn't give me enough time to write a book of approximately 25,030 pages That would be a nice bestseller, though Even though none of the previous facts has really happened, both have at least one thing in common—the name Python Python is also a scripting language whose name's origin has much to with the English troupe than with the legless reptile This book will guide you step-by-step through the universe of Python, a fantastic programming language that can help you to implement solutions for almost all types of IT challenges that you might face Almost all IT-related tasks, such as the manipulation of database systems, or the design of Web-driven applications can be managed using Python Maybe that's the answer for my dream For the last couple of months, I've been trying to organize all the information about Python that I have available, arranging them in this book I can't say that I have included every little thing in the book, but I know that I have covered the most important aspects of the Python language Note that along the 5month development period of this book, Python had several version upgrades, which made things way more difficult to organize So, I apologize if something important is missing This book is organized into 18 chapters and some additional appendixes, where each one covers a specific aspect of the language Inside each chapter, you will find many hints about how to use Python to meet your needs As you might agree with me, it is impossible to cover every single aspect of the language in such a complete and up-to-date way That's why I choose to provide Web links to other sources of material that I think will be useful for your learning What this book covers? A short answer is The book starts with a very extensive review of the language and the modules that come as part of the Python distribution It goes through Object-Oriented Programming, Networking, Web Development, Graphical Interfaces, and other important topics The last chapter covers JPython, a version of Python that runs in Java systems A long answer is Chapter explains what Python is, why Python must be used, where to get support and how to go through each installation process Chapter is a complete review of the Python programming language By the end of this chapter, you will learn how to create Python applications Chapter shows which main modules extensions are currently available and for what purposes they can be used The focus here is to expand your knowledge about the Python libraries, showing the resources that you already have available in the Python programming language Chapter demonstrates how to handle exception situations and how to avoid error messages Chapter introduces the OO methodology in a very complete and direct way You will be able to easily create and use objects and classes in your programs after reading this chapter Chapter discusses extending and embedding Python You will learn how to extend Python methods using other languages and how to call Python methods from within other applications Chapter explains objects interfacing and distribution The information provided in this chapter explains objects distribution and how to use them from within other systems Chapter shows all the database options available within Python For those that don't know anything about database yet, it explains how databases work and how to execute basic SQL statements Chapter provides very useful information concerning the use and manipulation of some advanced topics, including images, sounds, threads, and scientific Python Modules Chapter 10 explains basic network concepts and invites you to play with these concepts using Python programs Chapter 11 provides information concerning how to use Python for Internet development It also introduces you to some well-known Python third-party Web applications Chapter 12 provides information concerning how to use Python for scripting programming Chapter 13 provides information concerning how to use Python for data parsing and manipulation, such as XML parsing and mail processing Chapter 14 shows what the available GUI options for graphic designing in Python are Chapter 15 provides Tkinter information For those that don't know yet, Tkinter is the standard Python GUI Chapter 16 shows some performance suggestions, and guides you through the process of writing clean code within style Chapter 17 introduces a handful programming tools You will learn how to go through all the development stages without fear, including how to debug, compile, and distribute Python applications Chapter 18 demonstrates how easy it is to mix Java and Python using JPython Now that you know that you have a lot of interesting material to learn, I suggest you accept my hint: The best way to read this book is by sitting on a comfortable beach chair, or laying on your bed, and relaxing If for some reason, if you think the topic is getting boring, just turn the page and go to another chapter until you find something that you like Later, you can return to where you originally left This book can be read from the start, or you can go directly to the chapter that teaches a specific functionality It's your choice! So, what are you waiting for? Turn this page at once, and get ready to start dominating the world Last updated on 1/30/2002 Python Developer's Handbook, © 2002 Sams Publishing < BACK Make Note | Bookmark © 2002, O'Reilly & Associates, Inc CONTINUE > Python Developer's Handbook See All Titles Python Developer's Handbook [Symbol][A][B][C][D][E][F][G][H][I][J][K][L][M][N][Symbol][O][P][Q][R][S][T][U][V][W][X][Y][value attribute value option 2nd values AF_INET AF_UNIX assigning to substrings assigning to variables, modules c changing at execution time counter family indexer strings mode n null assigning to variables NULL Structured Query Language (SQL) r returning returning from functions, tuples socket type sys module objects sys.exe_traceback sys.exe_type sys.exe_value transporting tuples unnormalized w values() method variable option variable property variables ($PATH) ($PYTHONPATH) accessing instances addresslist AddressList objects apilevel assigning functions to assigning objects to attributes classes deallocating declaring PyObject double elements entitydefs environment scanning exceptions, Python/C Application Programmers Interface (API) finding float formatter global changing inside functions initializing instance last level listing modules assigning values to MultiFile (fp[, optimizing packing paramstyle PATH PYTHONPATH PYTHONSTARTUP request_queue_size socket type sys.argv sys.path TCL_LIBRARY threadsafety TK_LIBRARY typed watch adding, Pythonwin variablesÓ Ò verifying errors extension modules , 2nd UNIX passwords versioncheck program versions of Python Vi (visual editor) Viega, John View/Options option, Pythonwin viewing error symbols input and output lines, lists Visible property changing Visual Basic (VB) programming language implementing Common Object Model (COM) objects visual editor (Vi) Visual Interdev void Py_Finalize() function Last updated on 1/30/2002 Python Developer's Handbook, © 2002 Sams Publishing © 2002, O'Reilly & Associates, Inc Web Development > Python Developer's Handbook See All Titles Python Developer's Handbook [Symbol][A][B][C][D][E][F][G][H][I][J][K][L][M][N][Symbol][O][P][Q][R][S][T][U][V][W][X][Y][w (write) mode w value w(here) command W3C (World Wide Web Consortium) wafepython module wait_variable(variable) method wait_visibility(widget) method wait_window(widget) method 2nd watch variables adding, Pythonwin wave files writing 2nd wb mode Web pages copying into local files outputting links from HTML files to, CGI scripts parsing retrieving Web servers building See : HTTP serversWeb serversÓ Ò Web sites Concurrent Version System (CVS) GNU Web site Python documentation Python news 2nd PythonLabs SourceForge WinZip Web site webbrowser module Webchecker webchecker program WebDAV (World Wide Web Distributed Authoring and Versioning) 2nd websucker module weight option what() function whatis arg WHERE clause whereis python command which program 2nd while statement whitespace whitespaces Widget Athena front end (Wafe) module widget attribute 2nd associating with toplevels binding events Button Canvas Checkbutton Entry Frame Label Listbox Menu Menubutton Message 2nd Radiobutton Scale Scrollbar Text 2nd Toplevel width argument width attribute width option width property width() method Win32 running Python win32.com.client.Dispatch() function win32.com.client.gencache module 2nd 2nd window option window() method Windows bindings, File Editor windows changing fonts Windows command-line options, interpreters windows creating editor Windows executing scripts from fonts installing Python installing Tkinter Java Virtual Machine (JVM) support, JPython launching Python applications linking dynamic extensions to interpreters linking static extensions to interpreters Macintosh Specific library MS Windows Specific library odbc module windows Python Shell Windows Registry Common Object Model (COM) object storage saving files, Tkinter thread support transferring data between applications Windows CE running Python Windows installer downloading and running Windows Scripting Host (WSH) Windows socket application program interface (Winsock) 2nd Winsock (Windows socket application program interface) 2nd withdraw() method wizards PythonWin WM_SAVE_YOURSELF protocol WM_TAKE_FOCUS protocol Word opening and manipulating from Python word completion mechanism World Wide Web development for WebLog World Wide Web Consortium (W3C) World Wide Web Distributed Authoring and Versioning (WebDAV) wraplength property wrapper files generating wrappers creating extension modules and embedding Python objects Pythonwin Word implementing , 2nd write (w) mode write() method writeframes(data) method writeframesraw(data) method writer attribute 2nd writing applets beans classes code style guides , 2nd , 3rd , 4th , 5th , 6th Common Gateway Interface (CGI) scripts Extensible Markup Language (XML) files file dialog boxes frames to align colored buttons IDLE extensions image objects menu bars menus messages pop-up menus pull-down menus Python applications radiobuttons registries scripts single line interfaces status bars subclasses thread data structures toolbars wave files windows WSH (Windows Scripting Host) 2nd Last updated on 1/30/2002 Python Developer's Handbook, © 2002 Sams Publishing © 2002, O'Reilly & Associates, Inc Web Development > Python Developer's Handbook See All Titles Python Developer's Handbook [Symbol][A][B][C][D][E][F][G][H][I][J][K][L][M][N][Symbol][O][P][Q][R][S][T][U][V][W][X][Y][x argument x attribute x format x_root attribute 2nd XDR (External Data Representation Standard) XDR Data Exchange Format manipulating data 2nd XEmacs editing source code , 2nd , 3rd XML support in Python 2.0 2nd xml module xml package PyXML XML Processing with Python XML-RPC How To for Zope Users XML-RPC library manipulating data xmllib module XMLParser module xmlrpc package 2nd XOR (exclusive OR) operator xrange() function XrangeType object type XSL Transformations (XSLT) XSLT (XSL Transformations) xxci program Last updated on 1/30/2002 Python Developer's Handbook, © 2002 Sams Publishing © 2002, O'Reilly & Associates, Inc Web Development > Python Developer's Handbook See All Titles Python Developer's Handbook [Symbol][A][B][C][D][E][F][G][H][I][J][K][L][M][N][Symbol][O][P][Q][R][S][T][U][V][W][X][Y][y argument Yahoo! Last updated on 1/30/2002 Python Developer's Handbook, © 2002 Sams Publishing © 2002, O'Reilly & Associates, Inc ... Profiling Python Distributing Python Applications Summary VI: Python and Java Chapter 18 JPython Welcome to JPython Java Integration Downloading and Installing JPython The Interpreter The JPython... Running Python on Specific Platforms Python on Win32 Systems Python on MacOS Systems Python on UNIX Systems Other Platforms C Python Copyright Notices Python 2.0 License Information Python' s... Introduction to Python Why Use Python? Main Technical Features Python Distribution Installing and Configuring Python Python and Other Languages Patches and Bugs List PSA and the Python Consortium

Ngày đăng: 12/09/2017, 01:40

Mục lục

  • Python Developer's Handbook - Sams Dec 2000

    • Python Developer's Handbook

      • About the Author

      • Acknowledgments

      • Tell Us What You Think!

      • Introduction

      • Table of Contents

      • Part I: Basic Programming

        • 1. Introduction

          • Introduction to Python

          • Why Use Python?

          • Main Technical Features

          • Python Distribution

          • Installing and Configuring Python

          • Python and Other Languages

          • Patches and Bugs List

          • PSA and the Python Consortium

          • Summary

          • 2. Language Review

            • Language Review

            • The Shell Environment

            • Programs

            • Built-In Data Types

            • Operators

            • Expressions

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan