attr: teacher.__doc__
Project description
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.
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file teacher-0.0.2.tar.gz
.
File metadata
- Download URL: teacher-0.0.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd033eb7f465580782ee5145bbb408b7bfee087523721c66314ee4d4571b1ec2 |
|
MD5 | ad7eb7308a1fa610d6a14725373dabe9 |
|
BLAKE2b-256 | 4558bb89b99e559c1c53a901366482e32a9527cf1e50d657f11dfea616b19c6f |
File details
Details for the file teacher-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: teacher-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4f10cedb706633973fd1ec2884b48bd2f34690732ac8fb33125b501e212de2 |
|
MD5 | 2aff4763c264a946a17dc7c6afaef605 |
|
BLAKE2b-256 | f2e3ef622449b5c60bf51539fb0851db5c4419bcf7590003ecbd0512e58e3335 |