liveBook · Manning

.new.py

As explained in Tiny Python Projects: Learn coding and testing with puzzles and games

A per-user configuration file in the home directory containing name and email values read by new.py.

.new.py is a per-user configuration file stored in the home directory. It supplies the name and email values that new.py writes into generated Python program headers. section 1.13

Example configuration

Create ~/.new.py with one value per line, using this format: name=Ken Youens-Clark email=kyclark@gmail.com Afterward, new.py can use these values when generating a program from its template. section 1.13

How Tiny Python Projects: Learn coding and testing with puzzles and games covers it

How deep it goes
Defines the file location, purpose, and two-line format but does not explain new.py's configuration-reading implementation.
Examples
Uses a ~/.new.py listing containing name=Ken Youens-Clark and email=kyclark@gmail.com.
What you can do after
Operate/configure new.py by creating ~/.new.py with personal name and email values.
How it connects
Connects home-directory configuration with new.py, program templates, and generated Python program headers.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Tiny Python Projects: Learn coding and testing with puzzles and games. The section links point to the parts of the book it draws on.