Precautions When Using an Externally Created py File on this Calculator
The restrictions below apply whenever you are trying to use the calculator's Python app to display (file name
or file content), edit, or run a py file that was transferred to the calculator from a computer.
File Names
• Your calculator recognizes only file names made up of ASCII characters.
non-ASCII characters is not recognized.
* The ASCII characters below are not supported.
\ / : * ? " < > | .
• 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.)
File Content Display and Editing
Opening a py file that satisfies conditions (A) and (B) below in the Python app will produce a normal display of
all of the file contents. A py file that shows contents can be displayed normally and edited in the Python app.
(A) py file written in ASCII characters only and saved using UTF-8 or other ASCII-compatible codes
• If a file is saved with character codes that are not compatible with ASCII, none of its contents will be
displayed if you open it in the Python app. All of the characters will be replaced by spaces, or appear
garbled.
(B) py file with up to 300 lines, each line containing up to 255 characters
• The contents of a py file that exceeds the number of characters and/or number of lines specified above
cannot be displayed in the Python app. If a file cannot be opened, use the command below to import it.
from (filename) import *
• All tab codes in a py file will be replaced by two spaces when the file is opened in the Python app.
• No type of newline codes (LF, CR, CR+LF) affect Python app display contents. All newline codes in a py
file will be replaced by CR+LF (Windows standard newline code) when the file is opened in the Python
app. Before transferring a py file that was edited and saved in the Python app to a computer for use on
the computer, replace its newline codes with the type that is appropriate for the environment where the
file will be used.
Running a py File
A py file in the file list that appears when you select T > [File] > [Open] may be executable with the Python
app. Note the information below.
• Running a py file that includes commands not supported by the calculator's Python app will result in an error.
• Using the Python app to open a py file created on a computer will cause characters and newline codes to
be replaced. Because of this, opening a py file in the Python app, saving it, and running it, will change the
content from the original py file, which may affect the running results. For details, see
and Editing" (page
140).
*
140
A file name that includes any
"File Content Display
Need help?
Do you have a question about the CLASSWIZ CG and is the answer not in the manual?
Questions and answers