Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Jach
on May 27, 2015
|
parent
|
context
|
favorite
| on:
Python bug: Can assign [] = (), but not () = []
Only constant for certain values of "constant". ;)
(
https://gist.github.com/Jach/1208215
works in Python 3 too.)
teddyh
on May 27, 2015
[–]
After “import ctypes”, all bets are off.
IsTom
on May 27, 2015
|
parent
[–]
There are ways to mark memory pages as read-only. It's not even difficult.
rjaco31
on May 27, 2015
|
root
|
parent
[–]
Why would you do that? That code is working perfectly as intended, the user is allowed to do that
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
(https://gist.github.com/Jach/1208215 works in Python 3 too.)