Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hroncok/importexec
Just an example to illustrate some behavior of imports
https://github.com/hroncok/importexec
Last synced: 15 days ago
JSON representation
Just an example to illustrate some behavior of imports
- Host: GitHub
- URL: https://github.com/hroncok/importexec
- Owner: hroncok
- Created: 2017-12-08T22:28:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T22:38:09.000Z (about 7 years ago)
- Last Synced: 2024-12-13T20:48:51.942Z (20 days ago)
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Examine the files. Run the following to see the difference:
```console
$ python3 -c 'import foo.bar'
running foo/__init__.py
running foo/bar.py
will import foo
foo.__file__ is .../importexec/foo/__init__.py
foo.thing is 0
foo.foo does not exist
``````console
$ python3 -c 'import foo.foo; import foo.bar'
running foo/__init__.py
running foo/foo.py
running foo/bar.py
will import foo
foo.__file__ is .../importexec/foo/__init__.py
foo.thing is 0
foo.foo exists
foo.foo.thing is 1
``````console
$ python3 foo/bar.py
running foo/bar.py
will import foo
running foo/foo.py
foo.__file__ is .../importexec/foo/foo.py
foo.thing is 1
foo.foo does not exist
```Files in this repo are Public Domain.