Hello,
Is there any thing to consider when trying to import from one module to
another?
I try import a specific fonction like so :
from other_module import function
cannot import name "function"
Thanks
Richard
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
from other_module import function
should work too
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed
Don't know why it doesn't nothing special from my side...
On Thu, Mar 17, 2016 at 2:59 PM, Leonel Câmara
wrote:
> from other_module import function
>
> should work too
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> -
import module_name
Then
module_name.function
works fine...
Richard
On Thu, Mar 17, 2016 at 2:48 PM, Richard
wrote:
> Hello,
>
> Is there any thing to consider when trying to import from one module to
> another?
>
> I try import a specific fonction like so :
>
>
4 matches
Mail list logo