473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

reopen the PyCrust after change the script

7
(e.g. a file name g.py with class called "test")
evreytime I change the content in test and saved , it will not update my script when I type

>>> from g import test

But it only work when I reopen the PyCrust, is there any other method rather than reload the PyCrust again?
Oct 11 '07 #1
2 1471
bartonc
6,596 Expert 4TB
(e.g. a file name g.py with class called "test")
evreytime I change the content in test and saved , it will not update my script when I type

>>> from g import test

But it only work when I reopen the PyCrust, is there any other method rather than reload the PyCrust again?
Here is an excerpt from the 2.4 docs:
reload( module)

Reload a previously imported module. The argument must be a module object, so it must have been successfully imported before. This is useful if you have edited the module source file using an external editor and want to try out the new version without leaving the Python interpreter. The return value is the module object (the same as the module argument).
Oct 11 '07 #2
bartonc
6,596 Expert 4TB
Here is an excerpt from the 2.4 docs:
reload() is also discussed here.
Oct 11 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Daniel Joyce | last post by:
When I try and run pycrust, I get... 'import site' failed; use -v for traceback Traceback (most recent call last): File "/usr/bin/pycrust", line 4, in ? from wxPython.lib.PyCrust.PyCrustApp...
3
by: It's me | last post by:
I am trying out PyCrust and at a lost what to do next. With the previous IDE I tried, the IDE pops up the console and the editor. From the editor, I can set up breakpoints and debug and so forth....
3
by: Byron | last post by:
Hi, Javascript confuses me, so I usually limit myself to Dreamweaver's built-in scripts for stuff like imageswaps. But this time I'm trying to write something very simple myself. I do most of my...
2
by: Samuel Yin | last post by:
Hi, guys, This should be a simple problem, but I just can not resolve it. I just want to use a python script to change my working directory. see my following code: # mycd.py 1) destdir =...
0
by: bhchng | last post by:
After I click the submit button on my child window, it successfully navigate the parent window to the indicated URL and close the child. But I dont understand why the child window reopen a new...
1
by: Timothy Gee | last post by:
Have do a lot of lab work making use of xmlrpclib and am quite dependent on it. I just started working with pycrust under Linux RH9, and wanted to use it as my standard python environment, however,...
0
by: Rich Shepard | last post by:
To test my code interactively I decided to try PyCrust. However, all the File menu items except Save and Quit are greyed out so I cannot open a saved file. Is there a simple explanation I've...
0
by: WolfgangZ | last post by:
Hi, I've tried to add " from __future__ import division" to the startup script of pycrust. It seems to be imported as division is listed in the namespace. But it is somehow not activated. Any...
6
by: Kanis | last post by:
Hi, I am a Python beginner and using PyCrust to process data for my research work. I found I not able to import a .py file directly. But I have to type in every lines every time. Or I can save...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.