From 41e9ccae7c87ed01c7e286688f4b97f311cb9917 Mon Sep 17 00:00:00 2001 From: Anthony Li Date: Mon, 6 Oct 2014 20:01:38 +0800 Subject: [PATCH] Go: fix overload functions with polymorphic issue --- .../python/import_packages/relativeimport2/runme3.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Examples/python/import_packages/relativeimport2/runme3.py diff --git a/Examples/python/import_packages/relativeimport2/runme3.py b/Examples/python/import_packages/relativeimport2/runme3.py new file mode 100644 index 000000000..4b0d112cf --- /dev/null +++ b/Examples/python/import_packages/relativeimport2/runme3.py @@ -0,0 +1,9 @@ +# Test import of modules content from within __init__.py +print("Testing %module(package=...) + python 'import' in __init__.py") +import sys +if sys.version_info < (3, 0): + import py2.pkg2.bar + print(" Finished importing py2.pkg2.bar") +else: + import py3.pkg2.bar + print(" Finished importing py3.pkg2.bar")