ftplib.FTP.sendcmd()

FTP.sendcmd(cmd) Send a simple command string to the server and return the response string.

multiprocessing.get_all_start_methods()

multiprocessing.get_all_start_methods() Returns a list of the supported start methods, the first of which is the default. The possible start methods are 'fork', 'spawn' and 'forkserver'. On Windows only 'spawn' is available. On Unix 'fork' and 'spawn' are always supported, with 'fork' being the default. New in version 3.4.

unittest.TestCase.failureException

failureException This class attribute gives the exception raised by the test method. If a test framework needs to use a specialized exception, possibly to carry additional information, it must subclass this exception in order to “play fair” with the framework. The initial value of this attribute is AssertionError.

platform.python_branch()

platform.python_branch() Returns a string identifying the Python implementation SCM branch.

File and Directory Access

The modules described in this chapter deal with disk files and directories. For example, there are modules for reading the properties of files, manipulating paths in a portable way, and creating temporary files. The full list of modules in this chapter is: 11.1. pathlib — Object-oriented filesystem paths11.1.1. Basic use 11.1.2. Pure paths11.1.2.1. General properties 11.1.2.2. Operators 11.1.2.3. Accessing individual parts 11.1.2.4. Methods and properties 11.1.3. Concrete paths11.1.3.1. Met

asyncio.StreamReader.at_eof()

at_eof() Return True if the buffer is empty and feed_eof() was called.

profile.Profile.create_stats()

create_stats() Stop collecting profiling data and record the results internally as the current profile.

audioop.lin2lin()

audioop.lin2lin(fragment, width, newwidth) Convert samples between 1-, 2-, 3- and 4-byte formats. Note In some audio formats, such as .WAV files, 16, 24 and 32 bit samples are signed, but 8 bit samples are unsigned. So when converting to 8 bit wide samples for these formats, you need to also add 128 to the result: new_frames = audioop.lin2lin(frames, old_width, 1) new_frames = audioop.bias(new_frames, 1, 128) The same, in reverse, has to be applied when converting from 8 to 16, 24 or 32 bi

sys.executable

sys.executable A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable will be an empty string or None.

audioop.avg()

audioop.avg(fragment, width) Return the average over all samples in the fragment.