Git Product home page Git Product logo

Comments (4)

MostAwesomeDude avatar MostAwesomeDude commented on June 26, 2024

Off the top of my head, this shouldn't be the case because relative module imports don't include the modules themselves. Try it; a test.py with "import test" in it won't cause a recursive import. I'll see if I can reproduce this tomorrow.

from bravo.

tw00 avatar tw00 commented on June 26, 2024

This is what I get:

tw@machine: ~/minecraft_server/_test $ cat json.py
import json
def foo(): pass
print (json)

tw@machine: ~/minecraft_server/_test $ python2.6 json.py
<module 'json' from '/home/tw/minecraft_server/_test/json.py'>
<module 'json' from '/home/tw/minecraft_server/_test/json.py'>

tw@machine: ~/minecraft_server/_test2 $ cat test.py 
import json
def bar(): pass
print(json)

tw@machine: ~/minecraft_server/_test2 $ python2.6 test.py 
<module 'json' from '/usr/lib64/python2.6/json/__init__.pyc'>

Btw. awesome project! Keep it up!

from bravo.

MostAwesomeDude avatar MostAwesomeDude commented on June 26, 2024

Bizarre; I just reproduced this on a fresh Gentoo box with Python 2.6. I guess the JSON imports need to be cleaned up at some point.

from bravo.

MostAwesomeDude avatar MostAwesomeDude commented on June 26, 2024

JSON's no longer the default, so I'm closing this.

from bravo.

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.