On Sun, Nov 17, 2013 at 8:44 AM, Laszlo Nagy wrote:
>
>>
>> So is the default utf-8 or not? Should the documentation be updated? Or do
>> we have a bug in the interactive shell?
>>
> It was my fault, sorry. The other program used os.system at some places, and
> it accidentally used python2 instead
On Sun, Nov 17, 2013 at 8:19 AM, Laszlo Nagy wrote:
> print("digest",digest,type(digest))
>
> This function was called inside a script, and gave me this:
>
> ('digest', '\xa0\x98\x8b\xff\x04\xf9V;\xbd\x1eIHzh\x10-\xc5!\x14\x1b', 'str'>)
>
This looks very much like you're running under Py
So is the default utf-8 or not? Should the documentation be updated?
Or do we have a bug in the interactive shell?
It was my fault, sorry. The other program used os.system at some places,
and it accidentally used python2 instead of python 3. :-(
--
This message has been scanned for viruse
On 16-11-2013 21:57, Laszlo Nagy wrote:
the error is in one of the lines you did not copy here
because this works without problems:
<>
#!/usr/bin/python
Most probably, your /usr/bin/python program is python version 2, and not
python version 3
Try the same program with /usr/bin/python3.
Why it is behaving differently on the command line? What should I do
to fix this?
I was experimenting with this a bit more and found some more confusing
things. Can somebody please enlight me?
Here is a test function:
def password_hash(self,password):
public = bytearray([rando
the error is in one of the lines you did not copy here
because this works without problems:
<>
#!/usr/bin/python
Most probably, your /usr/bin/python program is python version 2, and not
python version 3
Try the same program with /usr/bin/python3. And also try the interactive
mode with
On 16-11-2013 20:12, Laszlo Nagy wrote:
Example interactive:
$ python3
Python 3.3.1 (default, Sep 25 2013, 19:29:01)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uuid
>>> import base64
>>> base64.b32encode(uuid.uuid1().bytes)[:-6].lowe