2007/9/28, Rob Crowther <[EMAIL PROTECTED]>:
> a) MPF() now takes a float or integer argument because mpf_set_str is just
Rob, there has been a *lot* of discussion about this for Decimal (see
the PEP and discussions in python-dev and python-list around the PEP
date).
The main issue here is what
On 9/30/07, Facundo Batista <[EMAIL PROTECTED]> wrote:
>
> 2007/9/28, Rob Crowther <[EMAIL PROTECTED]>:
>
> > a) MPF() now takes a float or integer argument because mpf_set_str is
> just
>
> Rob, there has been a *lot* of discussion about this for Decimal (see
> the PEP and discussions in python-de
At 10:26 AM 9/29/2007 -0500, Michael Urman wrote:
> This isn't just a matter of dicts; any collection type can be susceptible.
The reason that dicts (and sets) are even worse is that the comparison
could be delayed. If
b"bytes" in [...]
raises an exception, it happens while b"bytes" is stil
Hi,
I wrote another patch with two improvment: use small integer cache and use
Python memory allocation functions. Now GMP overhead (pystones result) is
only -2% and not -20% (previous patch).
Since the patch is huge, I prefer to leave copy on my server:
http://www.haypocalc.com/tmp/py3k-long_g
I see no other solution to this thread than to revert the decision
that comparing bytes and str raises TypeError. It may catch a trivial
mistake or two, but the far from trivial, subtle issues it causes for
more sophisticated code just aren't worth it. I'll add this to PEP
3137.
--
--Guido van Ro
Thanks all for the focused and helpful discussion on this PEP. Here's
a new posting of the full text of the PEP as it now stands. Most of
the changes since the first posting are fleshing out of some details;
the decision to make the individual elements of bytes and buffer be
ints; and the decision
+1 from me.
-Brett
On 9/30/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> Thanks all for the focused and helpful discussion on this PEP. Here's
> a new posting of the full text of the PEP as it now stands. Most of
> the changes since the first posting are fleshing out of some details;
> the de
On Thu, Sep 27, 2007, Rob Crowther wrote:
>
> I've uploaded the latest code to http://umass.glexia.net/mpf.tar.bz2
>
> Here's a quick rundown of supported functions and operations.
Could you explain what your goal is here? MPF isn't currently part of
the standard library, so it probably should
On Sun, 2007-09-30 at 16:25 -0700, Guido van Rossum wrote:
> [...]
> (**Note:** in Python 3.0a1, comparing a bytes instance with a str
> instance would raise TypeError, on the premise that this would catch
> the occasional mistake quicker, especially in code ported from Python
> 2.x. However, a lo
On 9/30/07, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> Pickling
>
>
> Left as an exercise for the reader.
>
A simple way to add specific pickling support for bytes/buffer objects
would be to define two new constants:
BYTES = b'\x8c' # push a bytes object
BUFFER =
On 9/30/07, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Sun, 2007-09-30 at 16:25 -0700, Guido van Rossum wrote:
> > [...]
> > (**Note:** in Python 3.0a1, comparing a bytes instance with a str
> > instance would raise TypeError, on the premise that this would catch
> > the occasional mistake quick
+1 from me.
I like that the str will not support the buffer API because it gets rid
of one of the flags in the PEP 3118 API that was only there to support
the abuse of the buffer API by unicode objects.
- Travis Oliphant
___
Python-3000 mailing list
+10 from me
___
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
13 matches
Mail list logo