Oreilly - Modern Python Solutions – Part 1
by Steven F. Lott | Released January 2017 | ISBN: 9781787284517
The latest in modern Python recipes for the busy modern programmer covering the essential fundamentals of Python ProgrammingAbout This VideoDevelop succinct, expressive programs in PythonLearn the best practices and common idioms through carefully explained and structured recipesDiscover new ways to apply Python for the new age of developmentIn DetailPython is the preferred choice of developers, engineers, data scientists, and hobbyists everywhere. It is a great scripting language that can power your applications and provide great speed, safety, and scalability. By exposing Python as a series of simple recipes, you can gain insight into specific language features in a particular context. Having a tangible context helps make the language or standard library feature easier to understand.This video comes with over 100 recipes on the latest version of Python. The recipes will benefit everyone ranging from beginner to an expert. The video is broken down into 13 sections that build from simple language concepts to more complex applications of the language.The recipes will touch upon all the necessary Python concepts related to data structures, OOP, functional programming, as well as statistical programming. You will get acquainted with the nuances of Python syntax and how to effectively use the advantages that it offers. You will end the book equipped with the knowledge of testing, web services, and configuration and application integration tips and tricks.The recipes take a problem-solution approach to resolve issues commonly faced by Python programmers across the globe. You will be armed with the knowledge of creating applications with flexible logging, powerful configuration, and command-line options, automated unit tests, and good documentation. Show and hide more Publisher resources Download Example Code
- Chapter 1 : Numbers, Strings, and Tuples
- The Course Overview 00:03:22
- Creating Meaningful Names and Using Variables 00:11:38
- Working with Large and Small Integers 00:08:03
- Choosing between Float, Decimal, and Fraction 00:12:55
- Choosing between True Division and Floor Division 00:05:23
- Rewriting an Immutable String 00:08:57
- String Parsing with Regular Expressions 00:06:14
- Building Complex Strings with “template”.format() 00:06:13
- Building Complex Strings from Lists of Characters 00:04:44
- Using the Unicode Characters that aren't on Our Keyboards 00:03:27
- Encoding Strings-Creating ASCII and UTF8 Bytes 00:04:29
- Decoding Bytes, How to Get Proper Characters from Some Bytes 00:02:34
- Using Tuples of Items 00:04:16
- Chapter 2 : Statements and Syntax
- Writing Python Script and Module Files 00:07:48
- Writing Long Lines of Code 00:08:10
- Including Descriptions and Documentation 00:05:02
- Writing Better RST Markup in docstring 00:04:04
- Designing Complex if…elif Chains 00:04:43
- Designing a While Statement that Terminates Properly 00:06:12
- Avoiding a Potential Problem with Break Statements 00:05:05
- Leveraging the Exception Matching Rules 00:04:41
- Avoiding a Potential Problem With an Except:Clause 00:02:05
- Chaining Exceptions with the Raise from Statement 00:03:01
- Managing a Context Using the With Statement 00:05:24
- Chapter 3 : Function Definitions
- Designing Functions with Optional Parameters 00:11:03
- Using Super Flexible Keyword Parameter 00:05:16
- Forcing Keyword-only Argument with the * Separator 00:04:19
- Writing Explicit Types on Function Parameters 00:04:47
- Picking an Order for Parameters Based on Partial Functions 00:06:16
- Writing Clear Documentation Strings 00:04:14
- Designing Recursive Functions Around Python’s Stack Limit 00:04:23
- Writing Reusable Script with the Script Library Switch 00:04:31
- Chapter 4 : Built-in Data Structures – List, Sets, and Dict
- Choosing a Data Structure 00:09:38
- Building Lists – Literals, Appending, and Comprehensions 00:09:58
- Slicing And Dicing a List 00:05:20
- Deleting From a List 00:09:14
- Reversing a Copy of a List 00:04:54
- Using Set Methods and Operators 00:08:37
- Removing Items from a Set 00:04:19
- Creating Dictionaries 00:05:34
- Removing from Dictionaries 00:04:16
- Controlling the Order of the Dict Keys 00:03:49
- Handling Dictionaries and Sets in doctest Examples 00:02:25
- Understanding Variables, References, and Assignment 00:03:24
- Making Shallow and Deep Copies of Objects 00:05:47
- Avoiding Mutable Default Values for Function Parameters 00:06:10
- Chapter 5 : User Inputs and Outputs
- Using Features of the print() Functions 00:07:25
- Using input() and getpass() for User Input 00:08:40
- Debugging with “Format”.Format_Map(Vars()) 00:03:17
- Using Argparse to Get Command-line Input 00:06:58
- Using CMD for Creating Command-line Applications 00:06:06
- Using the OS Environment Settings 00:04:57
Show and hide more