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 Ramchandra Apte
Recipients Ramchandra Apte
Date 2012-06-20.06:03:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340172232.21.0.850838599551.issue15113@psf.upfronthosting.co.za>
In-reply-to
Content
delattr(__builtins__,"getattr") causes shell to stop working
if you type some code in nothing gets printed back
if you press enter without typing any code you get a traceback

Exception in thread SockThread:
Traceback (most recent call last):
  File "/usr/lib/python3.2/socketserver.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.2/socketserver.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.2/socketserver.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.2/idlelib/rpc.py", line 503, in __init__
    socketserver.BaseRequestHandler.__init__(self, sock, addr, svr)
  File "/usr/lib/python3.2/socketserver.py", line 637, in __init__
    self.handle()
  File "/usr/lib/python3.2/idlelib/run.py", line 264, in handle
    rpc.RPCHandler.getresponse(self, myseq=None, wait=0.05)
  File "/usr/lib/python3.2/idlelib/rpc.py", line 280, in getresponse
    response = self._getresponse(myseq, wait)
  File "/usr/lib/python3.2/idlelib/rpc.py", line 300, in _getresponse
    response = self.pollresponse(myseq, wait)
  File "/usr/lib/python3.2/idlelib/rpc.py", line 438, in pollresponse
    response = self.localcall(seq, resq)
  File "/usr/lib/python3.2/idlelib/rpc.py", line 185, in localcall
    method = getattr(obj, methodname)
NameError: global name 'getattr' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.2/threading.py", line 740, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.2/threading.py", line 693, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.2/idlelib/run.py", line 135, in manage_socket
    server.handle_request() # A single request only
  File "/usr/lib/python3.2/socketserver.py", line 269, in handle_request
    self._handle_request_noblock()
  File "/usr/lib/python3.2/socketserver.py", line 286, in _handle_request_noblock
    self.handle_error(request, client_address)
  File "/usr/lib/python3.2/idlelib/run.py", line 240, in handle_error
    print('Request: ', repr(request), file=erf)
  File "/usr/lib/python3.2/socket.py", line 111, in __repr__
    getattr(self, '_closed', False) and " [closed] " or "",
NameError: global name 'getattr' is not defined
History
Date User Action Args
2012-06-20 06:03:52Ramchandra Aptesetrecipients: + Ramchandra Apte
2012-06-20 06:03:52Ramchandra Aptesetmessageid: <1340172232.21.0.850838599551.issue15113@psf.upfronthosting.co.za>
2012-06-20 06:03:51Ramchandra Aptelinkissue15113 messages
2012-06-20 06:03:49Ramchandra Aptecreate