Easy Python reloading module question?

Reload is not a builtin in Python 3, so if that's what you're using the problem you see is expected. If you're on Python 2. *, what does dir(__builtins__) say...?

Reload is not a builtin in Python 3, so if that's what you're using the problem you see is expected. If you're on Python 2. *, what does dir(__builtins__) say...? Edit: questioner specified they're on 3.

*, so (if reloading is truly a must) they should use imp. Reload (from the imp standard library module).

I am using python 3.1 So what is the expression that correlates to 2. *'s reload in Python 3.1? – Lonnie Price Jun 7 '09 at 5:22 1 If you must reload in 3.

*, see e.g. Docs.python. Org/dev/py3k/library/… . – Alex Martelli Jun 7 '09 at 7:02.

The . Py looks like the problem. The following should work import script4 reload(script4).

You deleted your __builtins__ variable. How to fix this? Don't delete __builtins__.

Also can someone explain step by step what that error message means? It means python can't find the function "reload". Reload (script4.Py) This is incorrect.

If you did "import script4", then you must do "reload(script4).

It looks like you have a space between the function name reload, and the first parenthesis. Also, you don't need to add . Py to the module name--that's how the modules are identified by the interpreter.

The space after the function name is legal. – Ori Pessach Jun 7 '09 at 4:09.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions