PythonOptimize flag

14 views
Skip to first unread message

Jakub Labath

unread,
Aug 15, 2006, 1:57:56 PM8/15/06
to django...@googlegroups.com
Hi,

Has anybody tried running the mod_python and django with the
PythonOptimize flag enabled?
Did it make any difference? Anything else interesting came out of it?

Adrian Holovaty

unread,
Aug 15, 2006, 2:33:17 PM8/15/06
to django...@googlegroups.com

Hey Jakub,

I've never tried this personally but have always wondered about it.
One thing it would affect, off the top of my head, is the various
"assert" calls within the database API. For example, a call to
Model.objects.get() asserts that the list of returned values has at
most one element. This shouldn't be a problem if you can guarantee
your get() calls should always return one element, based on the
parameters you're sending.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

Reply all
Reply to author
Forward
0 new messages