Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thatswrong0
on Aug 20, 2016
|
parent
|
context
|
favorite
| on:
Python Lists vs. Tuples
When I used to write python "x = 1," bit me
way
more than it should have. And I don't see why you wouldn't want to be explicit about your tuple construction every time..
thansharp
on Aug 20, 2016
[–]
I usually use x = tuple((1,) ) so that non-Python programmers on the team know what they're dealing with.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: