Skip to main content

attr: teacher.__doc__

Project description


This module is just a POC on how we could help newcomers better understand some exceptions.

This is just a POC, a full implementation is done by André Roberge at


Importing teacher in an REPL or at the top of a file enable it, like:

import teacher

a = "Foo"
b = "Bar"

print(a * "bar")


$ python TypeError: can't multiply sequence by non-int of type 'str'
You tried to multiply a by 'bar'
which is not allowed, the sequence a can only be multiplied by an integer.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teacher-0.0.2.tar.gz (2.2 kB view hashes)

Uploaded source

Built Distribution

teacher-0.0.2-py3-none-any.whl (2.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page