My Account Log in

3 options

Python essentials : modernize existing Python code and plan code migrations to Python using this definitive guide / Steven F. Lott.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Lott, Steven F., author.
Series:
Community experience distilled.
Community Experience Distilled
Language:
English
Subjects (All):
Python (Computer program language).
Scripting languages (Computer science).
Physical Description:
1 online resource (298 p.)
Edition:
1st edition
Other Title:
Modernize existing Python code and plan code migrations to Python using this definitive guide
Place of Publication:
Birmingham, England ; Mumbai, [India] : Packt Publishing, 2015.
Language Note:
English
System Details:
text file
Biography/History:
Lott Steven F. : Steven Lott has been programming since computers were large, expensive, and rare. Working for decades in high tech has given him exposure to a lot of ideas and techniques, some bad, but most are helpful to others. Since the 1990s, Steven has been engaged with Python, crafting an array of indispensable tools and applications. His profound expertise has led him to contribute significantly to Packt Publishing, penning notable titles like "Mastering Object-Oriented, " "The Modern Python Cookbook, " and "Functional Python Programming. " A self-proclaimed technomad, Steven's unconventional lifestyle sees him residing on a boat, often anchored along the vibrant east coast of the US. He tries to live by the words Don't come home until you have a story.
Summary:
This book is designed for Python 2 developers who want to get to grips with Python 3 in a short period of time. It covers the key features of Python, assuming you are familiar with the fundamentals of Python 2.
Contents:
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started; Installation or upgrade; Installing Python on Windows; Considering some alternatives; Upgrading to Python 3.4 in Mac OS X; Adding the Tkinter package; Upgrading to Python 3.4 in Linux; Using the Read-Evaluate-Print Loop (REPL); Confirming that things are working; Doing simple arithmetic; Assigning results to variables; Using import to add features; Interacting with the help subsystem; Using the pydoc program; Creating simple script files
Simplified syntax rulesThe Python ecosystem; The idea of extensibility via add-ons; Using the Python Package Index - PyPI; Using pip to gather modules; Using easy_install to add modules; Installing modules manually; Looking at other Python interpreters; Summary; Chapter 2: Simple Data Types; Introducing the built-in operators; Making comparisons; Using integers; Using the bit-oriented operators; Using rational numbers; Using decimal numbers; Using floating-point numbers; Using complex numbers; The numeric tower; The math libraries; Using bits and Boolean values; Working with sequences
Slicing and dicing a sequenceUsing string and bytes values; Writing string literals; Using raw string literals; Using byte string literals; Using the string operators; Converting between Unicode and bytes; Using string methods; Accessing the details of a string; Parsing strings into substrings; Using the tuple collection; The None object; The consequences of immutability; Using the built-in conversion functions; Summary; Chapter 3: Expressions and Output; Expressions, operators, and data types; Using operators on non-numeric data; The print() function; Examining syntax rules
Splitting, partitioning, and joining stringsUsing the format() method to make more readable output; Summary of the standard string libraries; Using the re module to parse strings; Using regular expressions; Creating a regular expression string; Working with Unicode, ASCII and bytes; Using the locale module for personalization; Summary; Chapter 4: Variables, Assignment and Scoping Rules; Simple assignment and variables; Multiple assignment; Using repeated assignment; Using the head, *tail assignment; Augmented assignment; The input() function; Python language concepts
Object types versus variable declarationsAvoiding confusion when naming variables; Garbage collection via reference counting; The little-used del statement; The Python namespace concept; Globals and locals; Summary; Chapter 5: Logic, Comparisons, and Conditions; Boolean data and the bool() function; Comparison operators; Combining comparisons to simplify the logic; Testing float values; Comparing object IDs with the is operator; Equality and object hash values; Logic operators - and, or, not, if-else; Short-circuit (or non-strict) evaluation; The if-elif-else statement; Adding elif clauses
The pass statement as placeholder
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed August 1, 2015).
OCLC:
914797027

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account