Thanks for the reply. Oops... I forget that I was calling the program
from a shell script, the shell script was responsible for goofing up
my command line options. Solved. Thanks again.
On Aug 29, 12:28 pm, Ant <[EMAIL PROTECTED]> wrote:
> On Aug 29, 8:11 pm, Chris Allen <[EMA
The command line syntax for my program is as follows:
action key=value key=value...
Where action is a required string (ie. 'backup', 'init', 'restore',
etc) and the program can accept one or more key value pairs. I know
this syntax isn't standard, but I think it works great for my program
as eac
On Aug 20, 12:02 am, Frank Millman <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I have just started to dabble in writing my own web server.
>
> I googled for 'python web server', and this is the first hit -
>
>http://fragments.turtlemeat.com/pythonwebserver.php
>
> It has the source code for a simpl
On Aug 6, 2:27 am, Ben Finney <[EMAIL PROTECTED]>
wrote:
> Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
> > I've read all the thread, and it seems that your problem is mostly
> > to share a single dynamic state (the config) between several
> > modules. So I do wonder: have you considered the use
On Aug 6, 12:41 am, Bruno Desthuilliers wrote:
> Chris Allen a écrit :
>
>
>
> > Hello fellow pythoneers. I'm stumped on something, and I was hoping
> > maybe someone in here would have an elegant solution to my problem.
> > This is the first time I
> Only for knowing more about modules: is there a way to dinamically reload
> an already imported module?
>
> bye
> Fabio
Yeah you can reload modules with the reload builtin function.
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 3, 10:51 am, Fabio Z Tessitore <[EMAIL PROTECTED]>
wrote:
> Heve you tried to do something like:
>
> # module configure.py
> value1 = 10
> value2 = 20
> ...
>
> # other module
> from configure import *
>
> # now I'm able to use value1 value2 etc.
> var = value1 * value2
>
> bye
Thanks for
On Aug 3, 11:16 am, Carsten Haese <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-08-03 at 17:51 +, Fabio Z Tessitore wrote:
> > Heve you tried to do something like:
>
> > # module configure.py
> > value1 = 10
> > value2 = 20
> > ...
>
> > # other module
> > from configure import *
>
> > # now I'm ab
> Hmm. So maybe something like this makes sense:
>
> __init__py:
> ###
> _default_cfg_file = 'config.conf'
>
> import configure
> def loadcfg(filename):
> configure.cfgfile = filename
> try:
> reload(pkg_module1)
> reload(pkg_module2)
> except NameErr
Hello fellow pythoneers. I'm stumped on something, and I was hoping
maybe someone in here would have an elegant solution to my problem.
This is the first time I've played around with packages, so I'm
probably misunderstanding something here...
Here's what I'd like to do in my package. I want my
Just what I was looking for thanks Diez and John.
--
http://mail.python.org/mailman/listinfo/python-list
I am confused on one aspect of exception handling. If you specify the
exception object type to match in an except statement it is possible
to also obtain the exception object itself, but I can't figure out how
to get the exception object when I don't specify a match.
for example:
>>> try: urlope
12 matches
Mail list logo