I think that patch which you would like to provide could add
functools.wraps decorator to the decorator defined in synonym_for().
See http://docs.python.org/library/functools.html#functools.wraps

--
Anton Gritsay
http://angri.ru

On 12 июн, 22:20, Christophe de VIENNE <cdevie...@gmail.com> wrote:
> Hi,
>
> I noticed that when I use the @synonym_for decorator, my function docstring
> get lost.
>
> I got lost in SA code around the attributes.register_descriptor function,
> which is one of the steps I guess the doc is not copied (along with the
> decorator function itself), and cannot propose a patch.
>
> I workaround the issue by doing the plain synonym declaration and using the
> sphinx specific docstrings for class attributes, but it would be really
> great if it could just work.
>
> And thanks for the awesome tool SqlAlchemy is : it is a constant source of
> amazement to me.
>
> Regards,
>
> Christophe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to