Simply a global object that act as undefined.
Project description
There
Print the current filename and line.
Example, where.py
import there
import there as here
print(here)
print('and')
print(there)
Then python where.py will print:
where.py:4 and where.py:6
That’s it (for now), non more, no less. I have plan – the usually never get realised – to also have a there.indent that return the indentation of the current line.
Gotchas
Returns the line where the __str__, or __repr__ of there is computed. Usually by print. So it might be wrong. If you want to be sure (like when using log) wrap it in str()
Runs only on CPython likely. But anyway don’t run it in production.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
there-0.0.2-py2.py3-none-any.whl
(19.0 kB
view details)
File details
Details for the file there-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: there-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 107e2cc42b51828866295dee770df90301fbd6fe6285e127087395f3bfdac72e |
|
MD5 | b27d9b40a1432f3dede735bc17e00a1a |
|
BLAKE2b-256 | 8cd65e5ece4e650d15cbb739c0fd84127072be2746f7e2fdcaaa36967cc52cce |