crypt.mksalt()

crypt.mksalt(method=None) Return a randomly generated salt of the specified method. If no method is given, the strongest method available as returned by methods() is used. The return value is a string either of 2 characters in length for crypt.METHOD_CRYPT, or 19 characters starting with $digit$ and 16 random characters from the set [./a-zA-Z0-9], suitable for passing as the salt argument to crypt(). New in version 3.3.

crypt.crypt()

crypt.crypt(word, salt=None) word will usually be a user’s password as typed at a prompt or in a graphical interface. The optional salt is either a string as returned from mksalt(), one of the crypt.METHOD_* values (though not all may be available on all platforms), or a full encrypted password including salt, as returned by this function. If salt is not provided, the strongest method will be used (as returned by methods(). Checking a password is usually done by passing the plain-text passwo

copy.error

exception copy.error Raised for module specific errors.

copyreg.constructor()

copyreg.constructor(object) Declares object to be a valid constructor. If object is not callable (and hence not valid as a constructor), raises TypeError.

credits

credits Objects that when printed, print a message like “Type license() to see the full license text”, and when called, display the corresponding text in a pager-like fashion (one screen at a time).

copyright

copyright license credits Objects that when printed, print a message like “Type license() to see the full license text”, and when called, display the corresponding text in a pager-like fashion (one screen at a time).

copyreg.pickle()

copyreg.pickle(type, function, constructor=None) Declares that function should be used as a “reduction” function for objects of type type. function should return either a string or a tuple containing two or three elements. The optional constructor parameter, if provided, is a callable object which can be used to reconstruct the object when called with the tuple of arguments returned by function at pickling time. TypeError will be raised if object is a class or constructor is not callable. Se

copy.deepcopy()

copy.deepcopy(x) Return a deep copy of x.

copy.copy()

copy.copy(x) Return a shallow copy of x.

contextmanager.__exit__()

contextmanager.__exit__(exc_type, exc_val, exc_tb) Exit the runtime context and return a Boolean flag indicating if any exception that occurred should be suppressed. If an exception occurred while executing the body of the with statement, the arguments contain the exception type, value and traceback information. Otherwise, all three arguments are None. Returning a true value from this method will cause the with statement to suppress the exception and continue execution with the statement imm