On Feb 22, 12:45 pm, Eviatar <[email protected]> wrote:
> For some reason I cannot post on the other topic, so I made another
> one. This way it will also be more visible.
>
> Some people were wondering about where to use imports for maximum
> efficiency, how to do lazy imports, etc. I found this guide that has
> all that information and 
> more:http://wiki.python.org/moin/PythonSpeed/PerformanceTips
>
> Maybe it could be added (at least partly) to the Developer's Guide? I
> might do it when I have time.
>
> Thanks!

Looks useful. However Python beginners should be warned that this
guide is a little outdated in some places - the original article was
written in 2004! For example the construction

"stuff %s stuff" % dictionary

is deprecated and in fact does not even work in Python 3. Strings now
have a .format() method which is more flexible. I think before we
import this article into the Sage documentation it needs to be looked
over carefully to make sure everything is Python 2.7-current and we
are not leading new developers down dark paths into Python's barbaric
history ;)

-Keshav

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to