Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 9b66917

Browse files
author
Ehsan Totoni
committed
docs strings
1 parent 4d7c128 commit 9b66917

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/source/supported.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,20 @@ example::
139139
f = h5py.File(file_name, "r")
140140
X = f['points'][:]
141141
Y = f['responses'][:]
142+
143+
Strings
144+
-------
145+
146+
Currently, HPAT provides basic ASCII string support. Constant strings, equality
147+
comparison of strings (``==`` and ``!=``), ``split`` function, extracting
148+
characters (e.g. ``s[1]``), concatination, and convertion to `int` and `float`
149+
are supported. Here are some examples::
150+
151+
s = 'test_str'
152+
flag = (s == 'test_str')
153+
flag = (s != 'test_str')
154+
s_list = s.split('_')
155+
c = s[1]
156+
s = s+'_test'
157+
a = int('12')
158+
b = float('1.2')

0 commit comments

Comments
 (0)