Re: [Python-3000] Set literal

2008-01-28 Thread Greg Ewing
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,

Re: [Python-3000] Set literal

2008-01-28 Thread Guido van Rossum
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

Re: [Python-3000] Set literal

2008-01-28 Thread Greg Ewing
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

Re: [Python-3000] Set literal

2008-01-28 Thread Guido van Rossum
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

Re: [Python-3000] Set literal

2008-01-28 Thread Greg Ewing
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

Re: [Python-3000] Set literal

2008-01-28 Thread Guido van Rossum
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

Re: [Python-3000] Set literal

2008-01-28 Thread Jim Jewett
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

Re: [Python-3000] [Python-3000-checkins] r60376 - in python/branches/py3k: Lib/test/test_float.py Lib/test/test_long.py Objects/stringlib/formatter.h

2008-01-28 Thread Eric Smith
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

Re: [Python-3000] Ellipsis Literal

2008-01-28 Thread Greg Ewing
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

Re: [Python-3000] Set literal

2008-01-28 Thread Greg Ewing
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