You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guido, I thought you had decided for this to just be a 3.x feature.
Alex, if this goes forward, were you also going to change the repr() for
sets and the corresponding pprint code? Are set comprehensions on the
radar screen also. IMO, these all go hand in hand.
Raymond, I know you see this differently, but personally I don't see a
problem with 2.7 getting additional backports of 3.x features, as long
as they are backwards compatible. While personally I wouldn't spend
effort on this particular backport, I don't see a problem when someone
volunteers a patch. In this specific case, I am fine with accepting set
literals and set comprehensions as new syntax. I do agree that repr()
needs to be kept the same as it was under 2.6.
Activity
brettcannon commentedon Mar 17, 2008
Set literals need to be backported.
benjaminp commentedon Jul 31, 2008
I'm going to defer this to 2.7.
avassalotti commentedon Aug 4, 2009
Here is a patch for backporting set literals to the trunk.
rhettinger commentedon Aug 4, 2009
Guido, I thought you had decided for this to just be a 3.x feature.
Alex, if this goes forward, were you also going to change the repr() for
sets and the corresponding pprint code? Are set comprehensions on the
radar screen also. IMO, these all go hand in hand.
avassalotti commentedon Aug 4, 2009
I think we should keep the repr() of sets as is to avoid breaking any
code. And yes, I plan to port set comprehensions along with dict
comprehension.
gvanrossum commentedon Aug 5, 2009
Raymond, I know you see this differently, but personally I don't see a
problem with 2.7 getting additional backports of 3.x features, as long
as they are backwards compatible. While personally I wouldn't spend
effort on this particular backport, I don't see a problem when someone
volunteers a patch. In this specific case, I am fine with accepting set
literals and set comprehensions as new syntax. I do agree that repr()
needs to be kept the same as it was under 2.6.
rhettinger commentedon Aug 5, 2009
These all seem fine to me. Was just checking in because I thought you
had previously pronounced otherwise.
avassalotti commentedon Dec 11, 2009
If there are no objections, I will commit this patch later this week.
avassalotti commentedon Jan 9, 2010
It been a long week, but this patch is now committed as r77400.