Request: Make the argument source_path for api.Script optional #32

Closed
tkf opened this Issue Oct 19, 2012 · 4 comments

Comments

Projects
None yet
2 participants
Collaborator

tkf commented Oct 19, 2012

Can source_path be optional for small source? How about source_path=None meaning "do not cache". For example it will be useful when using with IPython Notebook (https://github.com/tkf/emacs-ipython-notebook), as there is no actual Python file when writing code in the notebook.

original discussion:
tkf/emacs-jedi@bd39dd2#commitcomment-2019538

Owner

davidhalter commented Oct 19, 2012

For the time being, just use it as an empty string. It may cause problems in some minor cases. But I will try to modify the interface (duration ~1-2 weeks). Just note that without a path there will be less caching.

Collaborator

tkf commented Oct 19, 2012

Thanks. Typical case I have in mind is less than 10 lines. Will it be too slow? I can send something like uuid if it can be used for source_path.

Owner

davidhalter commented Oct 19, 2012

No, that will definitely not be slow. I talk about files > 300 lines.

Owner

davidhalter commented Nov 19, 2012

Sorry, commit was wrong, it's supposed to solve parts of jedi-vim issue 32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment