close menu
Bookswagon-24x7 online bookstore
close menu
My Account
Home > Computing and Information Technology > Computer programming / software engineering > Beginning Python: Using Python 2.6 and Python 3.1
Beginning Python: Using Python 2.6 and Python 3.1

Beginning Python: Using Python 2.6 and Python 3.1

          
5
4
3
2
1

Out of Stock


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the Book

Beginning Python: Using Python 2.6 and Python 3.1 introduces this open source, portable, interpreted, object-oriented programming language that combines remarkable power with clear syntax. This book enables you to quickly create robust, reliable, and reusable Python applications by teaching the basics so you can quickly develop Web and scientific applications, incorporate databases, and master systems tasks on various operating systems, including Linux, MAC OS, and Windows. You'll get a comprehensive tutorial that guides you from writing simple, basic Python scripts all the way through complex concepts, and also features a reference of the standard modules with examples illustrating how to implement features in the various modules. Plus, the book covers using Python in specific program development domains, such as XML, databases, scientific applications, network programming, and Web development.

Table of Contents:

Introduction xxvii

Part I: Dipping Your Toe into Python 1

Chapter 1: Programming Basics and Strings 3

How Programming is Different from Using a Computer 3

The First Steps 5

Beginning to Use Python — Strings 7

Putting Two Strings Together 11

Putting Strings Together in Different Ways 12

Summary 13

Exercises 14

Chapter 2: Numbers and Operators 15

Different Kinds of Numbers 15

Program Files 18

Using Numbers 24

Summary 28

Exercises 29

Chapter 3: Variables — Names for Values 31

Referring to Data — Using Names for Data 31

Using More Built-in Types 34

Other Common Sequence Properties 43

Summary 47

Exercises 48

Part II: Python Language and the Standard Library 49

Chapter 4: Making Decisions 51

Comparing Values — Are They the Same? 51

Doing the Opposite — Not Equal 53

Comparing Values — Which One Is More? 54

Reversing True and False 56

Looking for the Results of More Than One Comparison 56

Repetition 60

Handling Errors 65

Summary 67

Exercises 69

Chapter 5: Functions 71

Putting Your Program into Its Own File 71

Functions: Grouping Code under a Name 73

Layers of Functions 88

Summary 89

Exercises 90

Chapter 6: Classes and Objects 93

Thinking About Programming 93

Defining a Class 96

Summary 107

Exercises 108

Chapter 7: Organizing Programs 111

Modules 112

Packages 118

Modules and Packages 120

Basics of Testing Your Modules and Packages 124

Summary 124

Exercises 125

Chapter 8: Files and Directories 127

File Objects 127

Paths and Directories 131

Exceptions in os 132

Summary 142

Exercises 142

Chapter 9: Other Features of the Language 143

Lambda and Filter: Short Anonymous Functions 143

Map: Short-Circuiting Loops 144

Decisions within Lists — List Comprehension 145

Generating Iterators for Loops 146

Special String Substitution Using Dictionaries 148

Featured Modules 149

Summary 156

Exercises 156

Chapter 10: Building a Module 157

Exploring Modules 157

Creating Modules and Packages 162

Working with Classes 163

Finishing Your Modules 166

Creating a Whole Module 179

Installing Your Modules 183

Summary 187

Exercises 188

Chapter 11: Text Processing 189

Why Text Processing Is So Useful 189

Navigating the File System with the os Module 192

Working with Regular Expressions and the re Module 199

Summary 203

Exercises 204

Part III: Putting Python to Work 205

Chapter 12: Testing 207

Assertions 208

Test Cases and Test Suites 209

Test Fixtures 213

Putting It All Together with Extreme Programming 216

Formal Testing in the Software Life Cycle 224

Summary 225

Chapter 13: Writing a GUI with Python 227

GUI Programming Toolkits for Python 228

Tkinter Introduction 229

Creating GUI Widgets with Tkinter 229

Summary 238

Exercises 238

Chapter 14: Accessing Databases 239

Working with DBM Persistent Dictionaries 240

Working with Relational Databases 245

Using the Python Database APIs 252

Summary 262

Exercises 263

Chapter 15: Using Python for XML 265

What Is XML? 265

What Is a Schema/DTD? 268

Document Type Definitions 268

Schemas 270

XPath 272

HTML as a Subset of XML 272

XML Libraries Available for Python 274

What Is SAX? 274

Why Use SAX or DOM 275

SAX and DOM Parsers Available for Python 276

Intro to XSLT 280

What Is lxml? 280

Element Classes 281

Parsing with lxml 283

Summary 285

Exercises 285

Chapter 16: Network Programming 287

Understanding Protocols 289

Sending Internet E-mail 293

Retrieving Internet E-mail 305

Socket Programming 314

Introduction to Sockets 314

Binding to an External Hostname 316

Other Topics 332

Summary 334

Exercises 335

Chapter 17: Extension Programming with C 337

Extension Module Outline 338

Building and Installing Extension Modules 340

Passing Parameters from Python to C 342

Returning Values from C to Python 345

The LAME Project 346

The LAME Extension Module 350

Using Python Objects from C Code 363

Summary 366

Exercises 366

Chapter 18: Numerical Programming 367

Numbers in Python 368

Mathematics 374

Complex Numbers 378

Arrays 380

Summary 384

Exercises 384

Chapter 19: An Introduction to Django 387

What Are Frameworks and Why Would I Use One? 388

Other Features of Web Frameworks 388

Django — How It All Began 389

Understanding Django’s Architecture 390

Working with Templates 396

Using Templates and Views 398

Creating a Model: Creating an Application 403

Working with Models: Installation 404

Summary 405

Exercises 406

Chapter 20: Web Applications and Web Services 407

REST: The Architecture of the Web 408

HTTP: Real-World REST 411

CGI: Turning Scripts into Web Applications 417

HTML Forms’ Limited Vocabulary 422

Safety When Accessing Form Values 423

Building a Wiki 428

Web Services 441

REST Web Services 442

XML-RPC 456

SOAP 465

Documenting Your Web Service API 472

Choosing a Web Service Standard 478

Web Service Etiquette 479

Summary 480

Exercises 480

Chapter 21: Integrating Java with Python 481

Scripting within Java Applications 482

Comparing Python Implementations 483

Installing Jython 483

Running Jython 484

Running Jython on Your Own 488

Packaging Jython-Based Applications 488

Integrating Java and Jython 489

Testing from Jython 506

Embedding the Jython Interpreter 507

Handling Differences between C-Python and Jython 510

Summary 511

Exercises 512

Part IV: Appendices 513

Appendix A: Answers to the Exercises 515

Appendix B: Online Resources 549

Appendix C: What’s New in Python 3.1 553

Appendix D: Glossary 559

Index 569


Best Seller

| | See All


Product Details
  • ISBN-13: 9781118057315
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: Wrox Press
  • Language: English
  • Sub Title: Using Python 2.6 and Python 3.1
  • ISBN-10: 1118057317
  • Publisher Date: 06 Jan 2011
  • Binding: Digital (delivered electronically)
  • No of Pages: 624


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Click Here To Be The First to Review this Product
Beginning Python: Using Python 2.6 and Python 3.1
John Wiley & Sons Inc -
Beginning Python: Using Python 2.6 and Python 3.1
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Beginning Python: Using Python 2.6 and Python 3.1

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | | See All


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA