Guido van Rossum wrote:
> No, but it *does* make 'set' the "default" type, making you work
> harder to get a frozenset. From this it follows that frozenset was
> considered the lesser-useful type at the time.
That logic assumes that one of them necessarily has to be
harder to get than the other,
On Jan 28, 2008 3:45 PM, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Guido van Rossum wrote:
> > On Jan 28, 2008 2:46 PM, Greg Ewing <[EMAIL PROTECTED]> wrote:
> >
> >>Is there a PEP we can refer to for confirmation of
> >>said non-craziness?
> >
> > Have a look at PEP 218.
>
> That PEP proposes that t
Guido van Rossum wrote:
> On Jan 28, 2008 2:46 PM, Greg Ewing <[EMAIL PROTECTED]> wrote:
>
>>Is there a PEP we can refer to for confirmation of
>>said non-craziness?
>
> Have a look at PEP 218.
That PEP proposes that there be no set literal or comprehension
syntax, and doesn't contain any discus
On Jan 28, 2008 2:46 PM, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Guido van Rossum wrote:
> > This was all reasoned out long, long ago, in Python
> > 2.3 with the sets module. If you insist I will try to write it up all
> > again, but I'd rather you believe that we weren't crazy back then.
>
> Is th
Guido van Rossum wrote:
> This was all reasoned out long, long ago, in Python
> 2.3 with the sets module. If you insist I will try to write it up all
> again, but I'd rather you believe that we weren't crazy back then.
Is there a PEP we can refer to for confirmation of
said non-craziness?
--
Greg
Please don't reopen this. There are good reasons for 'set' to be the
default set type and 'frozenset' to appear like a poor cousin. For
one, their naming. This was all reasoned out long, long ago, in Python
2.3 with the sets module. If you insist I will try to write it up all
again, but I'd rather
On 1/28/08, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Guido van Rossum wrote:
> > On Jan 26, 2008 8:39 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
> >>However, my support for it has waned anyway. The
> >> notation is also used for set comprehension
> >> and those should be mutable.
Set compre
Guido van Rossum wrote:
> On Jan 27, 2008 8:16 PM, Nick Coghlan <[EMAIL PROTECTED]> wrote:
>> eric.smith wrote:
>>> Author: eric.smith
>>> Date: Sun Jan 27 22:07:59 2008
>>> New Revision: 60376
>>>
>>> Modified:
>>>python/branches/py3k/Lib/test/test_float.py
>>>python/branches/py3k/Lib/test
Guido van Rossum wrote:
> Some folks thought it would be cute to be able to write incomplete
> code like this:
>
> class C:
> def meth(self): ...
> ...
I thought there were better reasons than that.
For example, the new print() function could be
arranged so that
print(a, b, c, ...)
print
Guido van Rossum wrote:
> On Jan 26, 2008 8:39 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
>
>>However, my support for it has waned anyway. The notation is also
>>used for set comprehension and those should be mutable.
>
> Cool. That saves us a PEP. Vive le status quo.
You're changing your
10 matches
Mail list logo