beautypg.com

28 built-in functions – Rainbow Electronics GM862-GPS User Manual

Page 91

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 91 of 100












RemovedFeatureError is an exception added in Python version 1.5.2+. RemovedFeatureError is
raised when trying to use floats or complex that are not supported.

Exceptions are strings objects. If file exceptions.py is downloaded to Data Terminal Module Python
than module exceptions is automatically imported at the scripts start and exceptions are class objects.

4.2.28 Built-in Functions


The following built-in functions are supported:


SyntaxError

SystemError

SystemExit

UnboundLocalError

TypeError

ValueError

ZeroDivisionError

abs(x)

cmp(x, y)

callable(object)

coerce(x, y)

compile(string, filename, kind)

complex(real [, imag]) (returns error)

delattr(object, name)

divmod(a, b)

eval(expression[, globals[, locals]])

execfile(file[, globals[, locals]])

filter(function, list)

float(x) (returns error)

globals()

input([prompt])

int(x)

intern(string)

issubclass(class1, class2)

locals()

long(x)

oct(x)

open(filename[, mode[, bufsize]])

raw_input([prompt])

reload(module)

round(x [, n]) (returns error)

vars([object])

ord(c)

__import__(name[, globals[, locals[, fromlist]]])