From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18578 invoked by alias); 11 Feb 2009 02:25:52 -0000 Received: (qmail 18570 invoked by uid 22791); 11 Feb 2009 02:25:52 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Feb 2009 02:25:45 +0000 Received: from wpaz33.hot.corp.google.com (wpaz33.hot.corp.google.com [172.24.198.97]) by smtp-out.google.com with ESMTP id n1B2Pe8d013586 for ; Wed, 11 Feb 2009 02:25:41 GMT Received: from qyk14 (qyk14.prod.google.com [10.241.83.142]) by wpaz33.hot.corp.google.com with ESMTP id n1B2PdYG013965 for ; Tue, 10 Feb 2009 18:25:39 -0800 Received: by qyk14 with SMTP id 14so952376qyk.7 for ; Tue, 10 Feb 2009 18:25:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.173.8 with SMTP id v8mr3840766wfe.181.1234319138465; Tue, 10 Feb 2009 18:25:38 -0800 (PST) In-Reply-To: References: <200902100000.22671.pedro@codesourcery.com> <200902100235.59897.pedro@codesourcery.com> <20090210034834.GA20077@caradoc.them.org> <1234267091.13871.4.camel@localhost.localdomain> Date: Wed, 11 Feb 2009 02:25:00 -0000 Message-ID: <8ac60eac0902101825k63a13392mf5590771729897c@mail.gmail.com> Subject: Re: RFC: add ability to "source" Python code From: Paul Pluzhnikov To: Tom Tromey Cc: Thiago Jung Bauermann , Eli Zaretskii , Daniel Jacobowitz , pedro@codesourcery.com, gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00230.txt.bz2 On Tue, Feb 10, 2009 at 9:02 AM, Tom Tromey wrote: >>>>>> "Thiago" == Thiago Jung Bauermann writes: > > Thiago> I've never written a Python script (in GDB or otherwise) with that > Thiago> markup, but *all* the Python scripts I ever wrote in my life ended > Thiago> in .py. It'd be just counter-intuitive and counter productive to not > Thiago> support the filename extension. > > Yes, I agree. > > However, due to the controversy, I'm withdrawing this patch. I guess > users can use "python execfile". I'd like to push for this patch a little harder... It is true, users could just type: python execfile("/path/to/script.py") (and loose file-name completion) instead of source /path/to/script.py or prefix each one of their foo.py scripts with "python", but why make them? It seems to me that we are trading end-user convenience (after all, you put this patch in because it was convenient for us all to use "source" like that!) for largely theoretical backwards compatibility problem. -- Paul Pluzhnikov