This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, eanxgeek, effbot, skip.montanaro
Date 2008-01-22.15:06:19
SpamBayes Score 0.31296602
Marked as misclassified No
Message-id <1201014380.63.0.785119080662.issue1327@psf.upfronthosting.co.za>
In-reply-to
Content
Please, could you use the python profiler instead? Since most of the
time is spent in the bytecode interpreter, the results are much more
meaningful.
Something like:

#!/usr/bin/env python
import xmlrpclib
import profile

u = 'someuser'
p = 'password'
server_url = 'http://rhn.redhat.com/rpc/api'

def f():
    server = xmlrpclib.Server(server_url)
    session = server.auth.login(u,p)
    l = server.channel.listSoftwareChannels(session)
    for a in l:
        print a['channel_label']

def g():
    try:
        f()
    except:
        pass

profile.run("g()")
History
Date User Action Args
2008-01-22 15:06:21amaury.forgeotdarcsetspambayes_score: 0.312966 -> 0.31296602
recipients: + amaury.forgeotdarc, effbot, skip.montanaro, eanxgeek
2008-01-22 15:06:20amaury.forgeotdarcsetspambayes_score: 0.312966 -> 0.312966
messageid: <1201014380.63.0.785119080662.issue1327@psf.upfronthosting.co.za>
2008-01-22 15:06:19amaury.forgeotdarclinkissue1327 messages
2008-01-22 15:06:19amaury.forgeotdarccreate