Medium syndication information

This commit is contained in:
Brandon Rozek 2023-01-05 14:04:45 -05:00
parent e5a96d735a
commit c5ff5538a6
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
276 changed files with 371 additions and 80 deletions

View file

@ -3,6 +3,7 @@ title: "Quick Python: __all__"
date: 2020-05-01T00:53:46-04:00
draft: false
tags: ["Python"]
medium_enabled: true
---
Anything that is defined inside a package that is imported is also brought into that workspace. So for example, if package `A` uses `numpy` and you import `A`, then `A.numpy` will be shown in your workspace. In order to limit the variables exported, you can define the ones you want to be shown in a variable called `__all__`.