Python Forum
os.path.join, bytearray, python2 vs python3
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
os.path.join, bytearray, python2 vs python3
#1
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)?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  The command python3 -m venv venv does not correctly set sys.path echeadle 2 2,653 Jul-25-2023, 10:41 AM
Last Post: Aften1961
  chopping a bytearray Skaperen 2 2,108 Jul-25-2021, 11:47 PM
Last Post: Skaperen
  bytearray (and bytes) in Python2 Skaperen 3 2,867 Jun-06-2019, 05:43 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020