8000 Notes on strings · go-python/gpython@4974b6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 4974b6d

Browse files
committed
Notes on strings
1 parent bc5ac4a commit 4974b6d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

py/string.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
// String objects
2+
//
3+
// Note that string objects in Python are arrays of unicode
4+
// characters. However we are using the native Go string which is
5+
// UTF-8 encoded. This makes very little difference most of the time,
6+
// but care is needed when indexing, slicing or iterating through
7+
// strings.
28

39
package py
410

0 commit comments

Comments
 (0)
0