Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string + bytearray coercion #780

Closed
rudi-c opened this issue Jul 29, 2015 · 0 comments
Closed

string + bytearray coercion #780

rudi-c opened this issue Jul 29, 2015 · 0 comments

Comments

@rudi-c
Copy link
Contributor

rudi-c commented Jul 29, 2015

In CPython:

>>> "abc" + bytearray("abc")
bytearray(b'abcabc')

In Pyston:

>> "abc" + bytearray("abc")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>:
TypeError: cannot concatenate 'str' and 'bytearray' objects
vinzenz added a commit to vinzenz/pyston that referenced this issue Aug 13, 2015
vinzenz added a commit to vinzenz/pyston that referenced this issue Aug 14, 2015
@kmod kmod closed this as completed in ce86094 Aug 14, 2015
kmod added a commit that referenced this issue Aug 14, 2015
Allow string + bytearray => bytearray. Fixes #780
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant