News for hackers. Stuff that matters.
Re:Python bug: Can assign [] = (), but not () = [] by Jach on Wednesday May 27, 2015 @04:36AM (#9610070)
Only constant for certain values of "constant". ;)

(https://gist.github.com/Jach/1208215 works in Python 3 too.)

Re:Python bug: Can assign [] = (), but not () = [] by teddyh on Wednesday May 27, 2015 @04:46AM (#9610092)
After “import ctypes”, all bets are off.
Re:Python bug: Can assign [] = (), but not () = [] by IsTom on Wednesday May 27, 2015 @06:20AM (#9610385)
There are ways to mark memory pages as read-only. It's not even difficult.
Re:Python bug: Can assign [] = (), but not () = [] by rjaco31 on Wednesday May 27, 2015 @08:03AM (#9610725)
Why would you do that? That code is working perfectly as intended, the user is allowed to do that