Code Monkey home page Code Monkey logo

Comments (2)

davidhalter avatar davidhalter commented on July 20, 2024

As long as you write pure python, everything is done statically. But: If you use builtin modules (c_builtin) there is no other option than to execute those modules. However: Execute isn't that critical (as e.g. in pythoncomplete), because it means one import and no more. After this import a Python file will be generated that contains all the definitions of a builtin module.

So basically the only dangerous thing is using the import itself. If your c_builtin uses some strange initializations, it might be dangerous. But if it does you're screwed anyways, because at one moment you're going to execute your code, which executes the import.

Is this enough? I would add it to the documentation, later on.

from jedi.

Julian avatar Julian commented on July 20, 2024

Wonderful. That sounds great to me and I think it would be a good addition
to the docs whenever you add it.

Thanks again!

On Monday, October 22, 2012, David Halter wrote:

As long as you write pure python, everything is done statically. But: If
you use builtin modules (c_builtin) there is no other option than to
execute those modules. However: Execute isn't that critical (as e.g. in
pythoncomplete), because it means one import and no more. After this import
a Python file will be generated that contains all the definitions of a
builtin module.

So basically the only dangerous thing is using the import itself. If your
c_builtin uses some strange initializations, it might be dangerous. But if
it does you're screwed anyways, because at one moment you're going to
execute your code, which executes the import.

Is this enough? I would add it to the documentation, later on.


Reply to this email directly or view it on GitHubhttps://github.com//issues/38#issuecomment-9656172.

from jedi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.