[New-bugs-announce] [issue36153] Freeze support documentation is misleading.

Sridhar Iyer report at bugs.python.org
Thu Feb 28 19:49:32 EST 2019


New submission from Sridhar Iyer <sridhar.v.iyer at gmail.com>:

The documentation on freeze_support listed on https://docs.python.org/3/library/multiprocessing.html need to be fixed

This mentions:
"Calling freeze_support() has no effect when invoked on any operating system other than Windows. In addition, if the module is being run normally by the Python interpreter on Windows (the program has not been frozen), then freeze_support() has no effect."

This is not true. Sklearn/tensorflow libraries tend to cause an infinite loop when frozen with pyinstaller (tested on python 3.6 on ubuntu 14.04). freeze_support is the only way to get around the situation and should be included before including any other module that includes a multiprocessing library (not just in main).

----------
assignee: docs at python
components: Documentation
messages: 336881
nosy: Sridhar Iyer, docs at python
priority: normal
severity: normal
status: open
title: Freeze support documentation is misleading.
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36153>
_______________________________________


More information about the New-bugs-announce mailing list