You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all methods including constructor defined in ARC4 accepts not only bytes but also unicode str.
However passing a unicode str to ARC4 methods requires developers to be very careful like the following example.
The example is too simple for experienced developers to make a mistake but once someone changed the text file's encoding, or the print function is called from another module, it could be difficult to find the root cause.
So I will add changes to have ARC4 accept only bytes in future releases.
As a first step, arc4 0.3.0 will warn DeprecationWarning when users pass unicode str to any public methods or constructor of ARC4.
Thereafter maybe in arc4 1.0.0, it will be officially unsupported.
The text was updated successfully, but these errors were encountered:
Currently all methods including constructor defined in
ARC4
accepts not onlybytes
but also unicodestr
.However passing a unicode
str
toARC4
methods requires developers to be very careful like the following example.The example is too simple for experienced developers to make a mistake but once someone changed the text file's encoding, or the
print
function is called from another module, it could be difficult to find the root cause.So I will add changes to have
ARC4
accept only bytes in future releases.As a first step,
arc4 0.3.0
will warnDeprecationWarning
when users pass unicodestr
to any public methods or constructor ofARC4
.Thereafter maybe in
arc4 1.0.0
, it will be officially unsupported.The text was updated successfully, but these errors were encountered: