[PEAK] DecoratorTools break when optimized.
Sergey Schetinin
maluke at gmail.com
Sun Apr 6 13:08:40 EDT 2008
util/decorators.py line 304
def wrap(__func):
pass
wrap.__doc__ = \
'''
For Trellis
events/trellis.py line 353, same thing:
def wrap(__func, __module):
pass
wrap.__doc__ = \
"""
On Sun, Apr 6, 2008 at 5:32 PM, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 08:34 AM 4/6/2008 +0300, Sergey Schetinin wrote:
>
> > I mean that it would be nice to be able to use PEAK-Rules in an app
> > that is distributed as an exe built with -OO. It doesn't seem too hard
> > to break the dependency of DecoratorTools on docstrings. I thought
> > that it would be possible by using decorator for the template
> > functions that would copy the docstring to some other attibute, but
> > you're right, it won't have anything to copy when compiled with -OO.
> > So what I ask is to remove that dependency on docstrings, sure I can
> > do that myself, but I'm not into maintaining forks. So I wonder if
> > it's intended to be this way (incompatible with -OO) or will it be
> > changed?
> >
>
> You haven't yet proposed a way that it *could* be changed.
>
>
--
Best Regards,
Sergey Schetinin
http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter
More information about the PEAK
mailing list