Re: PyDev multiple source files?



On May 30, 2:10 pm, RossGK <ros...@xxxxxxxxx> wrote:

Now I want to be able to break my single source file up into multiple
files to segregate functions, divide up with others, etc, but I don't
know how to configure it.

Found a reference that helped me out:

http://www.python.org/doc/2.1.3/tut/node8.html

The keys for me are that a) a file named junk.py is called a module (I
thought a module was a set of files within a package - nope just a
source file).

Import is the right thing for an 'include' action - but after you
import you need to hierarchically reference the contents of the
imported module. So if my junk.py 'module' contains a "def things",
then after I have done my "import junk" I refer to things as
junk.things

Global seem to have a scope of only their current module. So the
question that comes to mind is how to create a global global. Can I
stick it into __init_.py or something and have it available for the
whole package?
.



Relevant Pages

  • RE: Duplicate name error after copying task/ VS_ISCORRUPT
    ... What you have to do is copy the assemblies that you want to reference ... Dim oApp As New Application, ... Dim oExec As Executable ... ' Get package path ...
    (microsoft.public.sqlserver.dts)
  • Error 713
    ... and include a reference to the Msdbrptr.dll ... This file is listed as Microsoft Data Report Designer v6.0 in the ... Manually include the Msdbrptr.dll file in the Package and ... <windows system>\MSDBRPTR.DLL ...
    (microsoft.public.vb.controls)
  • Re: Backpropagation Neural network Code problem
    ... Preferable to email the data in ascii format and reference ... how to divide all the records in 60 40 i.e. some person pictures ... or correct classification rates... ... class error rates as well as an overall ...
    (comp.soft-sys.matlab)
  • Re: How to make custom linked cross-references?
    ... If somebody wants the package on CTAN, ... a macro \p@which is intended for providing some ... A reference to section~of this book ... You might wish to take reference to yet another label within ...
    (comp.text.tex)
  • Re: How to make custom linked cross-references?
    ... If somebody wants the package on CTAN, ... a macro \p@which is intended for providing some ... A reference to section~of this book ... You might wish to take reference to yet another label within ...
    (comp.text.tex)