From: John H. <jdh...@ac...> - 2005-04-12 15:09:19
|
>>>>> "Werner" == Werner F Bruhin <wer...@fr...> writes: Werner> I am looking at the py2exe optimize problem, would be nice Werner> if this could be fixed somehow too. The basic problem is that pylab wrapper functions get their docstrings from the respective Axes or Figure functions that they wrap, and then they add a bit of pylab specific documentation at the end. Most of the pylab functions are generated by boilerplate.py, which is python code to generate the pylab wrapper functions. One solution to change boilerplate.py to embed the doc strings manually in the pylab wrappers. Eg, instead of generating plot.__doc__ = _shift_string(Axes.plot.__doc__) + """ Addition kwargs: hold = [True|False] overrides default hold state""" Actually embed the Axes.plot.__doc__ directly. This should work with py2exe optimize. JDH |