From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: how having the basename of a file or directory Date: Tue, 01 Feb 2011 10:37:39 -0500 Message-ID: <87tygnwyt8.fsf@red-bean.com> References: <8739o9ilfs.fsf@gmail.com> <877hdl4grd.fsf@uwakimon.sk.tsukuba.ac.jp> <87y661h2ju.fsf@gmail.com> <8739o83r6u.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: Karl Fogel NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296574719 18308 80.91.229.12 (1 Feb 2011 15:38:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2011 15:38:39 +0000 (UTC) Cc: emacs-devel@gnu.org, Thierry Volpiatto To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 01 16:38:35 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PkIJO-0002Jd-4z for ged-emacs-devel@m.gmane.org; Tue, 01 Feb 2011 16:38:34 +0100 Original-Received: from localhost ([127.0.0.1]:33798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkIJN-0001no-JQ for ged-emacs-devel@m.gmane.org; Tue, 01 Feb 2011 10:38:33 -0500 Original-Received: from [140.186.70.92] (port=57473 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkIIc-0001V0-7r for emacs-devel@gnu.org; Tue, 01 Feb 2011 10:37:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkIIY-0006NM-Sv for emacs-devel@gnu.org; Tue, 01 Feb 2011 10:37:43 -0500 Original-Received: from osh-net-219-98.onshore.net ([66.146.219.98]:43460 helo=sanpietro.red-bean.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkIIY-0006N8-OP for emacs-devel@gnu.org; Tue, 01 Feb 2011 10:37:42 -0500 Original-Received: from localhost ([127.0.0.1]:38779 helo=floss ident=kfogel) by sanpietro.red-bean.com with esmtp (Exim 4.72) (envelope-from ) id 1PkIIV-0004eJ-EP; Tue, 01 Feb 2011 09:37:39 -0600 In-Reply-To: <8739o83r6u.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Tue, 01 Feb 2011 20:55:05 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 66.146.219.98 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135402 Archived-At: "Stephen J. Turnbull" writes: > > or creating a basename function > >Un-Pythonic. But then, this isn't Python, so I guess it's OK. ;-) $ python Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) >>> import os.path >>> os.path.basename("/home/kfogel/README") 'README' >>> quit() $