[Pydev-cvs] org.python.pydev/PySrc interpreterInfo.py, 1.22, 1.23 pydevconsole.py, 1.3, 1.4
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-04-12 12:07:56
|
Update of /cvsroot/pydev/org.python.pydev/PySrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8550/PySrc Modified Files: interpreterInfo.py pydevconsole.py Log Message: help() works (ctype implementation no longer in default pythonpath -- under ThirdParty) Index: interpreterInfo.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/interpreterInfo.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** interpreterInfo.py 10 Oct 2007 12:16:00 -0000 1.22 --- interpreterInfo.py 12 Apr 2008 12:08:00 -0000 1.23 *************** *** 18,23 **** if sys.platform == "cygwin": ! sys.path.append(os.path.join(sys.path[0],'ThirdParty')) ! import ctypes def nativePath(path): MAX_PATH=512 # On cygwin NT, its 260 lately, but just need BIG ENOUGH buffer --- 18,28 ---- if sys.platform == "cygwin": ! ! try: ! import ctypes #use from the system if available ! except ImportError: ! sys.path.append(os.path.join(sys.path[0],'ThirdParty/wrapped_for_pydev')) ! import ctypes ! def nativePath(path): MAX_PATH=512 # On cygwin NT, its 260 lately, but just need BIG ENOUGH buffer Index: pydevconsole.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/pydevconsole.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pydevconsole.py 30 Mar 2008 21:45:12 -0000 1.3 --- pydevconsole.py 12 Apr 2008 12:08:00 -0000 1.4 *************** *** 32,37 **** --- 32,45 ---- server = xmlrpclib.Server('http://%s:%s' % (self.host, self.client_port)) return server.RequestInput() + + def isatty(self): + return False #not really a file + def write(self, *args, **kwargs): + pass #not available StdIn (but it can be expected to be in the stream interface) + def flush(self, *args, **kwargs): + pass #not available StdIn (but it can be expected to be in the stream interface) + #in the interactive interpreter, a read and a readline are the same. read = readline |