GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chapter09/python-import-example: An template for exploring Python import mechanism

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
impt
impt
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
run.py
run.py
 
 

Repository files navigation

Python3 Import

An code template for exploring Python import mechanism.

Using this template, we explore potential traps in the following importing scenarios.

  • Importing a local module
  • Importing a sibling submodule from a submodule
  • Importing a module from the parent directory
  • Importing modules in __init__.py
  • ...

Todo:

  • namespace package v.s. regular package
├── impt
│   ├── __init__.py
│   ├── client
│   │   ├── __init__.py
│   │   └── client.py
│   ├── datasets
│   │   ├── __init__.py
│   │   └── datasets.py
│   ├── server
│   │   ├── __init__.py
│   │   ├── load_balance
│   │   │   ├── __init__.py
│   │   │   └── load_balancer.py
│   │   ├── process
│   │   │   ├── __init__.py
│   │   │   └── gpu_process
│   │   │       ├── __init__.py
│   │   │       └── gpu_process.py
│   │   └── server.py
│   └── utils
│       ├── __init__.py
│       └── utils.py
└── run.py

About

An template for exploring Python import mechanism

Resources

Readme
Activity

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.