Mr. Joe titani...@gmail.com writes:
...
Sorry for digging this old topic back. I see that my 'property' does not
play well with polymorphic code comment generated some controversy. So
here's something in my defense:
I did not intend to attack you.
...
Yes, I like decorators and
On Wed, May 15, 2013 at 12:15 PM, dieter die...@handshake.de wrote:
If Python would automatically redecorate overridden methods in a derived
class, I would have no control over the process. What if I need
the undecorated method or a differently decorated method (an
uncached or
Sorry for digging this old topic back. I see that my 'property' does not
play well with polymorphic code comment generated some controversy. So
here's something in my defense:
Here's the link to stackoveflow topic I am talking about:
On Fri, 03 May 2013 13:52:23 +0600, Mr. Joe wrote:
Thanks for clearing up. Developers of python should address this issue,
in my opinion. 3.4/3.5 maybe, but better late than never.
Recently, I've been beaten back for using some exotic features of
python.
What do you consider exotic?
Thanks for clearing up. Developers of python should address this issue, in
my opinion. 3.4/3.5 maybe, but better late than never.
Recently, I've been beaten back for using some exotic features of python.
One is this[ Took me hours to get to the bottom ]. The other one is
'property' decorator. I
Mr. Joe titani...@gmail.com writes:
...
Then I came to know that 'property' does not play well
with polymorphic code. :(
Can you elaborate?
I like polymorphic code and decorators (such a property)
never met a problem with the two working nicely together.
I resorted to some lambda hacks
Is there any way to raise the original exception that made the call to
__getattr__? I seem to stumble upon a problem where multi-layered attribute
failure gets obscured due to use of __getattr__. Here's a dummy code to
demonstrate my problems:
import traceback
class BackupAlphabet(object):
On Fri, 03 May 2013 05:34:40 +0600, Mr. Joe wrote:
Is there any way to raise the original exception that made the call to
__getattr__?
No. There is some discussion on the Python-Dev mailing list about adding
better error reporting to AttributeError, but that may not go anywhere,
and even if