Re: what has python added to programming languages? (lets be esoteric, shall we ; )

2006-04-21 Thread dadapapa
It's true that most features of python are intentionally borrowed from
other languages. If I can think of anything that I believe to be
specific to python, I would say it is the combination of high level
datatypes together with an extremely simple syntax. Actually, this
combination often results in idioms that --- although adapted from
other languages --- are seldom as clear as in python. Examples for this
are one-liners like

 x,y = y,x
 a,b,c = f(x)
 for key in my_dict : do_some_thing_with(my_dict[key])

It might be that Guido adapted such notations from ABC, a language I am
not familiar with, but as far as I know, the syntactic sugar for high
level datatypes is one thing that
distinguishes python from other languages.

- harold -

-- 
http://mail.python.org/mailman/listinfo/python-list


Tix cannot open /usr/share/libtix

2005-08-17 Thread dadapapa
Hi,

I have a problem getting Tix to run:

Python 2.4.1 (#2, Aug 17 2005, 10:19:59)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type help, copyright, credits or license for more information.
 import Tix
 t = Tix.Tk()
Traceback (most recent call last):
  File stdin, line 1, in ?
  File /usr/projects/EES_dev/haroldf/lib/python2.4/lib-tk/Tix.py,
line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: couldn't load file /usr/share/libtix8.1.8.3.so:
/usr/share/libtix8.1.8.3.so: cannot open shared object file: No such
file or directory


libtix is not in /usr/share/ but I located it in /usr/lib/

[EMAIL PROTECTED] dpd]$ locate libtix8.1.8.3.so
warning: locate: warning: database /var/lib/slocate/slocate.db' is more
than 8 days old
/usr/lib/libtix8.1.8.3.so
[EMAIL PROTECTED] dpd]$

is there any way to tell python/tkinter/tix where to look for the
library?
thanks,

- harold -

-- 
http://mail.python.org/mailman/listinfo/python-list