Digibento

Objects and Methods

Hands-on project · Sold on Manning

Objects and Methods by Manning Publications is a hands-on project sold by Manning. It costs $29.99. Refund policy: 7-day refund on liveProjects, before your first upload.

$29.99

Buy at Manning

Digibento may earn a commission at no extra cost to you.

Objects and Methods

Our take

Objects and Methods is a short Manning liveProject on how Python classes, instances and methods fit together. You need to extend a pricing app's price class without permission to change it, so you add methods at runtime with a monkey patch. You create a class with type(), add bound methods and patch a class after creation. Naomi Ceder guides it over one week at 1 to 3 hours.

Level: Intermediate

What you get

  • Monkey patching a class at runtime
  • Creating classes with type()
  • Adding bound methods
  • A real pricing app scenario
  • Short project, 1 to 3 hours

Ideal for

  • Python developers who want to understand objects deeply
  • Intermediate coders preparing for tricky interviews
  • Engineers working around code they cannot change

Use it for

  • Extending a class you cannot edit
  • Learning Python's object model

What you need

  • Python

About this

From Manning

In this liveProject, you’ll take on the task of extending a pricing application. You’ve just hit your first speed bump of needing to add functionality to the class that manages prices. However, that class is used elsewhere and you can’t get permission to change it. Your challenge is to implement a “monkey patch”, adding methods to the class at runtime, by experimenting with Python-bound methods.

Highlights

  • Add functionality to a pricing application
  • Create a class using type()
  • Add bound methods to a class
  • Monkey patch a class after creation

What’s included

  • Self-paced
  • Project roadmap
  • Get Help
  • Compare with others
  • Books included as resources
  • Also included in a Manning Online subscription
Store
Manning
Type
Hands-on project
Category
Online courses
Creator
Manning Publications
Level
Intermediate
Duration
1 week, 1-3 hours per week
Instructor
Naomi Ceder
Released
2021-06-15
Refund
7-day refund on liveProjects, before your first upload

Questions and answers

What's included in Objects and Methods?
Self-paced. Project roadmap. Get Help. Compare with others. Books included as resources.
What does Objects and Methods work on?
It works on the web.
Can I get a refund on Objects and Methods?
Manning says: 7-day refund, before your first upload.

You may also like

More in Online courses

Similar for less

More from Manning

See all