Skip to main content
### Disclaimer

dutc = Don't Use This Code (!!)

# Compatibility

* Python 3.5 or higher
* Linux or OS X
* need build toolchain (prob. need `gcc`)

# Read Watches in Python

```python
>>> import rwatch # enable functionality
>>> from sys import setrwatch, getrwatch
>>> x, y, z = object(), object(), object()
>>> def view(frame, obj):
... print(frame, obj)
... return obj
...
>>> setrwatch({id(x): view, id(y): view})
>>> getrwatch()
{139825758638208: <function view at 0x7f2bb89a59d8>, 139825758638224: <function view at 0x7f2bb89a59d8>}
>>> x
<frame object at 0x7f2bb8ad9ba8> <object object at 0x7f2bb8ac9080>
<object object at 0x7f2bb8ac9080>
>>> y
<frame object at 0x7f2bb8ad9d48> <object object at 0x7f2bb8ac9090>
<object object at 0x7f2bb8ac9090>
>>> z
<object object at 0x7f2bb8ac90a0>
```
# Lessons:
* read watches are a very useful tool for debugging
* it's actually very useful for a language to have a runtime
* there are some hidden equivalencies between, e.g., read watches and perfect proxy objects

Metadata

Release files for dutc-rwatch 0.1.1

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

Source distribution (sdist)

Source distribution for dutc-rwatch 0.1.1
File Size Uploaded
dutc-rwatch-0.1.1.tar.gz 45.9 kB Details

Release files / dutc-rwatch-0.1.1.tar.gz

Download URL dutc-rwatch-0.1.1.tar.gz
Size 45.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aa860827fb26911719cd93f085bfca7eab06e89eb89e181cd40a0e238d2815fd
BLAKE2b-256 checksum
How to use checksums
1e97883396bf85c3885ae192228a72a31eb7aea47bc18b5a89083bce456d7413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

2 release files

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