Re: user defined modules

2018-06-10 Thread Rick Johnson
Sharan Basappa wrote: > Is there a specific location where user defined modules > need to be kept? My advice is that any location is a good location so long as the location you chose is _not_ a part of the PythonXY directory tree. For example, on a windoze machine (and in Python2.x at

Re: user defined modules

2018-06-09 Thread Albert-Jan Roskam
On 5 Jun 2018 09:32, Steven D'Aprano wrote: On Mon, 04 Jun 2018 20:13:32 -0700, Sharan Basappa wrote: > Is there a specific location where user defined modules need to be kept? > If not, do we need to specify search location so that Python interpreter > can find it? Python m

Re: user defined modules

2018-06-05 Thread Steven D'Aprano
On Mon, 04 Jun 2018 20:13:32 -0700, Sharan Basappa wrote: > Is there a specific location where user defined modules need to be kept? > If not, do we need to specify search location so that Python interpreter > can find it? Python modules used as scripts can be run from anywhere, by poi

user defined modules

2018-06-04 Thread Sharan Basappa
Is there a specific location where user defined modules need to be kept? If not, do we need to specify search location so that Python interpreter can find it? Also, when does Python interpreter compile the module code? When it is imported? -- https://mail.python.org/mailman/listinfo/python-list

Re: jython: user-defined modules

2007-04-25 Thread Diez B. Roggisch
Gregor Stich wrote: > Dear all, > > I hope my question is here in the right place... > What I want to achieve is a communication between Java and Python. We > have a pretty strong framework of existing python scripts and modules. > Now I want to use jython in order to faciliate the communication

jython: user-defined modules

2007-04-25 Thread Gregor Stich
Dear all, I hope my question is here in the right place... What I want to achieve is a communication between Java and Python. We have a pretty strong framework of existing python scripts and modules. Now I want to use jython in order to faciliate the communication between another Java framework.

Re: import function from user defined modules

2006-08-28 Thread Fredrik Lundh
groves wrote: > Can anybody give me an example of how to import a function of module X > in module y. And please if yu can use classes(Object oriented approach) > would be great. > > The problem is that I have created a text on canvas, and now I want > that whenever a user right clicks on it, the

Re: import function from user defined modules

2006-08-27 Thread Simon Forman
groves wrote: > Can anybody give me an example of how to import a function of module X > in module y. And please if yu can use classes(Object oriented approach) > would be great. > > The problem is that I have created a text on canvas, and now I want > that whenever a user right clicks on it, the o

import function from user defined modules

2006-08-27 Thread groves
Can anybody give me an example of how to import a function of module X in module y. And please if yu can use classes(Object oriented approach) would be great. The problem is that I have created a text on canvas, and now I want that whenever a user right clicks on it, the option COMMAND should invo

import function from user defined modules

2006-08-27 Thread groves
Can anybody give me an example of how to import a function of module X in module y. And please if yu can use classes(Object oriented approach) would be great. The problem is that I have created a text on canvas, and now I want that whenever a user right clicks on it, the option COMMAND should invo

Re: Importing User-defined Modules

2005-07-25 Thread Walter Brunswick
Thomas Guettler, your solution was very impractical besides being ignorant of my problem. Thanks for trying nonetheless. Andrew Clover, that is exactly what I was looking for. A few examples would have been nice, but I think I can manage from here. Thanks you. -- http://mail.python.org/mail

Re: Importing User-defined Modules

2005-07-25 Thread and-google
Walter Brunswick <[EMAIL PROTECTED]> wrote: > I need to import modules with user-defined file extensions > that differ from '.py', and also (if possible) redirect the > bytecode output of the file to a file of a user-defined > extension. You shouldn't really need a PEP for that; you can take cont

Re: Importing User-defined Modules

2005-07-25 Thread Thomas Guettler
Am Sun, 24 Jul 2005 13:12:04 -0400 schrieb Walter Brunswick: > I need to import modules with user-defined file extensions that differ from > '.py', and also (if possible) redirect the bytecode > output of the file to a file of a user-defined extension. > I've already read PEP 302 (http://www.pyt

Re: Importing User-defined Modules

2005-07-24 Thread Steve Holden
Walter Brunswick wrote: I need to import modules with user-defined file extensions that differ from '.py', and also (if possible) redirect the bytecode output of the file to a file of a user-defined extension. I've already read PEP 302 (http://www.python.org/peps/pep-0302.html), but I didn't full

Importing User-defined Modules

2005-07-24 Thread Walter Brunswick
I need to import modules with user-defined file extensions that differ from '.py', and also (if possible) redirect the bytecode output of the file to a file of a user-defined extension. I've already read PEP 302 (http://www.python.org/peps/pep-0302.html), but I didn't fully understand it. Would