__getattr__ for global namespace?

2006-05-04 Thread Harold Fellermann
'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

Re: __getattr__ for global namespace?

2006-05-06 Thread Harold Fellermann
Great! sys.excepthook() is exactly what I was looking for. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I do this with python ?

2006-05-09 Thread Harold Fellermann
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

Re: redirecting print to a a file

2006-05-11 Thread Harold Fellermann
>>> import sys >>> sys.stdout = file("output","w") >>> print "here you go" -- http://mail.python.org/mailman/listinfo/python-list

scientific libraries for python

2006-05-11 Thread Harold Fellermann
ScientifPython without much timeconsuming conversion a.s.o. in between? Thanks for any suggestions! - harold - -- http://mail.python.org/mailman/listinfo/python-list

Re: what is the difference between tuple and list?

2006-05-16 Thread Harold Fellermann
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

Re: Help System For Python Applications

2006-05-16 Thread Harold Fellermann
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

Re: Feature request: sorting a list slice

2006-05-19 Thread Harold Fellermann
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

Re: Problem with the strip string method

2008-03-03 Thread Harold Fellermann
_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

Re: Creating classes and objects more than once?

2008-11-27 Thread Harold Fellermann
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

Re: Don't you just love writing this sort of thing :)

2008-12-04 Thread Harold Fellermann
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,

Python and xml

2008-03-29 Thread Doran, Harold
, Harold -- http://mail.python.org/mailman/listinfo/python-list

Elementtree to parse xml

2008-03-31 Thread Doran, Harold
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

Process multiple files

2008-04-14 Thread Doran, Harold
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

Learning Tkinter

2008-04-16 Thread Doran, Harold
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

Making Windows Larger in Tkinter

2008-04-18 Thread Doran, Harold
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

Re: Profiling, sum-comprehension vs reduce

2008-09-13 Thread Harold Fellermann
(lst). Cheers, - harold - -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Linear Programming on Ubuntu

2008-09-17 Thread Harold Fellermann
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

Problem combining Scientific (leastSquaresFit) and scipy (odeint)

2009-11-21 Thread Harold Fellermann
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

Python Opportunity at OPNET

2010-03-04 Thread Harold Meder
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

Use python to execute a windows program

2009-09-11 Thread Doran, Harold
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

RE: Use python to execute a windows program

2009-09-11 Thread Doran, Harold
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

RE: Use python to execute a windows program

2009-09-11 Thread Doran, Harold
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

<    1   2