Re: [Python-3000] Binding builtin function to class

2008-04-27 Thread Terry Reedy
"Haoyu Bai" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hello, | | I'm a GSoC student working on SWIG's Python 3 support. When doing | experiment on Python 3's new features, the different behavior between | binding 'function' and 'builtin_function_or_method' confused me. | | As

[Python-3000] Binding builtin function to class

2008-04-27 Thread Haoyu Bai
Hello, I'm a GSoC student working on SWIG's Python 3 support. When doing experiment on Python 3's new features, the different behavior between binding 'function' and 'builtin_function_or_method' confused me. As we know, unbound method is removed in Python 3. To bind a function to a class, we

Re: [Python-3000] range() issues

2008-04-27 Thread Alexander Belopolsky
On Sun, Apr 27, 2008 at 10:29 AM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > > Alexander Belopolsky wrote: .. > > I believe it would make sense to turn range(..) into a Sequence. .. > I like this as a goal - I'll make sure to find the time to help review any > patches aimed at achieving it (startin

Re: [Python-3000] range() issues

2008-04-27 Thread Nick Coghlan
Alexander Belopolsky wrote: On Sat, Apr 26, 2008 at 2:49 PM, Facundo Batista <[EMAIL PROTECTED]> wrote: Which should the range() definition be, in your words? In terms of ABCs, range(..) is a Sized Iterable in the current implementation. It is not a Sequence because it is not a Container a

Re: [Python-3000] range() issues

2008-04-27 Thread Alexander Belopolsky
On Sat, Apr 26, 2008 at 2:49 PM, Facundo Batista <[EMAIL PROTECTED]> wrote: > Which should the range() definition be, in your words? In terms of ABCs, range(..) is a Sized Iterable in the current implementation. It is not a Sequence because it is not a Container and does not support slicing.