Importing packages

11 views
Skip to first unread message

pir...@gmail.com

unread,
Feb 24, 2012, 3:37:58 AM2/24/12
to python-o...@googlegroups.com
I'm used to develop my own code as python packages, and since my port
is starting to work, i was thinking to have a 'x86' package (in the
same way there's a mbed.py module) and inside it have my own PyMite
version of portio (original one is for CPython, and the compatibility
layer i was trying to do two days ago was a disaster...).

So, at this moment i have been able to develop a PyMite python module
with embebed C and import it. According to
http://deanandara.com/PyMite/docs/PyMiteFeatures.html PyMite import
support

import module
import module as name
from module import name
from module import *

but would support to use a package instead of module, or a module
inside a package? I know that this would need a filesystem, but since
PyMite store modules inside a structure, i thought it would be able to
do a similar magic (for example, using 'package.module' as module
name...). And if so, are they developed in a similar way to modules?

--
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un
monton de sitios diferentes, simplemente escribe un sistema operativo
Unix."
– Linus Tordvals, creador del sistema operativo Linux

Reply all
Reply to author
Forward
0 new messages