Re: Restrictive APIs for Python

2006-12-15 Thread Will Ware
Gabriel Genellina wrote: > In Python, the usual way of saying "don't play with me" is prepending > an underscore: _private Thanks, I am familiar with that. > BTW, have you *ever* tested your code? Yes, we have a QA process. The problem is not that the code doesn't work, it does. It was developed

Restrictive APIs for Python

2006-12-15 Thread Will Ware
Python has no inherent provision for a restrictive API that blocks accesses to methods and variables outside an allowed set. Inexperienced Python programmers may fail to adhere to an agreed-upon API, directly accessing the private internals of a class. Adherence to defined APIs is a good thing. Thi

Freezing a static executable

2006-06-04 Thread Will Ware
libdl.so.2 => /lib/libdl.so.2 (0xb7f56000) libutil.so.1 => /lib/libutil.so.1 (0xb7f52000) libm.so.6 => /lib/tls/libm.so.6 (0xb7f2d000) libc.so.6 => /lib/tls/libc.so.6 (0xb7dff000) /lib/ld-linux.so.2 (0xb7f86000) What stupid thing am I doing wrong? TIA for any adv

Interpreting python profiler results

2006-03-07 Thread Will Ware
anybody know if I am correct in my conclusion that most of the program's time is being spent in some getattr function in PyOpenGL? Thanks Will Ware -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex on Darwin, gcc 3.3 optimization trouble

2006-01-01 Thread Will Ware
In case anybody else has this problem, the solution is to add "-O" in extra_compile_args, which will override the "-O3" normally used. This is done in the setup.py file. -- http://mail.python.org/mailman/listinfo/python-list

Pyrex on Darwin, gcc 3.3 optimization trouble

2005-12-30 Thread Will Ware
st an approach to debugging this? I'm comfortable on Linux but I can't find my way out of a paper bag on a Mac. Also, is there a Pyrex or distutils option for limiting the compiler optimization level, ideally on a per-platform basis? Thanks much Will Ware -- http://mail.python.org/m

Piecewise-cubic lookup table generator

2005-11-21 Thread Will Ware
I needed to generate some C code for a fast lookup table using piecewise-cubic interpolation. If anybody else needs this, the Python code for it is at http://tinyurl.com/92zcs (alt.source, Google Groups). Will Ware -- http://mail.python.org/mailman/listinfo/python-list

Re: handy stacktrace class

2004-12-12 Thread will . ware
Oh. Never mind, then. -- http://mail.python.org/mailman/listinfo/python-list

handy stacktrace class

2004-12-11 Thread Will Ware
I was fooling with some Python code, and starting to miss the Exception.printStackTrace() feature in Java. Here is a stab at something roughly analogous, which puts together a stacktrace as an XML document. import xml.dom.minidom class Stacktrace(xml.dom.minidom.Document): def __init__(self):