'some_name' is not defined
For classes, there are the __getattr__ and __getattribute__ functions.
I wonder if there is some related function for (failed) global
attribute
lookup that is invoked with name as its argument instead.
I consulted the docs, but could not find anything. Any
Great!
sys.excepthook() is exactly what I was looking for. Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
Better go for the subprocess module. It is supposed to replace os.popen
and has a much nicer interface.
- harold -
--
http://mail.python.org/mailman/listinfo/python-list
>>> import sys
>>> sys.stdout = file("output","w")
>>> print "here you go"
--
http://mail.python.org/mailman/listinfo/python-list
ScientifPython
without much timeconsuming
conversion a.s.o. in between?
Thanks for any suggestions!
- harold -
--
http://mail.python.org/mailman/listinfo/python-list
t;
But if you e.g. want to exchange, that dictionary by another, you need
to go for a list instead of a tuple.
Hope that made sense...
- harold -
--
http://mail.python.org/mailman/listinfo/python-list
I usually go for the webbrowser package that allows me to launch the
systems webbrowser and opens my html help files. It is really simple:
>>> import webbrowser
>>> webbrowser.open("file:///path_to/help.html#topic")
and thats all there is to do.
- harold -
--
ht
k that the additional
load they impose on the sort function is also minor. In my oppinion,
this is a straight-forward
extension of what we already find in other places in the library. I
would like to see it in a future version.
- harold -
--
http://mail.python.org/mailman/listinfo/python-list
_strip(string,sep='\n') :
return sep.join(line.strip() for line in string.split(sep))
cheers,
- harold -
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 27, 6:42 pm, Viktor Kerkez <[EMAIL PROTECTED]> wrote:
> Is this a bug?
It is not a bug: the dictionaries are different because they are
loaded from different modules.
>>> import os
>>> import test.data
>>> test.data
>>> os.chdir('test')
>>> import data
>>> data
>>> test.data is data
Fals
On Dec 4, 10:39 am, Cong Ma <[EMAIL PROTECTED]> wrote:
> Lawrence D'Oliveiro wrote:
> > for \
> > Entry \
> > in \
> > sorted \
> > (
> > f for f in os.listdir(PatchesDir) if PatchDatePat.search(f) !=
> > None
> > ) \
> > :
> > Patch = (open,
,
Harold
--
http://mail.python.org/mailman/listinfo/python-list
can send as
well as my python code to offer suggestions? I would normally insert a
minimal, commented example inside this email. But the xml file is a bit
too big to put in this email. I am *very* close to having this resolved,
but just need a nudge in the right direction.
Thanks,
Harold
--
http
Say I have multiple text files in a single directory, for illustration
they are called "spam.txt" and "eggs.txt". All of these text files are
organized in exactly the same way. I have written a program that parses
each file one at a time. In other words, I need to run my program each
time I want to
onfig(menu=menu)
filemenu = Menu(menu)
menu.add_cascade(label="File", menu=filemenu)
filemenu.add_command(label="New", command=harold)
filemenu.add_command(label="Open...", command=callback)
filemenu.add_separator()
filemenu.add_command(label="Exit", command=callba
Thanks to some help I received on list the other day, I now have a very
nice windows-based application that implements multiple programs. This
is a very powerful tool. Now I am working to make this window pretty.
One problem I cannot find help on is how to make the windows a certain
size. For examp
(lst).
Cheers,
- harold -
--
http://mail.python.org/mailman/listinfo/python-list
makes 6.
You are right that this is an unsatisfying experience. Fortunately,
the referred site is a wiki. Why don't you edit it and delete the
broken
links or add the package that did the job for you to the list, so that
others do not need to go through the same hassle.
- harold -
--
http://mail.python.org/mailman/listinfo/python-list
odule FirstDerivatives".
What is a good solution or workaround to this problem which appears to
be quite a standard situation to me?
Thanks for any help, harold.
--
http://mail.python.org/mailman/listinfo/python-list
I stumbled across this Job
Posting<https://enterprise1.opnet.com/recruiting/positions/show_job/4836>at
OPNET.
I hope that it is acceptable to post this type of info on this mailing list.
I do not know any further information regarding this opportunity.
Harold Meder.
--
http://mail.pyth
Dear list:
My question is conceptual at the moment.
Current problem:
I have a windows-based program that reads in a file and from that file
generates data that is saved to a file.
The way we do this now is a person sits in front of their machine and
proceeds as follows:
1) Open windows program
nuSelect("File->Open Database")
def Main():
start = time.time()
AM()
if __name__ == "__main__":
Main()
> -Original Message-
> From: simon.brunn...@gmail.com
> [mailto:simon.brunn...@gmail.com] On Behalf Of Simon Brunning
> Sent: Fr
09 3:09 PM
> To: python-list@python.org
> Subject: Re: Use python to execute a windows program
>
> On Fri, Sep 11, 2009 at 12:46 PM, Doran, Harold
> wrote:
> > I am working with this now. I'm toying with the examples to
> test out a
> > few things and learn ho
101 - 123 of 123 matches
Mail list logo