Module gwy :: Class StringList
[hide private]
[frames] | no frames]

Class StringList

source code

Instance Methods [hide private]
 
__init__()
Creates a new string list.
source code
 
append(string)
Appends a string to the end of a string list.
source code
 
get_length()
Gets the number of strings in a string list.
source code
 
get(i)
Gets a string from a string list by position.
source code
Method Details [hide private]

__init__()
(Constructor)

source code 

Creates a new string list.

Returns:
A new empty string list.

append(string)

source code 

Appends a string to the end of a string list.

Parameters:
  • string - A string to add. (string)

get_length()

source code 

Gets the number of strings in a string list.

Returns:
The number of strings in strlist.

get(i)

source code 

Gets a string from a string list by position.

Parameters:
  • i - The position of string to get. (int)
Returns:
The string, owned by strlist. It is valid only until strlist changes.