Autocompletion in interactive mode doesn't work in 2.5.1

2007-06-11 Thread Papalagi Pakeha
Hi all, How can I turn on autocompletion when I push in python 2.5.1 interactive mode? E.g. to give me a list of all methods and attributes of a given object. It works great on my Linux / Ubuntu 7.04 installation but doesn't work on Solaris 10 (x86). I have libreadline.so and libncurses.so insta

Re: Autocompletion in interactive mode doesn't work in 2.5.1

2007-06-12 Thread Papalagi Pakeha
On 6/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Jun 12, 9:36 am, "Papalagi Pakeha" wrote: > > Hi all, > > > > How can I turn on autocompletion when I push in python 2.5.1 > > interactive mode? E.g. to give me a list of all methods and

Installing manpage in setup.py

2007-06-16 Thread Papalagi Pakeha
Hi all, how can I tell setup() in distutils' setup.py to install manual pages of my program? I.e. prgclient.1 to /.../man/man1 and prgdaemon.8 to /.../man/man8? The problem is that those /.../ directories may be different on every system, for instance /usr/share/man on OpenSUSE and /usr/man on Sol

How to find script's directory

2007-08-19 Thread Papalagi Pakeha
Hi, I have a project (a django project actually) that has a structure something like: /path/prj/settings.py /path/prj/scripts/blah.py /path/prj/... In order to run blah.py I need to set $PYTHONPATH to /path/prj because it does "import settings". That's all good. I would however like to autodetect

numpy confusion

2007-10-23 Thread Papalagi Pakeha
Hi all, I'm trying to do some calculations with NumPy but apparently didn't quite got the basics. For example I need Exponential Moving Average function. That is, I have an array of values and want to apply a function F(current, previous) to each element of the array. How can I pass the 'previous'