Skip to main content

Teacher

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 https://github.com/aroberge/friendly-traceback.

Demo

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

import teacher

a = "Foo"
b = "Bar"

print(a * "bar")

Gives:

$ python test.py
test.py:6: 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.

Metadata

Release files for teacher 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for teacher 0.0.2
File Size Uploaded Provenance Actions
teacher-0.0.2.tar.gz 2.2 kB Without provenance Details for teacher-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for teacher 0.0.2
File Interpreter ABI Platform Actions
teacher-0.0.2-py3-none-any.whl Python 3 none any Details for teacher-0.0.2-py3-none-any.whl

Total release size: 4.5 kB

Release files / teacher-0.0.2.tar.gz

Download URL teacher-0.0.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dd033eb7f465580782ee5145bbb408b7bfee087523721c66314ee4d4571b1ec2
BLAKE2b-256 checksum
How to use checksums
4558bb89b99e559c1c53a901366482e32a9527cf1e50d657f11dfea616b19c6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Release files / teacher-0.0.2-py3-none-any.whl

Download URL teacher-0.0.2-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb4f10cedb706633973fd1ec2884b48bd2f34690732ac8fb33125b501e212de2
BLAKE2b-256 checksum
How to use checksums
f2e3ef622449b5c60bf51539fb0851db5c4419bcf7590003ecbd0512e58e3335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

Security for teacher 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page