Steven D'Aprano <[EMAIL PROTECTED]> writes:
> It's not just "bad syntax" that makes the triple-quote or comment
> trick useful.
Okay. That was the original reason given for refusing suggestions like
"return early from the function" etc. I answered in that context.
> Because you're experimenting,
On Aug 2, 8:08 am, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-08-02, Magnus Lycka <[EMAIL PROTECTED]> wrote:
>
>
>
> > Neil Cerutti wrote:
> >> On 2007-08-01, Cameron Laird <[EMAIL PROTECTED]> wrote: .
> >>> I want to re-emphasize the "triple-quote it" tip mentioned
> >>> earlier in this
On 2007-08-02, Magnus Lycka <[EMAIL PROTECTED]> wrote:
> Neil Cerutti wrote:
>> On 2007-08-01, Cameron Laird <[EMAIL PROTECTED]> wrote: .
>>> I want to re-emphasize the "triple-quote it" tip mentioned
>>> earlier in this thread. I think the original questioner
>>> will find this quite satisfy
On Thu, 02 Aug 2007 10:00:04 +1000, Ben Finney wrote:
> beginner <[EMAIL PROTECTED]> writes:
>
>> Thanks everyone for responding. It doesn't look like python has
>> it. I would definitely miss it. As Steve said, the nice thing about
>> __END__ is that things below __END__ do not have to have legi
Neil Cerutti wrote:
> On 2007-08-01, Cameron Laird <[EMAIL PROTECTED]> wrote: .
>> I want to re-emphasize the "triple-quote it" tip mentioned
>> earlier in this thread. I think the original questioner
>> will find this quite satisfying, if I understand his situ-
>> ation at all.
>>
>> *I* ce
beginner <[EMAIL PROTECTED]> writes:
> Thanks everyone for responding. It doesn't look like python has
> it. I would definitely miss it. As Steve said, the nice thing about
> __END__ is that things below __END__ do not have to have legit
> syntax.
I think the unaddressed question is: Why is there
On 2007-08-01, Cameron Laird <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Neil Cerutti <[EMAIL PROTECTED]> wrote:
>>On 2007-08-01, beginner <[EMAIL PROTECTED]> wrote:
>>> Thanks everyone for responding. It doesn't look like python has
>>> it. I would definitely miss it. As Steve
In article <[EMAIL PROTECTED]>,
Neil Cerutti <[EMAIL PROTECTED]> wrote:
>On 2007-08-01, beginner <[EMAIL PROTECTED]> wrote:
>> Thanks everyone for responding. It doesn't look like python has
>> it. I would definitely miss it. As Steve said, the nice thing
>> about __END__ is that things below __EN
On 8/1/07, beginner <[EMAIL PROTECTED]> wrote:
> On Jul 31, 10:53 pm, beginner <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> > This is just a very simple question about a python trick.
> >
> > In perl, I can write __END__ in a file and the perl interpreter will
> > ignore everything below that line.
beginner wrote:
> On Jul 31, 10:53 pm, beginner <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>> This is just a very simple question about a python trick.
>>
>> In perl, I can write __END__ in a file and the perl interpreter will
>> ignore everything below that line. This is very handy when testing my
On 2007-08-01, beginner <[EMAIL PROTECTED]> wrote:
> Thanks everyone for responding. It doesn't look like python has
> it. I would definitely miss it. As Steve said, the nice thing
> about __END__ is that things below __END__ do not have to have
> legit syntax. That let me focus on the lines of cod
On Jul 31, 10:53 pm, beginner <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> This is just a very simple question about a python trick.
>
> In perl, I can write __END__ in a file and the perl interpreter will
> ignore everything below that line. This is very handy when testing my
> program. Does python ha
beginner wrote:
> Hi All,
>
> This is just a very simple question about a python trick.
>
> In perl, I can write __END__ in a file and the perl interpreter will
> ignore everything below that line. This is very handy when testing my
> program. Does python have something similar?
raise SystemExit
On Wed, 01 Aug 2007 06:56:36 -0400, Steve Holden wrote:
> Stargaming wrote:
>> On Wed, 01 Aug 2007 05:44:21 +, Michele Simionato wrote:
>>
>>> On Aug 1, 5:53 am, beginner <[EMAIL PROTECTED]> wrote:
Hi All,
This is just a very simple question about a python trick.
In p
Stargaming wrote:
> On Wed, 01 Aug 2007 05:44:21 +, Michele Simionato wrote:
>
>> On Aug 1, 5:53 am, beginner <[EMAIL PROTECTED]> wrote:
>>> Hi All,
>>>
>>> This is just a very simple question about a python trick.
>>>
>>> In perl, I can write __END__ in a file and the perl interpreter will
>>
beginner <[EMAIL PROTECTED]> writes:
> In perl, I can write __END__ in a file and the perl interpreter will
> ignore everything below that line.
IIRC, this Perl feature is specifically intended to work with its
feature of reading data from the same file, as all the lines following
that marker.
>
On Wed, 01 Aug 2007 05:44:21 +, Michele Simionato wrote:
> On Aug 1, 5:53 am, beginner <[EMAIL PROTECTED]> wrote:
>> Hi All,
>>
>> This is just a very simple question about a python trick.
>>
>> In perl, I can write __END__ in a file and the perl interpreter will
>> ignore everything below tha
On Aug 1, 5:53 am, beginner <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> This is just a very simple question about a python trick.
>
> In perl, I can write __END__ in a file and the perl interpreter will
> ignore everything below that line. This is very handy when testing my
> program. Does python have
> In perl, I can write __END__ in a file and the perl interpreter will
> ignore everything below that line. This is very handy when testing my
> program. Does python have something similar?
Sorry, no, it doesn't.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
This is just a very simple question about a python trick.
In perl, I can write __END__ in a file and the perl interpreter will
ignore everything below that line. This is very handy when testing my
program. Does python have something similar?
Thanks,
Geoffrey
--
http://mail.python.org/m
20 matches
Mail list logo