473,978 Members | 34,994 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Autocompletion in interactive mode doesn't work in 2.5.1

Hi all,

How can I turn on autocompletion when I push <tabin 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 installed
and "import readline" is executed during startup, but <tabstill
doesn't work. ArrowUp and ArrowDown however work and I can browse the
history of commands so I believe readline is installed and loaded
correctly.

Any hints?

Thanks

PaPa
Jun 12 '07 #1
2 1402
On Jun 12, 9:36 am, "Papalagi Pakeha" <papalagi.pak.. .@gmail.com>
wrote:
Hi all,

How can I turn on autocompletion when I push <tabin 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 installed
and "import readline" is executed during startup, but <tabstill
doesn't work. ArrowUp and ArrowDown however work and I can browse the
history of commands so I believe readline is installed and loaded
correctly.

Any hints?

Thanks

PaPa
http://docs.python.org/lib/module-rlcompleter.html

Jun 12 '07 #2
On 6/12/07, ji*****@hotmail .com <ji*****@hotmai l.comwrote:
On Jun 12, 9:36 am, "Papalagi Pakeha" wrote:
Hi all,

How can I turn on autocompletion when I push <tabin python 2.5.1
interactive mode? E.g. to give me a list of all methods and attributes
of a given object.

http://docs.python.org/lib/module-rlcompleter.html
That's it! Thanks heaps :-)

PaPa
Jun 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1210
by: Jonas Galvez | last post by:
A few days ago I posted about a problem I was having on Win2k, regarding a SyntaxError error on the interactive interpreter to anything I typed. The thread is located here: tinyurl.com/2kk7b I've mode some progress on this. I noticed that the problem in fact lies on the line break. If I place a # on the end of the line, Python has no problem interpreting it: C:\>python Python 2.3.3 (#51, Dec 18 2003, 20:22:39) on win32
7
1632
by: B.G.R. | last post by:
Hi all, I'm working on an interpreter for a university subject, which is programmed in python under linux. I got most of the work done and I'm just trying to settle some problems I've found on my way. Right now, the most important is reading the user input. Everything goes through the standard input, and now I got something like this: numline=0
20
2479
by: Joe | last post by:
When you run "python -i scriptname.py" after the script completes you left at the interactive command prompt. Is there a way to have this occur from a running program? In other words can I just run scriptname.py (NOT python -i scriptname.py) and inside of scriptname.py I decide that I want to fall back to the interactive prompt? I've searched and so far the only thing I've come up with is to use pdb, but
2
7823
by: Charles Krug | last post by:
List: I'm trying to us pylab to see what I'm doing with some DSP algorithms, in case my posts about convolution and ffts weren't giving it away. I've been using pylab's plot function, but I'm finding it a bit cumbersome. It works, but if I switch from the interactive window to the plot window and back, the plot window gets trashed.
1
3323
by: Alex | last post by:
Loking at Rossum's tutorial I've seen that he sometimes uses the expression "interactive mode" and sometimes "calculator mode". Or these concepts same? I've made the following assertion. "When Python prompts for the next command with the primary prompt ">>> ", the interpreter is said to be in an interactive mode, or in a calculator mode. In interactive mode, the Python interpreter acts as a simple calculator: you can type an...
0
1220
by: Simon Eves | last post by:
I am trying to write a Python module to embed the functionality of Maya (the 3D modelling and animation application from Autodesk, formerly Alias) for doing scripted scene manipulation and rendering processes in Python. I am aware of the CGKit project, which does this and a lot more, but it is over-complex for our needs, and also does not work in the context of a pure command-line Python script, only as an alternative scripting language...
0
1832
balabaster
by: balabaster | last post by:
Hi, I know this question has been answered before (somewhat) but I have a twist... I've written a client/server application where the server portion runs as a windows service and allows connections across the network from remote users. The application all works like a charm and is very effective. However, during testing it occured to me that hooking up to the remote user's computer across the network without their knowledge could be...
4
1783
by: digitnctu | last post by:
Dear all: I am coming with problem, to apply ctypes under interactive mode in python. libdll.dll is a third-party library. The below code segment will run well under the batch mode(ie. python test.py 11060) but when I type sequencially it doesn't work as usual. Can any give me a hand??
3
1822
by: Sal | last post by:
I'm running PHP 5.2.6 on WindowsXP. When I try interactive mode with ">php -a" the slightest syntax error throws me out of the interpreter and back to the command line. This is not very useful. Isn't there a way to stay in interactive mode after a syntax error?
0
10357
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11421
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11591
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10087
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8465
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
5162
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3773
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.