Skip to content

Instantly share code, notes, and snippets.

@RonjaPonja
Created October 3, 2018 23:00
Show Gist options
  • Save RonjaPonja/4302a20e8956678628eb712423a59aaa to your computer and use it in GitHub Desktop.
Save RonjaPonja/4302a20e8956678628eb712423a59aaa to your computer and use it in GitHub Desktop.
╭─space@FeTAp ~
╰─$ python
Python 2.7.10 (default, Oct 6 2017, 22:29:07)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> b'\x00'.join(b'\x11\x11\x11')
'\x11\x00\x11\x00\x11'
>>> ^D
╭─space@FeTAp ~
╰─$ python3
Python 3.7.0 (default, Aug 14 2018, 17:11:22)
[Clang 9.1.0 (clang-902.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> b'\x00'.join(b'\x11\x11\x11')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: sequence item 0: expected a bytes-like object, int found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment