File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 a mathlib; hashing and symmetric encryption do not.
3535
3636 ------
37-
37+
3838 This code was originally written for Python 2.7 with the
3939 ctypes standard library. This version was modified so that
4040 it would run under both Python 2.7 and 3.6. You might want
4141 to run a diff on the .py and .py3 files to see the differences
42- between the two languages.
43-
42+ between the two languages.
43+
4444 Arguably the biggest change for Python3 has to do with
4545 strings. Under Python2, native strings are ASCII bytes and
4646 passing them to LTC is natural and requires no conversion.
47- Under Python3 all native strings are Unicode which requires
47+ Under Python3 all native strings are Unicode which requires
4848 they be converted to bytes before use by LTC.
4949
5050 Note the following for Python3.
5656 If so, use <string>.decode('utf-8').
5757 - The Python2 'print' statement becomes a function in
5858 Python3 which requires parenthesis, eg. 'print()'.
59-
59+
6060 NB: Unicode is achieved under Python2 by either defining
6161 a Unicode string with a 'u' prefix or passing ASCII
6262 strings thru the 'unicode()' function.
63-
6463
6564 Larry Bugbee
6665 March 2014 v1
You can’t perform that action at this time.
0 commit comments