A
A
Andrew Electis2018-05-23 14:47:20
Python
Andrew Electis, 2018-05-23 14:47:20

Is it possible to parse such a string without constructing a bicycle?

suds.client.Client library service
method returns a string like this:
(LimitResponse){
Limit = 1000000
TotalLimit = 1000000
}
how can I get the parameters without a bike?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2018-05-23
@electis

Most likely through the attributes of the object (service.Limit) ...
If with bicycle transport, then through regexp

limit, totalLimit = [int(x) for x in re.findall('\d+', str(service))]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question