The new REPL in Python 3.13

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • CPython

    The Python programming language

  • I think there's a bit of a misunderstanding regarding exit. exit is not a keyword or a REPL command; it's actually a function exposed in the builtin package. you can run "import builtins; builtins.exit()"

    To clarify, there are two things here: why exit exists in the REPL, and why it's a function. The exit() function is available only in the REPL, and it appears built-in, but it isn't part of the built-in namespace. Instead, exit is loaded automatically by the site module.

    Heres is the code with the function site.main that is doing it: https://github.com/python/cpython/blob/8af84b503d0b62a3db0d8...

    The line builtins.exit = _sitebuiltins.Quitter('exit', eof) shows that exit is set as a function. The Quitter class, which exit is an instance of, has a __call__ method, making it callable, so it as a function.

    I don't believe you're wrong not understanding it; it's just that the process isn’t typically explained in detail, especially what happens when you start the REPL. This is why the message "Use exit() instead..." exists in the REPL: it needs that clarification.

    In a nutshell, exit is a function loaded into the built-ins by the site.py module, which automatically activates when the REPL starts. This automatic loading is what makes exit, help, __copyright__ and others available only in the interactive sessions.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Quickly build and run kernels inside a virtualized snapshot

    1 project | news.ycombinator.com | 20 May 2024
  • Gaps in SOC Operator and Analyst Skillsets

    1 project | dev.to | 20 May 2024
  • Let's build a simple MLOps workflow on AWS! #1 - ML model preperation

    1 project | dev.to | 20 May 2024
  • Show HN: ffmpeg-english "capture from /dev/video0 every 1 second to jpg files"

    7 projects | news.ycombinator.com | 19 May 2024
  • [Cloudforet] Enable Azure Billing Plugin

    1 project | dev.to | 20 May 2024