Imports & Namespaces
Importing Packages
Section titled “Importing Packages”Code reusability is managed via import statements at the top of a file.
import path.to.packageimport path.to.other as aliasScoping
Section titled “Scoping”When you import a package, you can access its contents using dot notation.
package.Componentpackage.subpackage.FunctionResolving Symbols
Section titled “Resolving Symbols”You can use the CLI to debug namespace issues:
# Look up a specific identifier in a given scopepython vctx-cli.py resolve-symbol --ident counter --scope Blinky --package examples.blinkyNeed an offline copy? Download Full Manual (.md)