PyInstaller library supports

28 views
Skip to first unread message

gp

unread,
Jun 14, 2025, 2:17:51 AMJun 14
to PyInstaller
Hi, i want ti ask Is the PyInstaller library supports the presence of an English period (.) in source files?
PyInstaller库是否支持源文件中存在英文句号(.)等标点符号

Chris Barker

unread,
Jun 14, 2025, 11:38:23 AMJun 14
to pyins...@googlegroups.com
On Fri, Jun 13, 2025 at 11:18 PM gp <huanp...@gmail.com> wrote:
Hi, i want ti ask Is the PyInstaller library supports the presence of an English period (.) in source files?

If you mean python code (*.py) files, then no, at least without a lot of special code. (except for the dot before the "py").

That's because python files are usually modules, and so they need to have valid python variable names. e.g.

a_file.py

is imported as:

import a_file

and then a_file is a name in that namespace.

And the "dot" --  has special meaning in Python, so can not be in a variable name.

This limitation can be worked around, but you really don't want to do that ...

-CHB




 
PyInstaller库是否支持源文件中存在英文句号(.)等标点符号

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pyinstaller/f4364205-e538-47e5-86cd-4d870eda5821n%40googlegroups.com.


--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris....@noaa.gov
Reply all
Reply to author
Forward
0 new messages