python Programming Glossary: as_int
Python 3 relative imports: http://stackoverflow.com/questions/16981921/python-3-relative-imports like this... # usr bin env python3 # Exported function def as_int a return int a # Test function for module def _test assert as_int.. a return int a # Test function for module def _test assert as_int '1' 1 if __name__ '__main__' _test ...a myothermodule.py like.. like this... # usr bin env python3 from .mymodule import as_int # Exported function def add a b return as_int a as_int b # Test..
|