asyncio.Condition.acquire()

coroutine acquire() Acquire the underlying lock. This method blocks until the lock is unlocked, then sets it to locked and returns True. This method is a coroutine.

pathlib.PurePath.anchor

PurePath.anchor The concatenation of the drive and root: >>> PureWindowsPath('c:/Program Files/').anchor 'c:\\' >>> PureWindowsPath('c:Program Files/').anchor 'c:' >>> PurePosixPath('/etc').anchor '/' >>> PureWindowsPath('//host/share').anchor '\\\\host\\share\\'

email.charset.Charset.header_encode()

header_encode(string) Header-encode the string string. The type of encoding (base64 or quoted-printable) will be based on the header_encoding attribute.

multiprocessing.pool.Pool.apply()

apply(func[, args[, kwds]]) Call func with arguments args and keyword arguments kwds. It blocks until the result is ready. Given this blocks, apply_async() is better suited for performing work in parallel. Additionally, func is only executed in one of the workers of the pool.

ftplib.FTP.abort()

FTP.abort() Abort a file transfer that is in progress. Using this does not always work, but it’s worth a try.

uuid.UUID.bytes_le

UUID.bytes_le The UUID as a 16-byte string (with time_low, time_mid, and time_hi_version in little-endian byte order).

sqlite3.Cursor.executescript()

executescript(sql_script) This is a nonstandard convenience method for executing multiple SQL statements at once. It issues a COMMIT statement first, then executes the SQL script it gets as a parameter. sql_script can be an instance of str. Example: import sqlite3 con = sqlite3.connect(":memory:") cur = con.cursor() cur.executescript(""" create table person( firstname, lastname, age ); create table book( title, author, published

stat.S_ISFIFO()

stat.S_ISFIFO(mode) Return non-zero if the mode is from a FIFO (named pipe).

urllib.robotparser.RobotFileParser.can_fetch()

can_fetch(useragent, url) Returns True if the useragent is allowed to fetch the url according to the rules contained in the parsed robots.txt file.

id()

id(object) Return the “identity” of an object. This is an integer which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same id() value. CPython implementation detail: This is the address of the object in memory.