Aahz wrote: >There are [at least] two separate issues being discussed here, and I >think that's confusing things. From my POV, the issue about whether >listcomps per se go away in Python 3.0 is completely separate from the >issue of whether sets get special literal syntax. > > For the record, I favor keeping list comps for P3K. Those should be the only type specific form. Everything else (including sets) should use: datatype(genexp).
>My opinion: if we were designing Python from scratch right now, we might >well consider having only set literals and not dict literals. However, >I don't think we can have both set and dict literals, and I think that >removing dict literals (or list literals) counts as gratuitous breakage. > > > > Rightly said. _______________________________________________ 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
