19.3.1 Differences and limitations from normal Python
The following table shows the differences and limitations between Python supported by the Switch and the standard Python.
- <Structure of this section>
(1) Python Commands
The following table shows the differences between the standard Python 3.2.3 and the command line options in the operation command python for the Switch.
-
-The B option is not supported.
-
-O(OO) The option is not supported.
-
-The u option is not supported.
-
The maximum number of parameters that can be applied when the script file is started is 32.
-
The maximum number of characters that can be applied to a parameter when the script file is started is 63.
-
The maximum number of characters that can be specified is 1000, including the space character.
-
Parameters that can be applied when the script file is started cannot have the special characters shown in the following table.
Table 19-13: Special characters that cannot be set Character name
Character
Double quotation mark
"
Single quotation mark
'
Semicolon
;
Backslash
¥
Grave accent mark
`
(2) __pycache__ Limits
The Switch does not create the__pycache__ directory even if scripts are imported from Python.
(3) Port usage restrictions
If you use Python to bind a particular port, use port numbers 49155 through 49166 for both TCP,UDP, regardless of IPv4 or IPv6.