コンフィグレーションガイド Vol.1
標準ライブラリのサポート内容を次に示します。
- <この項の構成>
- (1) サポートライブラリ一覧
- (2) osモジュール制限
- (3) socketserverモジュール制限
- (4) http.serverモジュール制限
- (5) ユーザ制限
(1) サポートライブラリ一覧
本装置が提供するPythonの標準ライブラリ一覧を次の表に示します。
表17-15 標準ライブラリ一覧
モジュール名 __future__ _dummy_thread _thread abc aifc argparse array ast asynchat asyncore atexit audioop base64 bdb binascii binhex bisect builtins cProfile calendar cgi cmath cmd code codecs collections colorsys compileall concurrent configparser contextlib copy copyreg csv datetime dbm decimal difflib dis distutils doctest dummy_threading encodings errno fcntl filecmp fnmatch fractions ftplib functools gc getopt getpass gettext glob hashlib heapq hmac html http imaplib imghdr imp importlib inspect io itertools json keyword lib2to3 linecache locale logging macpath mailbox marshal math mimetypes mmap modulefinder netrc nntplib numbers operator optparse os parser pdb pickle pickletools pipes pkgutil platform plistlib poplib posixpath pprint profile pstats pty pwd py_compile pyclbr pydoc queue quopri random re rlcompleter runpy sched select shelve shlex shutil signal site smtpd smtplib sndhdr socket socketserver stat string stringprep struct sunau symtable sys sysconfig tabnanny tarfile telnetlib tempfile test textwrap threading time timeit token tokenize trace traceback tty types unicodedata unittest urllib uu uuid warnings wave weakref webbrowser wsgiref xdrlib xml xmlrpc zipfile zipimport zlib - - - (凡例) -:該当なし
(2) osモジュール制限
osモジュールが提供する一部の関数には,次に示す制限があります。
- os.kill制限
本装置では,Pythonのos.kill()およびos.killpg()を使用して,スクリプト以外にシグナルを送信できません。
- os.fork制限
本装置では,Pythonのos.fork()およびos.forkpty()によって,サブプロセスを作成できません。
- os.system制限
本装置では,Pythonのos.system()によるプログラムの実行について,動作を保証しません。プログラムを実行する場合はcommandlineモジュールを使用してください。
(3) socketserverモジュール制限
socketserverモジュールが提供する次のクラスは,サポート対象外です。
- ForkingMixIn
- ForkingUDPServer
- ForkingTCPServer
(4) http.serverモジュール制限
http.serverモジュールが提供する次のクラスは,サポート対象外です。
- CGIHTTPRequestHandler
(5) ユーザ制限
標準ライブラリにはスーパーユーザでだけ実行できるライブラリがありますが,本装置ではスーパーユーザでの実行をサポートしません。
All Rights Reserved, Copyright(C), 2012, 2020, ALAXALA Networks, Corp.