Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

It Works on My Machine - Writing Python Code for Any Environment

EuroPython Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Reviews

Start your review of It Works on My Machine - Writing Python Code for Any Environment

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.