On Fri, Dec 08, 2017 at 02:19:13AM -0800, Rustom Mody wrote:
> > > Hi, perl has __END__ which ignore all the lines below it.
> > >
> > > Is there anything similar to __END__ in python? Thanks.
> >
> > Something similar is:
> >
> > import sys
> > sys.exit()
>
> That will give syntax (or
On Friday, December 8, 2017 at 3:13:56 PM UTC+5:30, Karsten Hilbert wrote:
> On Thu, Dec 07, 2017 at 11:55:48PM -0600, Peng Yu wrote:
>
> > Hi, perl has __END__ which ignore all the lines below it.
> >
> > Is there anything similar to __END__ in python? Thanks.
>
> Something similar is:
>
>
On Thu, Dec 07, 2017 at 11:55:48PM -0600, Peng Yu wrote:
> Hi, perl has __END__ which ignore all the lines below it.
>
> Is there anything similar to __END__ in python? Thanks.
Something similar is:
import sys
sys.exit()
Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.
Hi, perl has __END__ which ignore all the lines below it.
Is there anything similar to __END__ in python? Thanks.
--
Regards,
Peng
--
https://mail.python.org/mailman/listinfo/python-list