Instructor-led training
Intermediate Python 3.x Training in Rialto, California
This 4 day course picks up where Introduction to Python 3 leaves off, covering some topics in more detail, and adding many new ones, with a focus on enterprise development.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Rialto, California or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
What makes this material hard to master
The challenge here is breadth plus a few ideas that behave differently from what working scripters expect. The syllabus runs from idioms through classes and metaprogramming to databases, GUIs, networking, threads and C extensions, and each layer assumes the one before it.
- Idioms and scope. Unpacking function arguments, lambda functions, list comprehensions, iterables and generators change how you structure loops. Name resolution (scope) and the module search path explain many surprising
NameErrorand import problems, and the Gotchas appendix collects the common traps. - Classes to metaprogramming. Properties, class data, class methods, multiple inheritance and
super()must be solid before decorator functions, decorator classes, decorator parameters, creating classes at runtime and monkey patching make sense. Decorators with parameters are usually the first place students get lost, because they are functions returning functions that return functions. - Concurrency. Threads, shared variables, queues and the multiprocessing module are covered, along with debugging threaded programs. Bugs here depend on timing and may not reproduce, so the syllabus topic on alternatives to multiprogramming matters as much as the mechanics.
- Crossing boundaries. Parameterized statements and transactions in the DB API, the
structmodule for binary data, sockets, and C extensions through hand-coded C, SWIG and ctypes all require care with data representation, error handling and resource ownership.
A common misconception is that this is a tour of the standard library. The labs build on one another, and the useful skill is knowing which tool fits: ElementTree or JSON, threads or processes, hand-written C or ctypes.
Who it suits and what to take around it
The course suits developers who can already write simple Python scripts with basic data types, program structure and the standard library, and who now need to build larger, maintainable programs. Training managers can treat it as a bridge from scripting to application development: the syllabus includes testing, linting, debugging, profiling, logging and database access alongside the language features.
If your team's scripting is still shaky, start with Introduction to Python 3.x, since this course picks up where that one leaves off and moves quickly through its refresher.
After this course, Advanced Python 3 (4 Day Course) is a natural next step for teams that want to go deeper into the language. Teams whose work is mainly analysis can follow with Python Data Analysis with NumPy and Pandas, which covers a domain this syllabus does not. The full list is on the Python Programming courses and learning guide.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
An operations script. For example, a team might replace a collection of shell scripts with one command-line tool. It would walk directory trees, read environment variables, launch external programs with the subprocess module, parse command-line options, act as a filter in a pipeline, and write leveled log entries to a file. These map to the OS Services, System Administration and Scripting topics.
A data-feed service. A team might consume a web service, read the JSON or XML it returns with ElementTree and XPath, and store the results through the DB API using parameterized statements and explicit transactions. Packages, unittest fixtures and Pylint would keep that code maintainable as it grows.
A worker with a native library. A team might need background workers fed through a queue, plus access to an existing C library. Threads with queues or the multiprocessing module cover the first need. ctypes or SWIG cover the second, with hand-coded C reserved for cases that need finer control.
Using AI coding assistants with these topics
AI coding assistants are useful for drafting boilerplate: a unittest skeleton, a logging configuration, an ElementTree parsing routine or a command-line parser. They can also explain an unfamiliar idiom or suggest a comprehension in place of a loop.
They are less reliable where this course is most demanding:
- Decorators and metaprogramming. Generated decorators often drop argument handling or break introspection, and runtime class creation or monkey patching can look plausible while changing behavior globally.
- Threads. Suggested code may share variables without protection or use queues incorrectly, and it can pass a quick run and still fail under load.
- Database code. Assistants sometimes build SQL by string formatting instead of parameterized statements, and may omit transaction handling.
- C extensions. Error handling, exception objects and memory ownership need careful review; generated wrappers may not build or may crash at runtime.
- Edge cases. Check encodings, empty input and path handling before automating anything.
To verify, run Pylint, write unittest tests for the edge cases yourself, step through suspect logic in the debugger, repeat concurrent tests many times, and profile before accepting an optimization. Confirm that generated code matches the Python version your project uses.
Frequently asked questions
What level is this course?
Intermediate. It is a hands-on, four-day course that builds on an introductory Python course and focuses on enterprise development, with labs that build on earlier labs.
What do I need to know before attending?
You should be able to write simple Python scripts using basic data types, program structures and the standard Python library. A refresher on variables, sequences, mappings, files, conditionals, loops and builtins opens the course.
What does the course cover?
Topics include Pythonic idioms, modules and packages, classes and inheritance, metaprogramming with decorators, developer tools (Pylint, unittest, the debugger, profiling), database access with the DB API, PyQt4 GUI programming, sockets and web data, threads and multiprocessing, subprocess and logging, XML and JSON, and extending Python with C.
Can this be delivered privately for our team, onsite or online?
Yes. HSG delivers private training for organizations either onsite at your location or live online.
Can the content be customized or aligned to our Python version?
Private training can be customized and tailored to the technology versions your organization uses, including current releases. You can request a training proposal to discuss your needs.Training locations
Intermediate Python 3.x training across the U.S. and beyond.
We provide private Intermediate Python 3.x training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Intermediate Python 3.x training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.