It Works on My Machine - Writing Python Code for Any Environment
Offered By: EuroPython Conference via YouTube
Course Description
Overview
Explore effective techniques for writing Python code that works seamlessly across different environments in this EuroPython conference talk. Learn how to overcome compatibility issues related to Python versions and operating systems through real-world examples drawn from the development of the AWS CLI. Discover strategies for handling version-specific functions, classes, and bugs, managing strings and Unicode, dealing with varying locale settings, and performing file operations across different platforms. Gain insights into vendoring dependencies, writing cross-compatible tests, and creating a testing environment to monitor code compatibility. Master practical programming practices to ensure your Python code runs smoothly on any machine, regardless of the environment.
Syllabus
Intro
Familiar?
Why does compatibility matter?
What will be covered?
The Example Application AWS Command Line Interface
Renaming: Intro
No six compatibility
String Types: Intro
Python String Types
Python 2
Limitations: Intro
Backports
File Handling: Intro
Problem - Issues when concurrently writing to the same file on Windows
Lessons Learned
File Paths: Intro aws s3 cp --recursive
Example: Linux
Example: Windows
Functionality: Intro
Solution (cont.)
Writing: Intro
Dependencies
Best Practices: Inputs
Best Practices: File Handling
Best Practices: Env. Specific
Best Practices: Main Points
Running: Intro
Running: Example
Running: Systems
Major Points
Taught by
EuroPython Conference
Related Courses
Game Development for Modern PlatformsMichigan State University via Coursera Introduction to Xamarin.Forms
Microsoft via edX Building R Packages
Johns Hopkins University via Coursera Multiplatform Mobile App Development with NativeScript
The Hong Kong University of Science and Technology via Coursera Build Mobile Applications with SAP Cloud Platform Mobile Services
SAP Learning