Skip to content

Commit 3794eca

Browse files
authored
Update demo_dynamic.py
removed trailing spaces
1 parent 631de35 commit 3794eca

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

demos/demo_dynamic.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@
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.
@@ -56,11 +56,10 @@
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

0 commit comments

Comments
 (0)