Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tuple creation and destructuring does not require parentheses in Python.

     w   =  0,   # w == (0,)
    (x)  = (0,)  # x == (0,)
     y,  =  0,   # y == 0
    (z,) = (0,)  # z == 0
Though in Rust, parentheses are required for tuple creation and destructuring.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: