473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

PyDoc -g call to Alt-Installed Python

I have both python2.4 and 2.5 installed on a (k)ubuntu linux box. I'm
trying to get the call to pydoc -g (pydoc server called from the
system console) to recognize python2.5 rather than the system's
default 2.4 release.

I've tried several different things so far, to no avail. My console
scripting knowledge, so far, is minimal. Any help here is appreciated.

Thanks,
-Dieter

Mar 28 '07 #1
2 1122
D.Hering wrote:
I have both python2.4 and 2.5 installed on a (k)ubuntu linux box. I'm
trying to get the call to pydoc -g (pydoc server called from the
system console) to recognize python2.5 rather than the system's
default 2.4 release.

I've tried several different things so far, to no avail. My console
scripting knowledge, so far, is minimal. Any help here is appreciated.
Copy Tools/scripts/pydoc from the Python2.5 source distribution into ~/bin.
Then change its first line from

#!/usr/bin/env python

to

#!/usr/bin/env python2.5

Peter

Mar 28 '07 #2
On Mar 28, 3:09 am, Peter Otten <__pete...@web.dewrote:
D.Hering wrote:
I have both python2.4 and 2.5 installed on a (k)ubuntu linux box. I'm
trying to get the call to pydoc -g (pydoc server called from the
system console) to recognize python2.5 rather than the system's
default 2.4 release.
I've tried several different things so far, to no avail. My console
scripting knowledge, so far, is minimal. Any help here is appreciated.

Copy Tools/scripts/pydoc from the Python2.5 source distribution into ~/bin.
Then change its first line from

#!/usr/bin/env python

to

#!/usr/bin/env python2.5

Peter
Thanks Pete

Mar 28 '07 #3

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

Similar topics

1
by: Colin J. Williams | last post by:
I am building a module which is based on the numarray package and its sub-packages. I am proposing to use PyDoc to document this module. The problem is that PyDoc generates links to...
1
by: Paradox | last post by:
I would really like to document our private (ie underscored) methods with PyDoc but it does not seem to support this. I would appreciate it if anyone knew a good way to modify it to accomplish...
0
by: Eric Mathew Hopper | last post by:
I have a patch that allows pydoc to deal with Subversion (http://www.subversion.tigris.org) style version strings. Subversion does not do '$Revsion: num$' style tags. The closest it will get is...
0
by: Thomas Philips | last post by:
I created a program to play blackjack, and documented all the classes and functions. If I import it and then type >>>help(blackjack) I get a clean printout of all the documentation. However,...
1
by: contact | last post by:
Is it possible to persuade pydoc not to include documentation for methods inherited from built-in classes? I have several classes that inherit from dict, and don't really need documentation...
0
by: Sakcee | last post by:
Hi I am a newbie to pydoc and I need some help. I would really appreciate if some one can tell me how to add search box in a page generated by pydoc, e.g. I want to add serch like the one in...
0
by: Tony Nelson | last post by:
How can I tell Pydoc not to list information for some of the base classes? For example, when a class inherits from gtk.Widget, lots of GTK stuff gets added that doesn't really need to be there. ...
9
by: newsposter | last post by:
>>> import pydoc >>> import sys >>> sys.version '2.4.2 (#67, Sep 28 2005, 12:41:11) ' >>> pydoc sys SyntaxError: invalid syntax >>> The documentation for pydoc says: "Run "pydoc <name>" to...
0
by: durumdara | last post by:
Hi ! I need to write documentation for my mod_python website, for the base classes, functions, modules. The problem, that mod_python is imported "apache" that not existing in the normal,...
4
by: Ron Adam | last post by:
This is for a new version of pydoc if I can get the class attributes sorted out. The module level attributes aren't too difficult to categorize. (I might be just too tired to see the obvious.) ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.