[Patches] [ python-Patches-1512942 ] Improves an error message from setattr

SourceForge.net noreply at sourceforge.net
Wed Jun 28 12:36:22 CEST 2006


Patches item #1512942, was opened at 2006-06-26 19:47
Message generated for change (Comment added) made by arigo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1512942&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexander Belopolsky (belopolsky)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improves an error message from setattr

Initial Comment:
Fixes Bugs item #1506776

----------------------------------------------------------------------

>Comment By: Armin Rigo (arigo)
Date: 2006-06-28 10:36

Message:
Logged In: YES 
user_id=4771

The error message can still be wrong.  For example, in the
following situation:

  class X(object):
      __slots__ = ['a']
  X().b = 5

Then the original message -- no attribute 'b' -- was correct.
With this patch Python now wrongly tells you that 'X' object
has only read-only attributes.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1512942&group_id=5470


More information about the Patches mailing list