Bugs item #1682749, was opened at 2007-03-17 15:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1682749&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: Python Interpreter Core
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Albert Weichselbraun (albert2611)
Assigned to: Nobody/Anonymous (nobody)
Summary: next method assignment is ignored in new-style classes

Initial Comment:
in old-style classes the next method of an iterator-superclass can be 
"overwritten" using

self.next = self.new_next_method

when new-style classes are used the assignment is ignored and instead of 
new_next_method the next method of the superclass is called when the class is 
used as iterator (tested for python2.3-2.5 under debian/linux).
- if the next() method is called directly, the assigned
  method is used (see attached code example).


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1682749&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to