python_cheatsheet package¶
Module contents¶
-
python_cheatsheet.a.
public_fn_with_googley_docstring
(name, state=None)[source]¶ This function does something.
- Args:
- name (str): The name to use.
- Kwargs:
- state (bool): Current state to be in.
- Returns:
int. The return code:
0 -- Success! 1 -- No good. 2 -- Try again.
- Raises:
- AttributeError, KeyError
A really great idea. A way you might use me is
>>> print public_fn_with_googley_docstring(name='foo', state=None) 0
BTW, this always returns 0. NEVER use with
MyPublicClass
.
Main module.
Main module.
Main module.
Main module.
-
python_cheatsheet.u.
unit_testing
()[source]¶ This function shows an example unit test (so too though does this module!)
Args:
- Returns:
int. The return code:
0 -- Success! 1 -- No good. 2 -- Try again.
Raises:
A really great idea in any project. A way you might use me is super simpl;e.
>>> print public_fn_with_googley_docstring(name='foo', state=None) 0
BTW, this always returns 0. NEVER use with
MyPublicClass
.