python-list at python.org

Rikard Bosnjakovic bos at hack.org
Thu Apr 12 11:33:29 EDT 2001


"Vincent A. Primavera" wrote:

> Hello,
>         What I am trying to accomplish is to shorten statements such as
> stdscr.addstr(10, 10, 'This is a test...', curses.color_pair(1))... ;o}
> nothing too complicated.

>>> import os.path
>>> foo = os.path.dirname
>>> foo("/foo/bar/gazonk.jpg")
'/foo/bar'



-- 
Rikard Bosnjakovic - http://bos.hack.org/cv/ - ICQ: 1158217

Anyone sending unwanted advertising e-mail to my address will be
charged $250 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.



More information about the Python-list mailing list