Python Forum
os.path.join, bytearray, python2 vs python3 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: os.path.join, bytearray, python2 vs python3 (/thread-11385.html)



os.path.join, bytearray, python2 vs python3 - Skaperen - Jul-06-2018

in python2 you can os.path.join() bytearray names and get a bytearray joined path, but not in python3. so if 2to3 encountered this being done, how would it handle this in python3? and does anyone know why this capability was removed? is bytearray considered bad practice? should i also reject bytearray in my own functions that take path parts (at least when running under python3)?