Pregunta

así que ahora que actualicé Python de 2.7 a 2.7.2 ya no puedo invocar la asistencia de código de cuerda en emacs.

import numpy as np
x = np.arange(0, 5, 0.1)

Tengo la típica cuerda 0.9.3, ropemode-0.1-rc2, pymacs 0.24-beta2, ropemacs 0.6

al hacer M- / o M-x rope-code-assist obtengo el siguiente rastro en numerosos espacios de nombres que no obtuve en Python 2.7: (El mismo trato para sciPy; paradójicamente, matplotlib todavía funciona)

pymacs-report-error: Python: Traceback (most recent call last):
  <abridged>
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\ast.py", line 30, in walk
    return method(node)
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\evaluate.py", line 166, in _Call
    if '__new__' in pyobject:
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\pyobjects.py", line 32, in __contains__
    return key in self.get_attributes()
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\utils.py", line 10, in _wrapper
    setattr(self, name, func(self, *args, **kwds))
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\builtins.py", line 81, in get_attributes
    result = _object_attributes(self.builtin, self)
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\builtins.py", line 123, in _object_attributes
    child = getattr(obj, name)
AttributeError: __abstractmethods__
¿Fue útil?
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top