17-27
8. File Compatibility
py files can be shared between your calculator and a computer. A py file created with the
calculator can be transferred to a computer for editing with a text editor or other software. A py
file created on a computer can be transferred to and run on the calculator.
py files you create in the • Python mode are stored in the calculator’s storage memory (with
file name extension py).
For information about the procedure for transferring files between the calculator and a •
computer, see “Performing Data Communication between the Calculator and a Personal
Computer” (page 13-3).
py Files Created and Saved with This Calculator k
The formats of py files created and saved with this calculator are shown below.
Character Code:
Characters used:
Newline code:
Indent:
ASCII code
ASCII*
CR+LF
Spaces (two spaces for auto indent)
ASCII characters are those shown below. *
A-Z a-z 0-9 ! " # $ % & ' ( ) ½ + , − . / : ; < = > ? @
[ \ ] ^ _ ` { | } ~ space
Precautions when Using an Externally Created py File on this k
Calculator
The restrictions below apply whenever you are trying to use the calculator’s Python mode to
display (file name or file content), edit, or run a py file that was transferred to the computer
from an external source.
File Name Display u
Only py files whose file names consist of ASCII characters* are displayed on the • Python
mode file list screen.
Files with file names that include non-ASCII characters are not displayed.•
However, the characters below are not allowed in file names. *
\ / : * ? " < > | .
If the name of a py file transferred to storage memory from a computer or other source •
has a file name that is more than eight characters long, its name will abbreviated to
eight characters when displayed on the storage memory information screen. (Example:
AAAABBBBCC.py will become AAAABB~1.py.)