Nick Coghlan added the comment: It technically could (if they're passing it to a function that takes a "char *"), but if they are and they can't change the affected function to take "const char *" instead, then that's an actual bug in the way they're using it.
So +1 from me for explicitly declaring the immutability in 3.7+ - it will need a note in the What's New porting guide though. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28748> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com