[Python-bugs-list] [ python-Bugs-637320 ] socket fails when profiling
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 12 Nov 2002 11:38:39 -0800
Bugs item #637320, was opened at 2002-11-12 20:33
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=637320&group_id=5470
Category: Python Library
Group: Python 2.3
>Status: Deleted
>Resolution: Invalid
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Nobody/Anonymous (nobody)
Summary: socket fails when profiling
Initial Comment:
Profiling a script, that (directly or indirectly)
imports socket fails (on Linux):
> cat test.py
import socket
> /usr/local/lib/python2.3/profile.py test.py
Traceback (most recent call last):
File "/usr/local/lib/python2.3/profile.py", line 555,
in ?
run('execfile(' + `filename` + ')')
File "/usr/local/lib/python2.3/profile.py", line 71,
in run
prof = prof.run(statement)
File "/usr/local/lib/python2.3/profile.py", line 403,
in run
return self.runctx(cmd, dict, dict)
File "/usr/local/lib/python2.3/profile.py", line 409,
in runctx
exec cmd in globals, locals
File "<string>", line 1, in ?
File "test.py", line 1, in ?
import socket
File "/usr/local/lib/python2.3/socket.py", line 144, in ?
class _socketobject(object):
File "/usr/local/lib/python2.3/socket.py", line 180,
in _socketobject
exec _s % (_m, _m, _m, _m)
File "<string>", line 3, in ?
AttributeError: type object '_socket.socket' has no
attribute 'settimeout'
Removing 'settimeout' and 'gettimeout' from
_socketmethods fixes the problem.
----------------------------------------------------------------------
>Comment By: Walter Dörwald (doerwalter)
Date: 2002-11-12 20:38
Message:
Logged In: YES
user_id=89016
Ouch, this was a mixup of Python versions. Closing the bug.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=637320&group_id=5470