Privacy

Privacy and data use

Effective 11 July 2026. Python By Example has no accounts or advertising, and we do not sell personal information.

Requests and operational logs

The site runs on Cloudflare Workers. Cloudflare processes ordinary request information needed to deliver and protect the service, which can include your IP address, request headers, browser information, requested path, and timing data. Cloudflare's platform log envelope may retain this request metadata according to the account's Workers Logs settings.

Our structured application events record operational fields such as the requested path, example slug, whether submitted code differed from the example, a short code hash, byte count, execution outcome, and duration. They do not include raw submitted code, request bodies, Turnstile tokens, cookies, authorization headers, or the full IP address in application-defined fields.

Editable Python runner

When you press Run, the submitted Python source is sent to a Cloudflare Dynamic Worker for isolated execution. Outbound network access is disabled. The source is used to execute that request and to derive a hash used for safe Worker reuse; it is not included in our structured analytics event.

Cloudflare Turnstile Privacy Addendum

To protect the runner from abuse, an Invisible-mode Cloudflare Turnstile check may run when a browser session first submits edited code. Turnstile may process browser, device, network, and IP signals to distinguish people from automated abuse. See Cloudflare's Privacy Policy and Turnstile documentation.

After successful verification, the site sets pbe_turnstile_clearance, an HttpOnly, Secure, SameSite=Lax cookie scoped to /examples. It normally expires after eight hours and prevents repeated verification during the same learning session.

Code editor and syntax highlighting

Example pages can load the CodeMirror editor and Shiki syntax highlighter from esm.sh. When those optional modules load, the CDN receives ordinary network request information such as your IP address and browser headers. If the CDN is unavailable, the page retains a plain-text editor and readable server-rendered code.

Retention and choices

Operational logs are retained according to the configured Cloudflare Workers Logs retention settings and are used for reliability, abuse prevention, and aggregate interaction reporting. You can read all examples without an account. Disabling cookies may cause Turnstile verification to repeat when you run edited code.

Questions or requests about this notice can be opened in the project's public issue tracker. Do not include private or sensitive information in a public issue.

Changes to this notice

Material changes will update the effective date above and ship through the public source repository.