> > Does this mean that floats can now be used as list indexes?
> > Preventing this was the motivation for introducing the nb_index slot.
>
> > from http://www.python.org/dev/peps/pep-0357 ::
> >
> > The biggest example of why using nb_int would be a bad
> > thing is that float objects alre
> > Issue 2440: fix the handling of %n in Python/getargs.c's
> convertsimple(),
> > extend Objects/abstract.c's PyNumber_Index() to accept PyObjects that
> have nb_int slots,
> > and update test_getargs2 to test that an exception is thrown when
> __int__() returns a non-int object.
>
> Does this me
On Thu, Apr 10, 2008 at 1:27 PM, Benjamin Peterson
<[EMAIL PROTECTED]> wrote:
> On Thu, Apr 10, 2008 at 10:04 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> > On Wed, Apr 9, 2008 at 7:07 PM, Benjamin Peterson
> > <[EMAIL PROTECTED]> wrote:
> > > Should IOBase's writeable, readable, and seek
On Thu, Apr 10, 2008 at 10:04 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 9, 2008 at 7:07 PM, Benjamin Peterson
> <[EMAIL PROTECTED]> wrote:
> > Should IOBase's writeable, readable, and seekable methods have
> > decorators like the closed method?
>
> No, read the PEP.
I did.
Guido van Rossum wrote:
> I think there are too many risks with this approach, especially given
> that we're keeping % formatting mainly for backwards compatibility
> reasons. There will inevitably be corner cases where the conversion
> doesn't work exactly the same way as the old code or where the
Hello,
> Log:
> Issue 2440: fix the handling of %n in Python/getargs.c's convertsimple(),
> extend Objects/abstract.c's PyNumber_Index() to accept PyObjects that have
> nb_int slots,
> and update test_getargs2 to test that an exception is thrown when __int__()
> returns a non-int object.
Does t
> Seems like we should revert r62242 test_ssl.py in py3k, commit that, then c=
> opy it back to trunk, manually 3to2 it, then check that in, then block that=
> particular revision. Then, going forward, if test_ssl.py changes need to =
> be made, make them against trunk, and they'll get picked up
On Wed, Apr 9, 2008 at 7:07 PM, Benjamin Peterson
<[EMAIL PROTECTED]> wrote:
> Should IOBase's writeable, readable, and seekable methods have
> decorators like the closed method?
No, read the PEP.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
_
> > Why not revert these, and I understand there's some way of marking
> > files to not be merged, now? Please so mark these three files, and
> > when it's working in 2.6 again, we can remove the marks.
>
> Looking at these three, it seems that only
> Lib/test/test_ssl.py is broken. Could this b