Re: descriptor & docstring

2008-04-28 Thread cyril giraudon
A precision, I use python 2.5.2 under linux mandiva 2007.0 Cyril. -- http://mail.python.org/mailman/listinfo/python-list

descriptor & docstring

2008-04-28 Thread cyril giraudon
Hello, I try to use python descriptors to define attributes with default value (the code is reported below). But apparently, it breaks the docstring mechanism. help(Basis) shows the right help but help(Rectangle) shows only two lines : " Help on class Rectangle in module basis2: Rectangle = " I

Parameterize formatting string

2007-09-21 Thread cyril giraudon
Hello, I 'd like to know if a std::setw() equivalent function exists in python ? i thought of something like : a = 16 "%ai" % 12 But it is not correct. Any Idea ? Thanks a lot, Cyril. -- http://mail.python.org/mailman/listinfo/python-list