I will remove the imports from trunk.
On May 2, 4:14 pm, Álvaro Justen [Turicas] <[email protected]>
wrote:
> On Fri, May 1, 2009 at 12:48 PM, mdipierro <[email protected]> wrote:
>
> > You can remove it
>
> I know. :-)
> What I'm saying is: import doctest IS NOT needed in compileapp.py.
> When it is really used (if __name__ == '__main__' and TEST_CODE) it is
> imported. So, we can remove "import doctest" from the start of
> compileapp.py - it is not used and actually is using more memory than
> really needed.
>
> I found other file that "requires" doctest (really it doesn't uses it
> at all, only in function "test"). For better compatibility and
> performance, I think web2py can import doctest only when it is used -
> if it is used in more than one function/class, so include that in
> start of the module. It can be extended to all other modules that are
> included.
> What do you think?
>
> Ah, to run web2py in my Nokia N800 (without doctest in installed) I
> commented "import doctest" in gluon/compileapp.py and gluon/shell.py.
>
> > On May 1, 10:00 am, Álvaro Justen [Turicas] <[email protected]>
> > wrote:
> >> Hello,
> >> I'm trying to run web2py in my Nokia N800 but python's package doesn't
> >> include doctest module. gluon/import_all.py has try...except to import
> >> doctest, but compileapp.py imports it directly. Is doctest really
> >> needed to run web2py.py? Can we change it to try...except like in
> >> import_all?
>
> >> Thanks.
>
> --
> Álvaro Justen
> Peta5 - Telecomunicações e Software Livre
> 21 3021-6001 / 9898-0141
> http://www.peta5.com.br/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---