Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
uraza
on March 16, 2013
|
parent
|
context
|
favorite
| on:
Adding Empty Set Literals to Python
set = <> looks like the other empty container literals, but it's not consistent with the literal notation for sets with one or more elements: my_set = {1,2,3}.
sambe
on March 16, 2013
[–]
What about supporting <1, 2, 3> as well, and eventually deprecating the existing way? The end result would be much nicer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: