These are chat archives for dropbox/pyston

Feb 2015
Marius Wachtler
Feb 27 2015 09:31
Marius Wachtler
Feb 27 2015 21:42
getWriteableStringContents() returns currently NULL when the str is empty
I'm wondering if it safe so return &s[0] instead? (comes up when running virtualenv)[]/ says: C++11
If pos is equal to the string length, the function returns a reference to the null character that follows the last character in the string, which shall not be modified.
do you think it would be safe?
Kevin Modzelewski
Feb 27 2015 21:46
oh interesting
yeah I guess if there's guaranteed to be a null character there for a zero-length string then it sounds like it should be ok