[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python2.4.4-1 examples usage?



On 1/4/07, Kumar Appaiah <akumar@ee.iitm.ac.in> wrote:
[kumar@debian ~] dpkg -L python-examples
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-examples

So, there are no files in the package? Is this the sign of a bug?

$ apt-cache depends python-examples
python-examples
 Depends: python
 Depends: python2.4-examples
                    ^^^^^^^^^^^^^^^^^^^^^^
                    Examply goodness lives here.

On 05/01/07, Ishwar Rattan wrote:
> I just updated to python2.4, it also installed a python-examples package.
>
> How does one use this package? Import into python interpreter does not
> work..

Here's one on my system that works easily (no special input needed):

/usr/share/doc/python2.4/examples/Demo/curses/life.py

It's executable, so you can just run it.  I see a proliferation of
README files in examples/Demo and subdirectories, and each example
that I've looked at has usage information at the top, so "less" should
tell you what you need to know to get things working.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Reply to: